public class BCCMCEPrivateKey extends java.lang.Object implements CMCEPrivateKey
| Constructor and Description |
|---|
BCCMCEPrivateKey(CMCEPrivateKeyParameters params) |
BCCMCEPrivateKey(PrivateKeyInfo keyInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy this key, zeroizing the secret key material it holds.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
CMCEParameterSpec |
getParameterSpec()
Return the parameters for this key.
|
int |
hashCode() |
boolean |
isDestroyed() |
public BCCMCEPrivateKey(CMCEPrivateKeyParameters params)
public BCCMCEPrivateKey(PrivateKeyInfo keyInfo) throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic CMCEParameterSpec getParameterSpec()
CMCEKeygetParameterSpec in interface CMCEKeypublic void destroy()
After destruction isDestroyed() returns true and getEncoded() throws
IllegalStateException.
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyable