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

public Class EdDSAKeyFactory

extends KeyFactorySpi
Class Inheritance
Known Direct Subclasses
sun.security.ec.ed.EdDSAKeyFactory.Ed25519, sun.security.ec.ed.EdDSAKeyFactory.Ed448
Imports
sun.security.pkcs.PKCS8Key, sun.security.util.KeyUtil, java.security.*, java.security.interfaces.*, java.security.spec.*, java.util.Arrays, java.util.function.Function

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private EdDSAParameters

Constructor Summary

AccessConstructor and Description
public
protected

Method Summary

Modifier and TypeMethod and Description
private <T extends Throwable> void
private <T extends Throwable> void
protected PrivateKey
engineGeneratePrivate(KeySpec keySpec)

Implements abstract java.security.KeyFactorySpi.engineGeneratePrivate.

Generates a private key object from the provided key specification (key material).

protected PublicKey
engineGeneratePublic(KeySpec keySpec)

Implements abstract java.security.KeyFactorySpi.engineGeneratePublic.

Generates a public key object from the provided key specification (key material).

protected <T extends KeySpec> T
engineGetKeySpec(Key key, Class<T> keySpec)

Implements abstract java.security.KeyFactorySpi.engineGetKeySpec.

Returns a specification (key material) of the given key object.

protected Key
engineTranslateKey(Key key)

Implements abstract java.security.KeyFactorySpi.engineTranslateKey.

Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.

private PrivateKey
private PublicKey

Field Detail

lockedParamsback to summary
private EdDSAParameters lockedParams

Constructor Detail

EdDSAKeyFactoryback to summary
public EdDSAKeyFactory()
EdDSAKeyFactoryback to summary
protected EdDSAKeyFactory(NamedParameterSpec paramSpec)

Method Detail

checkLockedParamsback to summary
private <T extends Throwable> void checkLockedParams(Function<String, T> exception, NamedParameterSpec spec) throws Function:T
checkLockedParamsback to summary
private <T extends Throwable> void checkLockedParams(Function<String, T> exception, EdDSAParameters params) throws Function:T
engineGeneratePrivateback to summary
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException

Implements abstract java.security.KeyFactorySpi.engineGeneratePrivate.

Doc from java.security.KeyFactorySpi.engineGeneratePrivate.

Generates a private key object from the provided key specification (key material).

Annotations
@Override
Exceptions
InvalidKeySpecException:
if the given key specification is inappropriate for this key factory to produce a private key.
engineGeneratePublicback to summary
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException

Implements abstract java.security.KeyFactorySpi.engineGeneratePublic.

Doc from java.security.KeyFactorySpi.engineGeneratePublic.

Generates a public key object from the provided key specification (key material).

Annotations
@Override
Exceptions
InvalidKeySpecException:
if the given key specification is inappropriate for this key factory to produce a public key.
engineGetKeySpecback to summary
protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException

Implements abstract java.security.KeyFactorySpi.engineGetKeySpec.

Doc from java.security.KeyFactorySpi.engineGetKeySpec.

Returns a specification (key material) of the given key object. keySpec identifies the specification class in which the key material should be returned. It could, for example, be DSAPublicKeySpec.class, to indicate that the key material should be returned in an instance of the DSAPublicKeySpec class.

Exceptions
InvalidKeySpecException:
if the requested key specification is inappropriate for the given key, or the given key cannot be dealt with (e.g., the given key has an unrecognized format).
engineTranslateKeyback to summary
protected Key engineTranslateKey(Key key) throws InvalidKeyException

Implements abstract java.security.KeyFactorySpi.engineTranslateKey.

Doc from java.security.KeyFactorySpi.engineTranslateKey.

Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.

Annotations
@Override
Exceptions
InvalidKeyException:
if the given key cannot be processed by this key factory.
generatePrivateImplback to summary
private PrivateKey generatePrivateImpl(KeySpec keySpec) throws InvalidKeyException, InvalidKeySpecException
generatePublicImplback to summary
private PublicKey generatePublicImpl(KeySpec keySpec) throws InvalidKeyException, InvalidKeySpecException
sun.security.ec.ed back to summary

public Class EdDSAKeyFactory.Ed25519

extends EdDSAKeyFactory
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from sun.security.ec.ed.EdDSAKeyFactory:
engineGeneratePrivateengineGeneratePublicengineGetKeySpecengineTranslateKey

Constructor Detail

Ed25519back to summary
public Ed25519()
sun.security.ec.ed back to summary

public Class EdDSAKeyFactory.Ed448

extends EdDSAKeyFactory
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from sun.security.ec.ed.EdDSAKeyFactory:
engineGeneratePrivateengineGeneratePublicengineGetKeySpecengineTranslateKey

Constructor Detail

Ed448back to summary
public Ed448()