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

public final Class EdDSAPrivateKeyImpl

extends PKCS8Key
implements EdECPrivateKey
Class Inheritance
All Implemented Interfaces
java.security.interfaces.EdECPrivateKey, java.security.PrivateKey, javax.security.auth.Destroyable, java.security.AsymmetricKey, java.security.BinaryEncodable, java.security.Key, java.io.Serializable, java.security.interfaces.EdECKey
Imports
java.io.IOException, .InvalidObjectException, .ObjectInputStream, java.security.InvalidKeyException, java.security.interfaces.EdECPrivateKey, java.util.Optional, java.security.spec.NamedParameterSpec, sun.security.pkcs.PKCS8Key, sun.security.x509.AlgorithmId, sun.security.util.*

Field Summary

Modifier and TypeField and Description
private byte[]
h

private final NamedParameterSpec
private static final long
Inherited from sun.security.pkcs.PKCS8Key:
algidencodedKeyprivKeyMaterialpubKeyEncodedV1V2

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
EdDSAPrivateKeyImpl(byte[] encoded)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public String
getAlgorithm()

Overrides sun.security.pkcs.PKCS8Key.getAlgorithm.

Implements java.security.Key.getAlgorithm.

Returns the standard algorithm name for this key.

public Optional<byte[]>
getBytes()

Implements java.security.interfaces.EdECPrivateKey.getBytes.

Get a copy of the byte array representing the private key.

public byte[]
public NamedParameterSpec
getParams()

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

Returns the parameters associated with this key.

private void
readObject(ObjectInputStream
the ObjectInputStream from which data is read
stream
)

Hides sun.security.pkcs.PKCS8Key.readObject.

Restores the state of this object from the stream.

Inherited from sun.security.pkcs.PKCS8Key:
clearequalsgetAlgorithmIdgetEncodedgetEncodedgetFormatgetPubKeyEncodedgetVersionhashCodehasPublicKeyparseKeyparseKeywriteReplace

Field Detail

hback to summary
private byte[] h
paramSpecback to summary
private final NamedParameterSpec paramSpec
Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides sun.security.pkcs.PKCS8Key.serialVersionUID, java.security.PrivateKey.serialVersionUID.

Annotations
@Serial

Constructor Detail

EdDSAPrivateKeyImplback to summary
pack-priv EdDSAPrivateKeyImpl(EdDSAParameters params, byte[] h) throws InvalidKeyException
EdDSAPrivateKeyImplback to summary
pack-priv EdDSAPrivateKeyImpl(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.pkcs.PKCS8Key.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
getBytesback to summary
public Optional<byte[]> getBytes()

Implements java.security.interfaces.EdECPrivateKey.getBytes.

Doc from java.security.interfaces.EdECPrivateKey.getBytes.

Get a copy of the byte array representing the private key. This method may return an empty Optional if the implementation is not willing to produce the private key value.

Annotations
@Override
getKeyback to summary
public byte[] getKey()
getParamsback to summary
public NamedParameterSpec getParams()

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

Doc from java.security.interfaces.EdECPrivateKey.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
readObjectback to summary
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException

Hides sun.security.pkcs.PKCS8Key.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