Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 63 for AutoCloseable (1.2 sec)

  1. src/test/java/jcifs/SmbWatchHandleTest.java

                watchHandle.close();
            });
    
            assertEquals("Failed to close handle", thrown.getMessage());
            verify(watchHandle, times(1)).close();
        }
    
        /**
         * Test AutoCloseable behavior with try-with-resources
         */
        @Test
        void testAutoCloseable() throws CIFSException {
            // Create a mock that tracks close calls
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (1)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

        @Mock
        private SmbFile mockFile1;
    
        @Mock
        private SmbFile mockFile2;
    
        private LeaseManager baseLeaseManager;
        private DirectoryLeaseManager directoryLeaseManager;
        private AutoCloseable mocks;
    
        @BeforeEach
        public void setUp() throws Exception {
            mocks = MockitoAnnotations.openMocks(this);
    
            when(context.getConfig()).thenReturn(config);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeImpl.java

                        this.session.acquire();
                    }
                }
            }
            return this;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        public void close() {
            release(false);
        }
    
        public void release() {
            release(true);
        }
    
        /**
         * @param track
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            } finally {
                concurrentLimiter.close();
            }
        }
    
        @Test
        public void testAutoCloseableInterface() throws Exception {
            // Test that rate limiter implements AutoCloseable correctly
            try (AuthenticationRateLimiter autoLimiter = new AuthenticationRateLimiter()) {
                assertTrue(autoLimiter.checkAttempt("user", "192.168.1.13"));
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbResource.java

     * may also refer to servers and workgroups.
     *
     * @see jcifs.smb.SmbFile for the main implementation of this interface
     * @author mbechler
     */
    public interface SmbResource extends AutoCloseable {
    
        /**
         * Gets the file locator for this file
         *
         * The file locator provides details about
         *
         * @return the fileLocator
         */
        SmbResourceLocator getLocator();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
  6. src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java

     * It implements rank fusion techniques to combine results from different search engines
     * and provides a unified search interface.
     */
    public class RankFusionProcessor implements AutoCloseable {
    
        private static final Logger logger = LogManager.getLogger(RankFusionProcessor.class);
    
        /** Thread-safe list of rank fusion searchers available for processing search requests */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/SecureKeyManager.java

     * - Automatic key cleanup on close
     * - Thread-safe key management
     * - Key derivation utilities
     * - Memory wiping capabilities
     */
    public class SecureKeyManager implements AutoCloseable {
    
        private static final Logger log = LoggerFactory.getLogger(SecureKeyManager.class);
    
        private final Map<String, SecretKey> sessionKeys = new ConcurrentHashMap<>();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

     * Handles both AES-CCM (SMB 3.0/3.0.2) and AES-GCM (SMB 3.1.1) cipher suites.
     *
     * @author mbechler
     */
    public class Smb2EncryptionContext implements AutoCloseable {
    
        private static final Logger log = LoggerFactory.getLogger(Smb2EncryptionContext.class);
    
        private final int cipherId;
        private final DialectVersion dialect;
        private byte[] encryptionKey;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            context.resetKeyRotationTracking();
    
            // Then
            assertFalse(context.needsKeyRotation(), "Should not need rotation after reset");
        }
    
        @Test
        @DisplayName("Should implement AutoCloseable and securely wipe keys on close")
        void testAutoCloseable() {
            // Given
            byte[] encKey = new byte[16];
            byte[] decKey = new byte[16];
            new SecureRandom().nextBytes(encKey);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  10. 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;
    
        private static final Logger log = LoggerFactory.getLogger(NtlmPasswordAuthenticator.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
Back to top