Class BCCMCEPrivateKey
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.cmce.BCCMCEPrivateKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PrivateKey, Destroyable, CMCEKey, CMCEPrivateKey
- See Also:
-
Constructor Details
-
BCCMCEPrivateKey
-
BCCMCEPrivateKey
- Throws:
IOException
-
-
Method Details
-
equals
-
hashCode
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey- Returns:
- name of the algorithm - "CMCE..." followed by the parameter type.
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getFormat
-
getParameterSpec
Description copied from interface:CMCEKeyReturn the parameters for this key.- Specified by:
getParameterSpecin interfaceCMCEKey- Returns:
- a CMCEParameterSpec
-
destroy
public void destroy()Destroy this key, zeroizing the secret key material it holds.After destruction
isDestroyed()returns true andgetEncoded()throwsIllegalStateException.- Specified by:
destroyin interfaceDestroyable
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceDestroyable
-