public class BCHawkPrivateKey extends java.lang.Object implements java.security.PrivateKey, HawkKey
PrivateKeyInfo via the lightweight PrivateKeyFactory.
Equality uses Arrays.constantTimeAreEqual(byte[], byte[]) on the encoded private
key bytes to avoid leaking secret material through timing-distinguishable
comparisons.| Constructor and Description |
|---|
BCHawkPrivateKey(HawkPrivateKeyParameters params) |
BCHawkPrivateKey(PrivateKeyInfo keyInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
HawkParameterSpec |
getParameterSpec()
Return the parameters for this key.
|
int |
hashCode() |
public BCHawkPrivateKey(HawkPrivateKeyParameters params)
public BCHawkPrivateKey(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 HawkParameterSpec getParameterSpec()
HawkKeygetParameterSpec in interface HawkKeypublic java.lang.String getFormat()
getFormat in interface java.security.Key