- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for initSecContext (0.07 seconds)
-
src/test/java/jcifs/smb/SSPContextTest.java
assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, 3, 1)); assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, 2, 2)); } @Test @DisplayName("initSecContext null token edge cases") void testInitSecContextNullToken() throws Exception { DummySSPContext ctx = new DummySSPContext(new byte[] { 1 }, false, null, null, 0, false);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
} @Test @DisplayName("initSecContext wraps GSSException into SmbAuthException") void initSecContext_failure_wraps() throws Exception { when(gssContext.initSecContext(any(), anyInt(), anyInt())).thenThrow(new GSSException(GSSException.DEFECTIVE_TOKEN)); assertThrows(SmbAuthException.class, () -> ctx.initSecContext(new byte[] {}, 0, 0)); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/SpnegoContext.java
* Initialize the GSSContext to provide SPNEGO feature. * * @param inputBuf * @param offset * @param len * @return response token */ @Override public byte[] initSecContext(final byte[] inputBuf, final int offset, final int len) throws CIFSException { SpnegoToken resp; if (this.completed) { throw new CIFSException("Already complete"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/Kerb5Context.java
} throw new SmbException("ExtendedGSSContext is not implemented by GSSContext"); } @Override public byte[] initSecContext(byte[] token, int off, int len) throws SmbException { try { return this.gssContext.initSecContext(token, off, len); } catch (GSSException e) { throw new SmbAuthException("GSSAPI mechanism failed", e); } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13.5K bytes - Click Count (1) -
src/main/java/jcifs/smb/NtlmContext.java
* @param targetName * the target's SPN */ public void setTargetName(final String targetName) { this.targetName = targetName; } @Override public byte[] initSecContext(final byte[] token, final int offset, final int len) throws SmbException { return switch (this.state) { case 1 -> makeNegotiate(token); case 2 -> makeAuthenticate(token);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 17.3K bytes - Click Count (1) -
src/main/java/jcifs/smb1/smb1/SmbSession.java
state = 0; break; } try { token = nctx.initSecContext(token, 0, token.length); } catch (final SmbException se) { /* We must close the transport or the server will be expecting aCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 20.7K bytes - Click Count (0)