Class AgreedKeyWithMacKey
java.lang.Object
org.bouncycastle.jcajce.AgreedKeyWithMacKey
- All Implemented Interfaces:
Serializable, Key, SecretKey, Destroyable
-
Field Summary
Fields inherited from interface SecretKey
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionAgreedKeyWithMacKey(SecretKey secretKey) Basic constructor, no MAC.AgreedKeyWithMacKey(SecretKey secretKey, String macAlgorithm, byte[] macKey) Constructor containing MAC details -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()booleanReturn the algorithm for the agreed secret key.byte[]Return the encoding of the agreed secret key.Return the format for the agreed secret key.Return a key for the MAC associated with the KTS process (if available).inthashCode()boolean
-
Constructor Details
-
AgreedKeyWithMacKey
Basic constructor, no MAC.- Parameters:
secretKey- the secret key that was arrived at.
-
AgreedKeyWithMacKey
-
-
Method Details
-
getAlgorithm
Return the algorithm for the agreed secret key.- Specified by:
getAlgorithmin interfaceKey- Returns:
- the secret key value.
-
getFormat
-
getEncoded
public byte[] getEncoded()Return the encoding of the agreed secret key.- Specified by:
getEncodedin interfaceKey- Returns:
- the secret key encoding.
-
destroy
public void destroy()- Specified by:
destroyin interfaceDestroyable
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceDestroyable
-
equals
-
hashCode
-
getMacKey
Return a key for the MAC associated with the KTS process (if available).- Returns:
- the MAC secret key (null otherwise).
-