Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1.9)

E56316-01


oracle.security.crypto.core
Class ECKey

java.lang.Object
  extended by oracle.security.crypto.core.ECKey

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, java.security.interfaces.ECKey, java.security.Key, ASN1Object, Streamable
Direct Known Subclasses:
ECPrivateKey, ECPublicKey

public abstract class ECKey
extends java.lang.Object
implements Key, ASN1Object, java.security.interfaces.ECKey

An abstract class for elliptic curve crypto-system keys.

See Also:
Serialized Form

Field Summary

 

Fields inherited from interface java.security.Key
serialVersionUID

 

Constructor Summary
protected ECKey()
           
protected ECKey(java.security.interfaces.ECKey ecKey)
           

 

Method Summary
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)
           

 

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.Key
getAllowExport, getEncoded, getFormat

 

Methods inherited from interface oracle.security.crypto.util.Streamable
input, length, output

 

Constructor Detail

ECKey

protected ECKey()

ECKey

protected ECKey(java.security.interfaces.ECKey ecKey)

Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Description copied from interface: Key
Returns the algorithm for which this key is primarily used.
Specified by:
getAlgorithm in interface java.security.Key

getBitLength

public int getBitLength()
Description copied from interface: Key
Returns the number of bits required to represent this key's defining key material. For example, in the case of an RSA key, the bit length of the modulus would be returned.

getKey

public java.security.interfaces.ECKey getKey()

getParams

public java.security.spec.ECParameterSpec getParams()
Specified by:
getParams in interface java.security.interfaces.ECKey

getAlgID

public AlgorithmIdentifier getAlgID()

getContents

public ASN1Object getContents()

clone

public abstract java.lang.Object clone()
Description copied from interface: Key
Performs a deep clone of the Key instance.
Overrides:
clone in class java.lang.Object
Returns:
A deep clone of the Key instance.

erase

public void erase()
Description copied from interface: Key
Erases the sensitive key material of a private or symmetric key, making the key un-usable. Keys may be erased multiple times with no consequences.

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.


writeExternal

public void writeExternal(java.io.ObjectOutput os)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput is)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1.9)

E56316-01


Copyright © 2005, 2015 , Oracle. All rights reserved.