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 ECPublicKey

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

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, java.security.interfaces.ECKey, java.security.interfaces.ECPublicKey, java.security.Key, java.security.PublicKey, ASN1Object, Streamable

public class ECPublicKey
extends ECKey
implements PublicKey, java.security.interfaces.ECPublicKey

This class represents elliptic curve public key as described in ANSI X9.62.

See Also:
Serialized Form

Field Summary

 

Fields inherited from interface java.security.interfaces.ECPublicKey
serialVersionUID

 

Constructor Summary
ECPublicKey()
           
ECPublicKey(byte[] spki)
           
ECPublicKey(java.security.interfaces.ECPublicKey ecKey)
           
ECPublicKey(java.io.InputStream is)
           

 

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

 

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.PublicKey
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

ECPublicKey

public ECPublicKey()

ECPublicKey

public ECPublicKey(java.security.interfaces.ECPublicKey ecKey)

ECPublicKey

public ECPublicKey(byte[] spki)
            throws java.io.IOException
Throws:
java.io.IOException

ECPublicKey

public ECPublicKey(java.io.InputStream is)
            throws java.io.IOException
Throws:
java.io.IOException

Method Detail

getEncoded

public byte[] getEncoded()
Description copied from interface: Key
Returns the encoded form of this key.
Specified by:
getEncoded in interface java.security.Key

getAllowExport

public boolean getAllowExport()
Always returns true.
Returns:
Whether or not this key's material may be exported in plaintext.
See Also:
FIPS_140_2.getAllowKeyExport(), Cipher.wrapKey(oracle.security.crypto.core.PrivateKey)

getFormat

public java.lang.String getFormat()
Description copied from interface: Key
Returns the format of this key's encoded form.
Specified by:
getFormat in interface java.security.Key

clone

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

initialize

public void initialize(AlgorithmIdentifier algID,
                       ASN1Object contents)
                throws AlgorithmIdentifierException,
                       InvalidInputException
Description copied from interface: PublicKey
Initializes this instance from the given algorithm paramters and key contents.
Throws:
AlgorithmIdentifierException
InvalidInputException

getW

public java.security.spec.ECPoint getW()
Specified by:
getW in interface java.security.interfaces.ECPublicKey

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Description copied from interface: Streamable
Inputs this object from the specified input stream.
Specified by:
input in interface Streamable
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Description copied from interface: Streamable
Outputs this object to the specified output stream.
Specified by:
output in interface Streamable
Throws:
java.io.IOException

length

public int length()
Description copied from interface: Streamable
Length of this object's encoding.
Specified by:
length in interface Streamable

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.