Module io.github.mmm.crypto
Class AsymmetricCryptorConfigRsa
- java.lang.Object
-
- io.github.mmm.crypto.CryptoConfig
-
- io.github.mmm.crypto.algorithm.CryptoAlgorithmConfig
-
- io.github.mmm.crypto.crypt.CryptorConfig
-
- io.github.mmm.crypto.asymmetric.crypt.AsymmetricCryptorConfig<RSAPrivateKey,RSAPublicKey>
-
- io.github.mmm.crypto.asymmetric.crypt.rsa.AsymmetricCryptorConfigRsa
-
- All Implemented Interfaces:
CryptoAlgorithm
,AbstractGetNonceSize
public final class AsymmetricCryptorConfigRsa extends AsymmetricCryptorConfig<RSAPrivateKey,RSAPublicKey>
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static AsymmetricCryptorConfigRsa
RSA
The signleton instance.-
Fields inherited from class io.github.mmm.crypto.algorithm.CryptoAlgorithmConfig
algorithm
-
Fields inherited from class io.github.mmm.crypto.CryptoConfig
provider
-
-
Constructor Summary
Constructors Constructor Description AsymmetricCryptorConfigRsa()
The constructor.AsymmetricCryptorConfigRsa(SecurityProvider provider)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBidirectional()
-
Methods inherited from class io.github.mmm.crypto.crypt.CryptorConfig
getNonceSize, getTransformation, isCreateRandomNonce
-
Methods inherited from class io.github.mmm.crypto.algorithm.CryptoAlgorithmConfig
getAlgorithm
-
Methods inherited from class io.github.mmm.crypto.CryptoConfig
getProvider
-
-
-
-
Field Detail
-
RSA
public static final AsymmetricCryptorConfigRsa RSA
The signleton instance.
-
-
Constructor Detail
-
AsymmetricCryptorConfigRsa
public AsymmetricCryptorConfigRsa()
The constructor.
-
AsymmetricCryptorConfigRsa
public AsymmetricCryptorConfigRsa(SecurityProvider provider)
The constructor.- Parameters:
provider
- theSecurityProvider
.
-
-
Method Detail
-
isBidirectional
public boolean isBidirectional()
- Overrides:
isBidirectional
in classAsymmetricCryptorConfig<RSAPrivateKey,RSAPublicKey>
- Returns:
true
if the underlying asymmetric encryption algorithm is bidirectional and also allows to encrypt with private key and decrypt with public key (like e.g. RSA),false
otherwise (default).
-
-