public final class KTSKeyWithEncapsulation
extends java.lang.Object
implements javax.crypto.SecretKey
Constructor and Description |
---|
KTSKeyWithEncapsulation(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.
|
ZeroizableSecretKey |
getMacKey()
Return the mac key if there is one present.
|
int |
hashCode() |
public KTSKeyWithEncapsulation(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.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public byte[] getEncapsulation()
public ZeroizableSecretKey getMacKey()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object