public final class RFC5915Key
extends java.lang.Object
implements java.security.interfaces.ECPrivateKey
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
equals(java.lang.Object object)
Compares two private keys.
|
java.lang.String |
getAlgorithm()
Returns the algorithm to be used with this key.
|
byte[] |
getArrayS() |
byte[] |
getEncoded()
Returns the DER-encoded form of the key as a byte array,
or
null if an encoding error occurs. |
java.lang.String |
getFormat()
Returns the format for this key: "RFC5915"
|
java.security.spec.ECParameterSpec |
getParams() |
java.math.BigInteger |
getS() |
int |
hashCode()
Calculates a hash code value for this object.
|
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic byte[] getEncoded()
null if an encoding error occurs.getEncoded in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic java.math.BigInteger getS()
getS in interface java.security.interfaces.ECPrivateKeypublic byte[] getArrayS()
public java.security.spec.ECParameterSpec getParams()
getParams in interface java.security.interfaces.ECKeypublic boolean equals(java.lang.Object object)
Key.
Otherwise, the encoding of this key object is compared with the
encoding of the given key object.equals in class java.lang.Objectobject - the object with which to comparetrue if this key has the same encoding as the
object argument; false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic void clear()