- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for createContext (0.45 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/smb/CredentialsInternal.java
* @param doSigning whether message signing should be enabled * @return a new SSP authentication context * @throws SmbException if context creation fails */ SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) throws SmbException; /** * Get the security subject associated with these credentials.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
} if (s == null) { return this.credentials.createContext(getContext(), tdomain, host, negoResp.getSecurityBlob(), doSigning); } try { final String hostName = host; return Subject.doAs(s, (PrivilegedExceptionAction<SSPContext>) () -> getCredentials().createContext(getContext(), tdomain, hostName, negoResp.getSecurityBlob(), doSigning));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.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/smb/SmbRenewableCredentialsTest.java
public CredentialsInternal clone() { // For testing purposes, return this instance (allowed by return type) return this; } @Override public SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) throws SmbException { // Not used within these tests throw new SmbException("not used in tests");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K 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)