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, waitgetAllowExport, getEncoded, getFormatinput, length, outputprotected ECKey()
protected ECKey(java.security.interfaces.ECKey ecKey)
public java.lang.String getAlgorithm()
KeygetAlgorithm in interface java.security.Keypublic int getBitLength()
Keypublic java.security.interfaces.ECKey getKey()
public java.security.spec.ECParameterSpec getParams()
getParams in interface java.security.interfaces.ECKeypublic AlgorithmIdentifier getAlgID()
public ASN1Object getContents()
public abstract java.lang.Object clone()
Keyclone in class java.lang.Objectpublic void erase()
KeyNote: 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.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput is)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException