Module io.github.mmm.crypto
Interface AsymmetricKeyPairFactory<PR extends PrivateKey,PU extends PublicKey,PAIR extends AsymmetricKeyPair<PR,PU>>
-
- Type Parameters:
PR
- type ofPrivateKey
.PU
- type ofPublicKey
.PAIR
- type ofAsymmetricKeyPair
.
- All Superinterfaces:
AsymmetricKeyPairFactorySimple<PR,PU,PAIR>
,PrivateKeyFactory<PR>
,PublicKeyFactory<PU>
- All Known Subinterfaces:
AsymmetricKeyCreator<PR,PU,PAIR>
- All Known Implementing Classes:
AbstractAsymmetricKeyCreator
,AbstractAsymmetricKeyPairFactory
,AsymmetricKeyCreatorEcBc
,AsymmetricKeyCreatorImpl
,AsymmetricKeyCreatorRsa
,AsymmetricKeyPairFactoryEcBc
,AsymmetricKeyPairFactoryEcBcCompact
,AsymmetricKeyPairFactoryEcBcUncompressed
,AsymmetricKeyPairFactoryEcJce
,AsymmetricKeyPairFactoryEncoded
,AsymmetricKeyPairFactoryRsaCompact
public interface AsymmetricKeyPairFactory<PR extends PrivateKey,PU extends PublicKey,PAIR extends AsymmetricKeyPair<PR,PU>> extends PrivateKeyFactory<PR>, PublicKeyFactory<PU>, AsymmetricKeyPairFactorySimple<PR,PU,PAIR>
Interface for factory to create instances ofAsymmetricKeyPair
,PrivateKey
, andPublicKey
. It shall only be used internally (as SPI). End-users shall useAsymmetricKeyCreator
.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Binary
asBinary(PAIR keyPair)
byte[]
asData(PAIR keyPair)
PAIR
createKeyPair(byte[] data)
-
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
-
-
-
-
Method Detail
-
asBinary
default Binary asBinary(PAIR keyPair)
- Parameters:
keyPair
- theAsymmetricKeyPair
to serialize.- Returns:
- the serialized
Binary
.
-
asData
byte[] asData(PAIR keyPair)
- Parameters:
keyPair
- theAsymmetricKeyPair
to serialize.- Returns:
- the serialized binary data.
-
createKeyPair
PAIR createKeyPair(byte[] data)
- Parameters:
data
- theAsymmetricKeyPair
in its binary form.- Returns:
- the deserialized
AsymmetricKeyPair
.
-
-