Top Inners Fields Constructors Methods
org.bouncycastle.jcajce.provider.asymmetric.mldsa

public Class MLDSAKeyFactorySpi

extends BaseKeyFactorySpi
Class Inheritance
Known Direct Subclasses
org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi.Pure, org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi.MLDSA44, org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi.MLDSA65, org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi.MLDSA87, org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi.Hash, org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi.HashMLDSA44, org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi.HashMLDSA65, org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi.HashMLDSA87
Imports
java.io.IOException, java.security.InvalidKeyException, .Key, .PrivateKey, .PublicKey, java.security.spec.InvalidKeySpecException, .KeySpec, .PKCS8EncodedKeySpec, .X509EncodedKeySpec, java.util.HashSet, .Set, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.pkcs.PrivateKeyInfo, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo, org.bouncycastle.jcajce.spec.MLDSAPrivateKeySpec, .MLDSAPublicKeySpec, org.bouncycastle.pqc.crypto.mldsa.MLDSAParameters, .MLDSAPrivateKeyParameters, .MLDSAPublicKeyParameters, org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi, org.bouncycastle.util.Arrays

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
private static final Set<ASN1ObjectIdentifier>
private static final Set<ASN1ObjectIdentifier>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public PrivateKey
engineGeneratePrivate(KeySpec
the specification (key material) of the private key.
keySpec
)

Overrides org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi.engineGeneratePrivate.

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

public PublicKey
engineGeneratePublic(KeySpec
the specification (key material) of the public key.
keySpec
)

Overrides org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi.engineGeneratePublic.

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

public final KeySpec
engineGetKeySpec(Key
the key.
key
,
Class<T>
the specification class in which the key material should be returned.
keySpec
)

Implements abstract java.security.KeyFactorySpi.engineGetKeySpec.

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

public final Key
engineTranslateKey(Key
the key whose provider is unknown or untrusted.
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.

public PrivateKey
public PublicKey

Field Detail

hashKeyOidsback to summary
private static final Set<ASN1ObjectIdentifier> hashKeyOids
pureKeyOidsback to summary
private static final Set<ASN1ObjectIdentifier> pureKeyOids

Constructor Detail

MLDSAKeyFactorySpiback to summary
public MLDSAKeyFactorySpi(Set<ASN1ObjectIdentifier> keyOids)
MLDSAKeyFactorySpiback to summary
public MLDSAKeyFactorySpi(ASN1ObjectIdentifier keyOid)

Method Detail

engineGeneratePrivateback to summary
public PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException

Overrides org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi.engineGeneratePrivate.

Doc from java.security.KeyFactorySpi.engineGeneratePrivate.

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

Parameters
keySpec:KeySpec

the specification (key material) of the private key.

Returns:PrivateKey

the private key.

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

Overrides org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi.engineGeneratePublic.

Doc from java.security.KeyFactorySpi.engineGeneratePublic.

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

Parameters
keySpec:KeySpec

the specification (key material) of the public key.

Returns:PublicKey

the public key.

Exceptions
InvalidKeySpecException:
if the given key specification is inappropriate for this key factory to produce a public key.
engineGetKeySpecback to summary
public final KeySpec 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.

Parameters
key:Key

the key.

keySpec:Class<T>

the specification class in which the key material should be returned.

Returns:KeySpec

the underlying key specification (key material) in an instance of the requested specification 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
public final 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.

Parameters
key:Key

the key whose provider is unknown or untrusted.

Returns:Key

the translated key.

Exceptions
InvalidKeyException:
if the given key cannot be processed by this key factory.
generatePrivateback to summary
public PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws IOException

Implements org.bouncycastle.jcajce.provider.util.AsymmetricKeyInfoConverter.generatePrivate.

generatePublicback to summary
public PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws IOException

Implements org.bouncycastle.jcajce.provider.util.AsymmetricKeyInfoConverter.generatePublic.

org.bouncycastle.jcajce.provider.asymmetric.mldsa back to summary

public Class MLDSAKeyFactorySpi.Hash

extends MLDSAKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
Hash()

Method Summary

Inherited from org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi:
engineGeneratePrivateengineGeneratePublicengineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

Hashback to summary
public Hash()
org.bouncycastle.jcajce.provider.asymmetric.mldsa back to summary

public Class MLDSAKeyFactorySpi.HashMLDSA44

extends MLDSAKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi:
engineGeneratePrivateengineGeneratePublicengineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

HashMLDSA44back to summary
public HashMLDSA44()
org.bouncycastle.jcajce.provider.asymmetric.mldsa back to summary

public Class MLDSAKeyFactorySpi.HashMLDSA65

extends MLDSAKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi:
engineGeneratePrivateengineGeneratePublicengineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

HashMLDSA65back to summary
public HashMLDSA65()
org.bouncycastle.jcajce.provider.asymmetric.mldsa back to summary

public Class MLDSAKeyFactorySpi.HashMLDSA87

extends MLDSAKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi:
engineGeneratePrivateengineGeneratePublicengineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

HashMLDSA87back to summary
public HashMLDSA87()
org.bouncycastle.jcajce.provider.asymmetric.mldsa back to summary

public Class MLDSAKeyFactorySpi.MLDSA44

extends MLDSAKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi:
engineGeneratePrivateengineGeneratePublicengineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

MLDSA44back to summary
public MLDSA44()
org.bouncycastle.jcajce.provider.asymmetric.mldsa back to summary

public Class MLDSAKeyFactorySpi.MLDSA65

extends MLDSAKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi:
engineGeneratePrivateengineGeneratePublicengineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

MLDSA65back to summary
public MLDSA65()
org.bouncycastle.jcajce.provider.asymmetric.mldsa back to summary

public Class MLDSAKeyFactorySpi.MLDSA87

extends MLDSAKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi:
engineGeneratePrivateengineGeneratePublicengineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

MLDSA87back to summary
public MLDSA87()
org.bouncycastle.jcajce.provider.asymmetric.mldsa back to summary

public Class MLDSAKeyFactorySpi.Pure

extends MLDSAKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
Pure()

Method Summary

Inherited from org.bouncycastle.jcajce.provider.asymmetric.mldsa.MLDSAKeyFactorySpi:
engineGeneratePrivateengineGeneratePublicengineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

Pureback to summary
public Pure()