Module io.github.mmm.crypto
Class AbstractAsymmetricKeyPairFactory<PR extends PrivateKey,PU extends PublicKey,PAIR extends AbstractAsymmetricKeyPair<PR,PU>>
- java.lang.Object
-
- io.github.mmm.crypto.asymmetric.key.AbstractAsymmetricKeyPairFactory<PR,PU,PAIR>
-
- Type Parameters:
PR- type ofPrivateKey.PU- type ofPublicKey.PAIR- type ofAsymmetricKeyPair.
- All Implemented Interfaces:
AsymmetricKeyPairFactory<PR,PU,PAIR>,AsymmetricKeyPairFactorySimple<PR,PU,PAIR>,PrivateKeyFactory<PR>,PublicKeyFactory<PU>
- Direct Known Subclasses:
AsymmetricKeyPairFactoryEcBc,AsymmetricKeyPairFactoryEcJce,AsymmetricKeyPairFactoryEncoded,AsymmetricKeyPairFactoryRsaCompact
public abstract class AbstractAsymmetricKeyPairFactory<PR extends PrivateKey,PU extends PublicKey,PAIR extends AbstractAsymmetricKeyPair<PR,PU>> extends Object implements AsymmetricKeyPairFactory<PR,PU,PAIR>
Abstract base implementation ofAsymmetricKeyPairFactoryusingKeyFactory.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractAsymmetricKeyPairFactory(KeyFactory keyFactory)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PRcreatePrivateKey(KeySpec keySpec)protected PUcreatePublicKey(KeySpec keySpec)KeyFactorygetKeyFactory()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.key.AsymmetricKeyPairFactory
asBinary, asData, createKeyPair
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.key.AsymmetricKeyPairFactorySimple
createKeyPair
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.key.PrivateKeyFactory
asBinary, asData, createPrivateKey
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.key.PublicKeyFactory
asBinary, asData, createPublicKey
-
-
-
-
Constructor Detail
-
AbstractAsymmetricKeyPairFactory
public AbstractAsymmetricKeyPairFactory(KeyFactory keyFactory)
The constructor.- Parameters:
keyFactory- theKeyFactory.
-
-
Method Detail
-
getKeyFactory
public KeyFactory getKeyFactory()
- Returns:
- the underlying
KeyFactory.
-
createPrivateKey
protected PR createPrivateKey(KeySpec keySpec)
- Parameters:
keySpec- theKeySpec.- Returns:
- the
PrivateKey.
-
-