java.lang.Object
io.xpipe.core.util.EncryptedSecretValue
io.xpipe.core.util.AesSecretValue
- All Implemented Interfaces:
SecretValue
- Direct Known Subclasses:
InPlaceSecretValue
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.xpipe.core.util.EncryptedSecretValue
getSecret, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.xpipe.core.util.SecretValue
getSecretValue, inPlace, mapSecretValue, mapSecretValueFailable, withSecretValue
-
Constructor Details
-
AesSecretValue
public AesSecretValue(char[] secret)
-
-
Method Details
-
getIterationCount
protected abstract int getIterationCount() -
getNonce
protected byte[] getNonce(int numBytes) -
getSecretKey
- Throws:
InvalidKeySpecException
-
getAESKey
- Throws:
InvalidKeySpecException
-
encrypt
public byte[] encrypt(byte[] c) - Overrides:
encryptin classEncryptedSecretValue
-
decrypt
public byte[] decrypt(byte[] c) - Overrides:
decryptin classEncryptedSecretValue
-