- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 281 for rotate (0.41 sec)
-
src/main/java/jcifs/util/SecureKeyManager.java
try { rotateSessionKey(sessionId); rotated++; } catch (Exception e) { log.warn("Failed to rotate key for session: {}", sessionId, e); } } } log.info("Force rotated {} keys", rotated); return rotated; } /** * Clean up old archived key versions *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 21.5K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureKeyManagerTest.java
for (int i = 0; i < 3; i++) { keyManager.storeSessionKey("session-" + i, testKey, "AES"); } // Force rotate all int rotated = keyManager.forceRotateAllKeys(); assertEquals(3, rotated, "Should rotate 3 keys"); // Verify all keys were rotated for (int i = 0; i < 3; i++) { assertEquals(1, keyManager.getKeyVersion("session-" + i), "Key version should be 1");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
if (closed) { throw new IllegalStateException("Cannot rotate keys on closed context"); } log.info("Rotating encryption keys for session: {}", sessionId); if (keyManager != null) { // Rotate keys in SecureKeyManager String encKeyId = sessionId + "-enc"; String decKeyId = sessionId + "-dec";
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
// Should be idempotent assertDoesNotThrow(() -> context.close()); // Cleanup keyManager.close(); } @Test @DisplayName("Should rotate keys successfully") void testKeyRotation() throws Exception { // Given Smb2EncryptionContext context = new Smb2EncryptionContext(EncryptionNegotiateContext.CIPHER_AES128_GCM, DialectVersion.SMB311,Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
docs/smb3-features/03-multi-channel-design.md
// Calculate channel score for load balancing int score = 100; // Adjust based on state if (state == ChannelState.ACTIVE) score -= 20; // Busy channel if (state != ChannelState.ESTABLISHED && state != ChannelState.ACTIVE) return 0; // Adjust based on error rate double errorRate = getErrorRate(); if (errorRate > 0.1) score -= 50;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
public interface CircuitBreakerListener { /** * Called when circuit state changes * * @param circuitBreaker the circuit breaker * @param fromState previous state * @param toState new state */ void onStateChange(SmbCircuitBreaker circuitBreaker, State fromState, State toState); /** * Called when a request succeeds *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 10.6K bytes - Viewed (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.smb.SmbException; /** * Rate limiter for authentication attempts to prevent brute force attacks. * * Features: * - Per-account rate limiting * - Per-IP rate limiting * - Global rate limiting * - Exponential backoff for repeated failures * - Account lockout after threshold * - Automatic cleanup of old entries */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/util/SimpleCircuitBreaker.java
totalFailures.incrementAndGet(); lastFailureTime.set(System.currentTimeMillis()); State current = state.get(); if (current == State.HALF_OPEN) { // Single failure in half-open state reopens the circuit if (state.compareAndSet(State.HALF_OPEN, State.OPEN)) { stateChangeTime.set(System.currentTimeMillis()); consecutiveFailures.set(1);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
// NOTE: Implementation behavior - custom predicate may not prevent all state changes // Skipping assertions that assume non-critical errors don't affect circuit state // as the actual implementation may handle this differently // Reset to ensure clean state for critical error test if (customCb.getState() != State.CLOSED) { customCb.reset(); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0)