Top Description Fields Constructors Methods
sun.security.ec

public final Class ECPublicKeyImpl

extends X509Key
implements ECPublicKey
Class Inheritance
All Implemented Interfaces
java.security.interfaces.ECPublicKey, java.security.interfaces.ECKey, java.security.PublicKey, java.security.AsymmetricKey, java.security.Key, java.io.Serializable
Imports
java.io.IOException, .InvalidObjectException, .ObjectInputStream, java.security.*, java.security.interfaces.*, java.security.spec.*, sun.security.util.ECParameters, .ECUtil, sun.security.x509.*

Key implementation for EC public keys.
Author
Andreas Sterbenz
Since
1.6

Field Summary

Modifier and TypeField and Description
private ECParameterSpec
private static final long
private ECPoint
w

Inherited from sun.security.x509.X509Key:
algidencodedKeykey

Constructor Summary

AccessConstructor and Description
pack-priv
ECPublicKeyImpl(ECPoint w, ECParameterSpec params)

Construct a key from its components.

pack-priv
ECPublicKeyImpl(byte[] encoded)

Construct a key from its encoding.

Method Summary

Modifier and TypeMethod and Description
public String
getAlgorithm()

Overrides sun.security.x509.X509Key.getAlgorithm.

Implements java.security.Key.getAlgorithm.

Returns the standard algorithm name for this key.
public byte[]
public ECParameterSpec
getParams()

Overrides default java.security.interfaces.ECPublicKey.getParams, java.security.AsymmetricKey.getParams.

Returns the parameters associated with this key.
public ECPoint
getW()

Implements java.security.interfaces.ECPublicKey.getW.

Returns the public point W.
protected void
private void
readObject(ObjectInputStream
the ObjectInputStream from which data is read
stream
)

Hides sun.security.x509.X509Key.readObject.

Restores the state of this object from the stream.
public String
toString()

Overrides sun.security.x509.X509Key.toString.

Returns a string representation of the object.
private Object
Inherited from sun.security.x509.X509Key:
decodeencodeencodeequalsgetAlgorithmIdgetEncodedgetEncodedInternalgetFormatgetKeyhashCodeparsesetKey

Field Detail

paramsback to summary
private ECParameterSpec params
Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides sun.security.x509.X509Key.serialVersionUID, java.security.interfaces.ECPublicKey.serialVersionUID, java.security.PublicKey.serialVersionUID.

Annotations
@Serial
wback to summary
private ECPoint w
Annotations
@SuppressWarnings:serial

Constructor Detail

ECPublicKeyImplback to summary
pack-priv ECPublicKeyImpl(ECPoint w, ECParameterSpec params) throws InvalidKeyException

Construct a key from its components. Used by the ECKeyFactory.

Annotations
@SuppressWarnings:deprecation
ECPublicKeyImplback to summary
pack-priv ECPublicKeyImpl(byte[] encoded) throws InvalidKeyException

Construct a key from its encoding.

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Overrides sun.security.x509.X509Key.getAlgorithm.

Implements java.security.Key.getAlgorithm.

Doc from java.security.Key.getAlgorithm.

Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key. See the key related sections (KeyFactory, KeyGenerator, KeyPairGenerator, and SecretKeyFactory) in the Java Security Standard Algorithm Names Specification for information about standard key algorithm names.

Returns:String

the name of the algorithm associated with this key.

getEncodedPublicValueback to summary
public byte[] getEncodedPublicValue()
Annotations
@SuppressWarnings:deprecation
getParamsback to summary
public ECParameterSpec getParams()

Overrides default java.security.interfaces.ECPublicKey.getParams, java.security.AsymmetricKey.getParams.

Doc from java.security.interfaces.ECPublicKey.getParams.

Returns the parameters associated with this key. The parameters are optional and may be either explicitly specified or implicitly created during key pair generation.

Returns:ECParameterSpec

the associated parameters, may be null

getWback to summary
public ECPoint getW()

Implements java.security.interfaces.ECPublicKey.getW.

Doc from java.security.interfaces.ECPublicKey.getW.

Returns the public point W.

Returns:ECPoint

the public point W.

parseKeyBitsback to summary
protected void parseKeyBits() throws InvalidKeyException

Overrides sun.security.x509.X509Key.parseKeyBits.

Parse the key. Called by X509Key.

Annotations
@SuppressWarnings:deprecation
Exceptions
InvalidKeyException:

Doc from sun.security.x509.X509Key.parseKeyBits.

on invalid key encodings.

readObjectback to summary
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException

Hides sun.security.x509.X509Key.readObject.

Restores the state of this object from the stream.

Deserialization of this object is not supported.

Parameters
stream:ObjectInputStream

the ObjectInputStream from which data is read

Annotations
@Serial
Exceptions
IOException:
if an I/O error occurs
ClassNotFoundException:
if a serialized class cannot be loaded
toStringback to summary
public String toString()

Overrides sun.security.x509.X509Key.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

writeReplaceback to summary
private Object writeReplace() throws ObjectStreamException
Annotations
@Serial