Class DataKey
java.lang.Object
ch.admin.bit.jeap.crypto.internal.core.model.DataKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal byte[]generateNonce(int nonceLengthBytes) Generate a new nonce of the given length for this key without repeating nonces.inthashCode()byte[]
-
Constructor Details
-
DataKey
public DataKey(byte[] plaintextDataKey)
-
-
Method Details
-
plaintextDataKey
public byte[] plaintextDataKey() -
generateNonce
public final byte[] generateNonce(int nonceLengthBytes) Generate a new nonce of the given length for this key without repeating nonces.- Parameters:
nonceLengthBytes- Size of the nonce in bytes. Must be at least 8.- Returns:
- The nonce
-
equals
-
hashCode
public int hashCode()
-