Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CIFSContextCredentialWrapper (0.09 sec)

  1. 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
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. 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")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. 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() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. 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() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 4K bytes
    - Viewed (0)
Back to top