Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getAuthenticationTTL (0.06 sec)

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

            // Initially not expired
            assertFalse(auth.isExpired());
    
            // Set short TTL
            auth.setAuthenticationTTL(100); // 100 milliseconds
            assertEquals(100, auth.getAuthenticationTTL());
    
            // Still not expired immediately
            assertFalse(auth.isExpired());
    
            // Wait for expiration
            Thread.sleep(150);
    
            // Should be expired now
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            this.authenticationTTL = ttl;
        }
    
        /**
         * Get the authentication time-to-live in milliseconds
         *
         * @return time-to-live in milliseconds
         */
        public long getAuthenticationTTL() {
            return this.authenticationTTL;
        }
    
        /**
         * Reset the authentication timestamp to current time
         */
        public void resetAuthenticationTimestamp() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
Back to top