Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for resetAuthenticationTimestamp (0.14 sec)

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

            // Wait for expiration
            Thread.sleep(150);
    
            // Should be expired now
            assertTrue(auth.isExpired());
    
            // Reset timestamp
            auth.resetAuthenticationTimestamp();
            assertFalse(auth.isExpired());
    
            // Test with no expiration (TTL = 0)
            auth.setAuthenticationTTL(0);
            Thread.sleep(100);
            assertFalse(auth.isExpired());
    
    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

         */
        public long getAuthenticationTTL() {
            return this.authenticationTTL;
        }
    
        /**
         * Reset the authentication timestamp to current time
         */
        public void resetAuthenticationTimestamp() {
            this.authenticationTimestamp = System.currentTimeMillis();
        }
    
        @Override
        public void close() {
            if (closed) {
                return;
            }
    
            try {
    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