Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 17 of 17 for CredentialsInternal (0.11 seconds)

  1. 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();
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  2. 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());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/JAASAuthenticator.java

                return null;
            }
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SmbRenewableCredentials#renew()
         */
        @Override
        public CredentialsInternal renew() {
            log.debug("Renewing credentials");
            this.cachedSubject = null;
            getSubject();
            return this;
        }
    
        /**
         * {@inheritDoc}
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.3K bytes
    - Click Count (1)
  4. src/main/java/jcifs/smb/SmbSessionImpl.java

        private final SmbTransportImpl transport;
        private long expiration;
        private String netbiosName = null;
    
        private CIFSContext transportContext;
    
        private CredentialsInternal credentials;
        private byte[] sessionKey;
        private boolean extendedSecurity;
    
        private final AtomicLong usageCount = new AtomicLong(1);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
  5. 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;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30.3K bytes
    - Click Count (0)
  6. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  7. 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}
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 13.2K bytes
    - Click Count (0)
Back to Top