public abstract class ECKey extends java.lang.Object implements Key, ASN1Object, java.security.interfaces.ECKey
Modifier | Constructor and Description |
---|---|
protected |
ECKey() |
protected |
ECKey(java.security.interfaces.ECKey ecKey) |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
clone()
Performs a deep clone of the Key instance.
|
void |
erase()
Erases the sensitive key material of a private or symmetric key, making the key un-usable.
|
AlgorithmIdentifier |
getAlgID() |
java.lang.String |
getAlgorithm()
Returns the algorithm for which this key is primarily used.
|
int |
getBitLength()
Returns the number of bits required to represent this key's defining key material.
|
ASN1Object |
getContents() |
java.security.interfaces.ECKey |
getKey() |
java.security.spec.ECParameterSpec |
getParams() |
void |
readExternal(java.io.ObjectInput is) |
void |
writeExternal(java.io.ObjectOutput os) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllowExport, getEncoded, getFormat
input, length, output
protected ECKey()
protected ECKey(java.security.interfaces.ECKey ecKey)
public java.lang.String getAlgorithm()
Key
getAlgorithm
in interface java.security.Key
public int getBitLength()
Key
public java.security.interfaces.ECKey getKey()
public java.security.spec.ECParameterSpec getParams()
getParams
in interface java.security.interfaces.ECKey
public AlgorithmIdentifier getAlgID()
public ASN1Object getContents()
public abstract java.lang.Object clone()
Key
clone
in class java.lang.Object
public void erase()
Key
Note: After erase()
has been invoked, no other methods of the Key
object are guaranteed to function correctly. In particular, invoking another method after erase()
may result in a NullPointerException
being thrown.
public void writeExternal(java.io.ObjectOutput os) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput is) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException