Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for decryptCredentials (0.27 sec)

  1. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            // But both should decrypt to same plaintext
            char[] decrypted1 = storage.decryptCredentials(encrypted1);
            char[] decrypted2 = storage.decryptCredentials(encrypted2);
    
            assertArrayEquals(plaintext, decrypted1);
            assertArrayEquals(plaintext, decrypted2);
    
            // Clean up
            Arrays.fill(plaintext, '\0');
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SecureCredentialStorage.java

                if (plaintextBytes != null) {
                    SecureKeyManager.secureWipe(plaintextBytes);
                }
            }
        }
    
        public char[] decryptCredentials(byte[] ciphertext) throws GeneralSecurityException {
            checkNotDestroyed();
    
            if (ciphertext == null || ciphertext.length <= GCM_IV_SIZE) {
                return null;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top