Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for CredentialsInternal (2.2 sec)

  1. src/test/java/jcifs/smb/CriticalPerformanceTest.java

            Mockito.when(mockContext.getCredentials()).thenReturn(mockCredentials);
    
            // Mock CredentialsInternal for session tests
            jcifs.smb.CredentialsInternal mockCredentialsInternal = Mockito.mock(jcifs.smb.CredentialsInternal.class);
            Mockito.when(mockCredentials.unwrap(jcifs.smb.CredentialsInternal.class)).thenReturn(mockCredentialsInternal);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/CredentialsInternalTest.java

            // Act & Assert
            // unwrap to interface itself should return same instance
            CredentialsInternal unwrapped = creds.unwrap(CredentialsInternal.class);
            assertNotNull(unwrapped, "unwrap to CredentialsInternal returns instance");
            assertSame(creds, unwrapped, "unwrap returns the same object instance");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbSessionImplTest.java

            // Context and credentials wiring - used by most tests
            when(cifsContext.getCredentials()).thenReturn(credentials);
            when(credentials.unwrap(CredentialsInternal.class)).thenReturn(credentialsInternal);
            when(credentialsInternal.clone()).thenReturn(credentialsInternal);
    
            // Transport wiring - used by most tests
            when(transport.acquire()).thenReturn(transport);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

    public class SmbSessionImplSecurityTest {
    
        private CIFSContext mockContext;
        private SmbTransportImpl mockTransport;
        private Configuration mockConfig;
        private Credentials mockCredentials;
        private CredentialsInternal mockCredentialsInternal;
    
        @BeforeEach
        public void setUp() {
            mockContext = Mockito.mock(CIFSContext.class);
            mockTransport = Mockito.mock(SmbTransportImpl.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportImplTest.java

        void getSmbSession_createAndReuse() {
            // Arrange: minimal credentials chain so SmbSessionImpl constructor succeeds
            CredentialsInternal creds = mock(CredentialsInternal.class);
            when(ctx.getCredentials()).thenReturn(creds);
            when(creds.unwrap(CredentialsInternal.class)).thenReturn(creds);
            when(creds.clone()).thenReturn(creds);
    
            assertEquals(0, transport.getNumSessions());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockedStatic;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.Credentials;
    import jcifs.smb.CredentialsInternal;
    import jcifs.smb.NtlmAuthenticator;
    import jcifs.smb.NtlmPasswordAuthenticator;
    import jcifs.smb.SmbAuthException;
    import jcifs.smb.SmbRenewableCredentials;
    
    class CIFSContextCredentialWrapperTest {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

            JAASAuthenticator auth = spy(new JAASAuthenticator());
            // Avoid real JAAS by stubbing getSubject
            doReturn(new Subject()).when(auth).getSubject();
    
            // Act
            CredentialsInternal result = auth.renew();
    
            // Assert interaction and return value
            assertSame(auth, result);
            verify(auth, times(1)).getSubject();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

     * when the "guest" username is supplied. Use {@link AuthenticationType} instead.
     *
     * @author mbechler
     */
    public class NtlmPasswordAuthenticator implements Principal, CredentialsInternal, Serializable, AutoCloseable {
    
        /**
         *
         */
        private static final long serialVersionUID = -4090263879887877186L;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/Kerb5Authenticator.java

         *            the lifetime in seconds
         */
        public void setLifeTime(int time) {
            this.contextLifetime = time;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.CredentialsInternal#isAnonymous()
         */
        @Override
        public boolean isAnonymous() {
            return this.getSubject() == null && super.isAnonymous();
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13.2K bytes
    - Viewed (0)
Back to top