- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for rotateSessionKey (0.15 seconds)
-
src/main/java/jcifs/util/SecureKeyManager.java
* Rotate a specific session key * * @param sessionId the session ID * @return the new key version number * @throws GeneralSecurityException if rotation fails */ public int rotateSessionKey(String sessionId) throws GeneralSecurityException { checkNotClosed(); if (!sessionKeys.containsKey(sessionId)) { throw new IllegalArgumentException("Session key not found: " + sessionId);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 21.5K bytes - Click Count (0) -
src/test/java/jcifs/util/SecureKeyManagerTest.java
// Initial version should be 0 assertEquals(0, keyManager.getKeyVersion(sessionId), "Initial version should be 0"); // Rotate key int newVersion = keyManager.rotateSessionKey(sessionId); assertEquals(1, newVersion, "New version should be 1"); assertEquals(1, keyManager.getKeyVersion(sessionId), "Key version should be updated"); // Verify old key is archivedCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.2K bytes - Click Count (0)