Class CommittedKey
- java.lang.Object
-
- com.amazonaws.encryptionsdk.internal.CommittedKey
-
public final class CommittedKey extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommittedKey
generate(CryptoAlgorithm alg, SecretKey dataKey, byte[] nonce)
Generates an encryption key along with associated commitment value.byte[]
getCommitment()
SecretKey
getKey()
-
-
-
Method Detail
-
getKey
public SecretKey getKey()
-
getCommitment
public byte[] getCommitment()
-
generate
public static CommittedKey generate(CryptoAlgorithm alg, SecretKey dataKey, byte[] nonce) throws InvalidKeyException
Generates an encryption key along with associated commitment value.- Throws:
InvalidKeyException
-
-