Module io.github.mmm.crypto
Class AsymmetricKeyPairFactoryGeneric
- java.lang.Object
-
- io.github.mmm.crypto.asymmetric.key.generic.AsymmetricKeyPairFactoryGeneric
-
- All Implemented Interfaces:
AsymmetricKeyPairFactorySimple<PrivateKey,PublicKey,AsymmetricKeyPairGeneric>
public class AsymmetricKeyPairFactoryGeneric extends Object implements AsymmetricKeyPairFactorySimple<PrivateKey,PublicKey,AsymmetricKeyPairGeneric>
Implementation ofAsymmetricKeyPairFactorySimple
forAsymmetricKeyPairGeneric
.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description AsymmetricKeyPairFactoryGeneric()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AsymmetricKeyPairGeneric
createKeyPair(PrivateKey privateKey, PublicKey publicKey)
static AsymmetricKeyPairFactoryGeneric
get()
-
-
-
Method Detail
-
createKeyPair
public AsymmetricKeyPairGeneric createKeyPair(PrivateKey privateKey, PublicKey publicKey)
- Specified by:
createKeyPair
in interfaceAsymmetricKeyPairFactorySimple<PrivateKey,PublicKey,AsymmetricKeyPairGeneric>
- Parameters:
privateKey
- thePrivateKey
.publicKey
- the correspondingPublicKey
.- Returns:
- the
AsymmetricKeyPair
.
-
get
public static final AsymmetricKeyPairFactoryGeneric get()
- Returns:
- the singleton instance.
-
-