- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for CIFSContextCredentialWrapper (0.16 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/jcifs/context/CIFSContextCredentialWrapper.java
* */ public final class CIFSContextCredentialWrapper extends CIFSContextWrapper implements CIFSContext { private Credentials creds; /** * Constructs a CIFS context wrapper with custom credentials. * * @param delegate the context to wrap * @param creds * Credentials to use */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
@Mock private NtlmPasswordAuthenticator mockNtlmPasswordAuthenticator; private CIFSContextCredentialWrapper wrapper; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); wrapper = new CIFSContextCredentialWrapper(mockDelegate, mockCredentials); } @Test @DisplayName("Should construct with delegate and credentials")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/jcifs/context/AbstractCIFSContextTest.java
Credentials newCreds = mock(Credentials.class); CIFSContext wrappedContext = context.withCredentials(newCreds); assertNotNull(wrappedContext); assertTrue(wrappedContext instanceof CIFSContextCredentialWrapper); // Verify that the new context uses the provided credentials assertEquals(newCreds, wrappedContext.getCredentials()); } @Test void testWithAnonymousCredentials() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
src/main/java/jcifs/context/AbstractCIFSContext.java
* @param creds the credentials to use * @return a wrapped context with the given credentials */ @Override public CIFSContext withCredentials(final Credentials creds) { return new CIFSContextCredentialWrapper(this, creds); } /** * * {@inheritDoc} * * @see jcifs.CIFSContext#withAnonymousCredentials() */ @Override public CIFSContext withAnonymousCredentials() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 4K bytes - Click Count (0)