public static class AesCbcWithIntegrity.SecretKeys
extends java.lang.Object
| Constructor and Description |
|---|
SecretKeys(javax.crypto.SecretKey confidentialityKeyIn,
javax.crypto.SecretKey integrityKeyIn)
Construct the secret keys container.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
javax.crypto.SecretKey |
getConfidentialityKey() |
javax.crypto.SecretKey |
getIntegrityKey() |
int |
hashCode() |
void |
setConfidentialityKey(javax.crypto.SecretKey confidentialityKey) |
void |
setIntegrityKey(javax.crypto.SecretKey integrityKey) |
java.lang.String |
toString()
Encodes the two keys as a string
|
public SecretKeys(javax.crypto.SecretKey confidentialityKeyIn,
javax.crypto.SecretKey integrityKeyIn)
confidentialityKeyIn - The AES keyintegrityKeyIn - the HMAC keypublic javax.crypto.SecretKey getConfidentialityKey()
public void setConfidentialityKey(javax.crypto.SecretKey confidentialityKey)
public javax.crypto.SecretKey getIntegrityKey()
public void setIntegrityKey(javax.crypto.SecretKey integrityKey)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object