|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.jcajce.SecretKeyWithEncapsulation
Carrier class for a KEM/KTS secret key plus its encapsulation.
Field Summary |
Fields inherited from interface java.security.Key |
serialVersionUID |
Constructor Summary | |
SecretKeyWithEncapsulation(javax.crypto.SecretKey secretKey,
byte[] encapsulation)
Basic constructor. |
Method Summary | |
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()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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.Method Detail |
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 boolean equals(java.lang.Object o)
public int hashCode()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |