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()
Gets confidentiality key.
|
javax.crypto.SecretKey |
getIntegrityKey()
Gets integrity key.
|
int |
hashCode() |
void |
setConfidentialityKey(javax.crypto.SecretKey confidentialityKey)
Sets confidentiality key.
|
void |
setIntegrityKey(javax.crypto.SecretKey integrityKey)
Sets integrity key.
|
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 int hashCode()
hashCode
in class java.lang.Object
public javax.crypto.SecretKey getConfidentialityKey()
public void setConfidentialityKey(javax.crypto.SecretKey confidentialityKey)
confidentialityKey
- the confidentiality keypublic javax.crypto.SecretKey getIntegrityKey()
public void setIntegrityKey(javax.crypto.SecretKey integrityKey)
integrityKey
- the integrity keypublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object