- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for createContext (0.19 sec)
-
src/test/java/jcifs/smb/CredentialsInternalTest.java
} @Test @DisplayName("createContext returns SSPContext and interacts with CIFSContext") void createContext_happy_interacts_and_returns_context() throws Exception { // Arrange TestCredentials creds = new TestCredentials("D", false, false, new Subject(), false); // Act SSPContext ctx = creds.createContext(mockContext, "TARGET", "host", new byte[0], true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
SmbUnsupportedOperationException ex = assertThrows(SmbUnsupportedOperationException.class, () -> auth.createContext(tc, null, "SERVER", new byte[0], false)); assertTrue(ex.getMessage().contains("Cannot use netbios/short names")); } @Test @DisplayName("createContext: no Kerberos in initial token and no fallback -> throws") void createContext_noKerberosNoFallback_throws() throws CIFSException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Authenticator.java
} /** * * {@inheritDoc} * * @see jcifs.smb.NtlmPasswordAuthenticator#createContext(jcifs.CIFSContext, java.lang.String, java.lang.String, * byte[], boolean) */ @Override public SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) throws SmbException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 13.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java
} else { CreateContextRequest[] newContexts = new CreateContextRequest[this.createContexts.length + 1]; System.arraycopy(this.createContexts, 0, newContexts, 0, this.createContexts.length); newContexts[this.createContexts.length] = context; this.createContexts = newContexts; } } /** * Add a lease V1 context to this request
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 22.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java
* @return the createContexts */ public CreateContextResponse[] getCreateContexts() { return this.createContexts; } /** * Get the lease V1 context response if present * @return the lease V1 context or null if not present */ public LeaseV1CreateContextResponse getLeaseV1Context() { if (this.createContexts != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
// Test encryption context NegotiateContextResponse enc = Smb2NegotiateResponse.createContext(EncryptionNegotiateContext.NEGO_CTX_ENC_TYPE); assertNotNull(enc); assertTrue(enc instanceof EncryptionNegotiateContext); // Test preauth context NegotiateContextResponse preauth = Smb2NegotiateResponse.createContext(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE); assertNotNull(preauth);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
} /** * * {@inheritDoc} * * @see jcifs.smb.CredentialsInternal#createContext(jcifs.CIFSContext, java.lang.String, java.lang.String, byte[], * boolean) */ @Override public SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) throws SmbException { checkNotClosed();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Context.java
clientCreds = manager.createCredential(this.clientName, userLifetime, mechOid, GSSCredential.INITIATE_ONLY); } else { this.clientName = null; } this.gssContext = manager.createContext(this.serviceName, mechOid, clientCreds, contextLifetime); this.gssContext.requestAnonymity(false); this.gssContext.requestSequenceDet(false); this.gssContext.requestConf(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13.5K bytes - Viewed (1) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
lenient().when(gssManager.createName(anyString(), any(), any())).thenReturn(serviceName); lenient().when(gssManager.createName(anyString(), any())).thenReturn(serviceName); lenient().when(gssManager.createContext(any(), any(), any(), anyInt())).thenReturn(gssContext); // Create Kerb5Context with mocked dependencies ctx = new Kerb5Context("host.example", "cifs", null, 0, 0, null); } @AfterEach
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0)