public class ECPublicKey extends ECKey implements PublicKey, java.security.interfaces.ECPublicKey
| Constructor and Description |
|---|
ECPublicKey() |
ECPublicKey(byte[] spki) |
ECPublicKey(java.security.interfaces.ECPublicKey ecKey) |
ECPublicKey(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Performs a deep clone of the Key instance.
|
boolean |
getAllowExport()
Always returns
true. |
byte[] |
getEncoded()
Returns the encoded form of this key.
|
java.lang.String |
getFormat()
Returns the format of this key's encoded form.
|
java.security.spec.ECPoint |
getW() |
void |
initialize(AlgorithmIdentifier algID, ASN1Object contents)
Initializes this instance from the given algorithm paramters and key contents.
|
void |
input(java.io.InputStream is)
Inputs this object from the specified input stream.
|
int |
length()
Length of this object's encoding.
|
void |
output(java.io.OutputStream os)
Outputs this object to the specified output stream.
|
erase, getAlgID, getAlgorithm, getBitLength, getContents, getKey, getParams, readExternal, writeExternalequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgID, getContentserase, getAlgorithm, getBitLengthpublic ECPublicKey()
public ECPublicKey(java.security.interfaces.ECPublicKey ecKey)
public ECPublicKey(byte[] spki)
throws java.io.IOException
java.io.IOException
public ECPublicKey(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic byte[] getEncoded()
KeygetEncoded in interface java.security.Keypublic boolean getAllowExport()
true.FIPS_140_2.getAllowKeyExport(), Cipher.wrapKey(oracle.security.crypto.core.PrivateKey)public java.lang.String getFormat()
KeygetFormat in interface java.security.Keypublic java.lang.Object clone()
Keypublic void initialize(AlgorithmIdentifier algID, ASN1Object contents) throws AlgorithmIdentifierException, InvalidInputException
PublicKeypublic java.security.spec.ECPoint getW()
getW in interface java.security.interfaces.ECPublicKey
public void input(java.io.InputStream is)
throws java.io.IOException
Streamableinput in interface Streamablejava.io.IOException
public void output(java.io.OutputStream os)
throws java.io.IOException
Streamableoutput in interface Streamablejava.io.IOExceptionpublic int length()
Streamablelength in interface Streamable