|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1.9) E56315-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.core.ECKey
oracle.security.crypto.core.ECPrivateKey
public class ECPrivateKey
This class represents elliptic curve private key as described in ANSI X9.62.
| Field Summary |
|---|
| Fields inherited from interface java.security.interfaces.ECPrivateKey |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
ECPrivateKey() |
|
ECPrivateKey(byte[] spki) |
|
ECPrivateKey(java.security.interfaces.ECPrivateKey ecKey) |
|
ECPrivateKey(java.io.InputStream is) |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()Performs a deep clone of the Key instance. |
boolean |
getAllowExport()If false, this key's material may not be exported in plaintext; if true, and if the global export flag is true, the key's material may be exported in plaintext. |
byte[] |
getEncoded()Returns the encoded form of this key. |
java.lang.String |
getFormat()Returns the format of this key's encoded form. |
java.math.BigInteger |
getS() |
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. |
void |
setAllowExport(boolean value) |
| Methods inherited from class oracle.security.crypto.core.ECKey |
|---|
erase, getAlgID, getAlgorithm, getBitLength, getContents, getKey, getParams, readExternal, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.security.crypto.core.PrivateKey |
|---|
getAlgID, getContents |
| Methods inherited from interface oracle.security.crypto.core.Key |
|---|
erase, getAlgorithm, getBitLength |
| Methods inherited from interface java.io.Externalizable |
|---|
readExternal, writeExternal |
| Methods inherited from interface java.security.interfaces.ECKey |
|---|
getParams |
| Constructor Detail |
|---|
public ECPrivateKey()
public ECPrivateKey(java.security.interfaces.ECPrivateKey ecKey)
public ECPrivateKey(byte[] spki)
throws java.io.IOException
java.io.IOException
public ECPrivateKey(java.io.InputStream is)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public byte[] getEncoded()
KeygetEncoded in interface java.security.Keypublic boolean getAllowExport()
Keyfalse, this key's material may not be exported in plaintext; if true, and if the global export flag is true, the key's material may be exported in plaintext.
If plaintext export is not allowed, the key's output methods, such as Key.getEncoded() will throw a KeyExportException.
FIPS_140_2.getAllowKeyExport(), Cipher.wrapKey(oracle.security.crypto.core.PrivateKey)public void setAllowExport(boolean value)
public java.lang.String getFormat()
KeygetFormat in interface java.security.Key
public void initialize(AlgorithmIdentifier algID,
ASN1Object contents)
throws AlgorithmIdentifierException,
InvalidInputException
PrivateKeyAlgorithmIdentifierExceptionInvalidInputExceptionpublic java.lang.Object clone()
Keyclone in class ECKeypublic java.math.BigInteger getS()
getS in interface java.security.interfaces.ECPrivateKey
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
|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1.9) E56315-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||