APIdia Launch Partner
Top Fields Constructors Methods
sun.security.ec.ed

public final Class EdDSAPublicKeyImpl

extends X509Key
implements EdECPublicKey
Class Inheritance
All Implemented Interfaces
java.security.interfaces.EdECPublicKey, java.security.PublicKey, java.security.AsymmetricKey, java.security.BinaryEncodable, java.security.Key, java.io.Serializable, java.security.interfaces.EdECKey
Imports
java.io.IOException, .InvalidObjectException, .ObjectInputStream, java.math.BigInteger, java.security.InvalidKeyException, .KeyRep, java.security.interfaces.EdECPublicKey, java.security.spec.EdECPoint, .NamedParameterSpec, java.util.Arrays, sun.security.util.BitArray, sun.security.x509.AlgorithmId, .X509Key

Field Summary

Modifier and TypeField and Description
private final NamedParameterSpec
private final EdECPoint
private static final long
Inherited from sun.security.x509.X509Key:
algidencodedKey

Constructor Summary

AccessConstructor and Description
public
public
EdDSAPublicKeyImpl(byte[] encoded)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
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 NamedParameterSpec
getParams()

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

Returns the parameters associated with this key.

public EdECPoint
getPoint()

Implements java.security.interfaces.EdECPublicKey.getPoint.

Get the point representing the public key.

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.

private static void
reverse(byte[] arr)

private static void
swap(byte[] arr, int i, int j)

private Object
Inherited from sun.security.x509.X509Key:
decodedecodeencodeencodeequalsgetAlgorithmIdgetEncodedgetFormatgetKeygetKeyAsByteshashCodeparseparseKeyBitssetKeytoString

Field Detail

paramSpecback to summary
private final NamedParameterSpec paramSpec
Annotations
@SuppressWarnings:serial
pointback to summary
private final EdECPoint point
Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

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

Annotations
@Serial

Constructor Detail

EdDSAPublicKeyImplback to summary
public EdDSAPublicKeyImpl(EdDSAParameters params, EdECPoint point) throws InvalidKeyException
EdDSAPublicKeyImplback to summary
public EdDSAPublicKeyImpl(byte[] encoded) throws InvalidKeyException

Method Detail

checkLengthback to summary
pack-priv void checkLength(EdDSAParameters params) throws InvalidKeyException
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, "RSA" would indicate that this key is an RSA key. See the Key Algorithms section in the Java Security Standard Algorithm Names Specification for information about standard key algorithm names.

Annotations
@Override
getEncodedPointback to summary
public byte[] getEncodedPoint()
getParamsback to summary
public NamedParameterSpec getParams()

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

Doc from java.security.interfaces.EdECPublicKey.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.

Annotations
@Override
getPointback to summary
public EdECPoint getPoint()

Implements java.security.interfaces.EdECPublicKey.getPoint.

Doc from java.security.interfaces.EdECPublicKey.getPoint.

Get the point representing the public key.

Annotations
@Override
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
reverseback to summary
private static void reverse(byte[] arr)
swapback to summary
private static void swap(byte[] arr, int i, int j)
writeReplaceback to summary
private Object writeReplace() throws ObjectStreamException
Annotations
@Serial