- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for withDefaultCredentials (0.16 sec)
-
src/test/java/jcifs/CIFSContextTest.java
// Given CIFSContext newContext = mock(CIFSContext.class); when(mockContext.withDefaultCredentials()).thenReturn(newContext); // When CIFSContext context = mockContext.withDefaultCredentials(); // Then assertEquals(newContext, context); verify(mockContext).withDefaultCredentials(); } @Test @DisplayName("Should get context with anonymous credentials")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/main/java/jcifs/context/CIFSContextWrapper.java
public CIFSContext withCredentials(final Credentials creds) { return wrap(this.delegate.withCredentials(creds)); } @Override public CIFSContext withDefaultCredentials() { return wrap(this.delegate.withDefaultCredentials()); } @Override public CIFSContext withAnonymousCredentials() { return wrap(this.delegate.withAnonymousCredentials()); } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/main/java/jcifs/context/AbstractCIFSContext.java
return withCredentials(new NtlmPasswordAuthenticator()); } /** * {@inheritDoc} * * @see jcifs.CIFSContext#withDefaultCredentials() */ @Override public CIFSContext withDefaultCredentials() { return withCredentials(getDefaultCredentials()); } /** * {@inheritDoc} * * @see jcifs.CIFSContext#withGuestCrendentials()
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 4K bytes - Viewed (0) -
src/main/java/jcifs/CIFSContext.java
* * Usually you will want to create one context per client configuration and then * multiple sub-contexts using different credentials (if necessary). * * {@link #withDefaultCredentials()}, {@link #withAnonymousCredentials()}, {@link #withCredentials(Credentials)} * allow to create such sub-contexts. * * * Implementors of this interface should extend {@link jcifs.context.BaseContext} or
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/context/AbstractCIFSContextTest.java
assertTrue(wrappedContext.getCredentials().isAnonymous()); } @Test void testWithDefaultCredentials() { CIFSContext wrappedContext = context.withDefaultCredentials(); assertNotNull(wrappedContext); assertTrue(wrappedContext instanceof CIFSContextCredentialWrapper); // Verify that the new context uses the default credentials provided to the test context
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0)