java.lang.Object
io.xpipe.core.util.EncryptedSecretValue
io.xpipe.core.util.AesSecretValue
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.xpipe.core.util.EncryptedSecretValue
getSecret, getSecretRaw, 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) -
AesSecretValue
public AesSecretValue(byte[] b)
-
-
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
-