public final class SecretKeyWithEncapsulation
extends java.lang.Object
implements javax.crypto.SecretKey
| Constructor and Description |
|---|
SecretKeyWithEncapsulation(javax.crypto.SecretKey secretKey,
byte[] encapsulation)
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlgorithm()
Return the algorithm for the agreed secret key.
|
byte[] |
getEncapsulation()
Return the encapsulation that carried the key material used in creating the agreed secret key.
|
byte[] |
getEncoded()
Return the encoding of the agreed secret key.
|
java.lang.String |
getFormat()
Return the format for the agreed secret key.
|
int |
hashCode() |
public SecretKeyWithEncapsulation(javax.crypto.SecretKey secretKey,
byte[] encapsulation)
secretKey - the secret key that was arrived at.encapsulation - the encapsulation the key data was carried in.public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic byte[] getEncapsulation()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object