- java.lang.Object
-
- io.github.mmm.crypto.CryptoConfig
-
- io.github.mmm.crypto.algorithm.CryptoAlgorithmConfig
-
- All Implemented Interfaces:
CryptoAlgorithm
- Direct Known Subclasses:
CryptorConfig
,HashConfig
,KeyConfig
,RandomConfig
,SignatureConfig
public abstract class CryptoAlgorithmConfig extends CryptoConfig implements CryptoAlgorithm
Abstract base class for asecurity algorithm
together with its according parameters.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected String
algorithm
-
Fields inherited from class io.github.mmm.crypto.CryptoConfig
provider
-
-
Constructor Summary
Constructors Constructor Description CryptoAlgorithmConfig(String algorithm, SecurityProvider provider)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlgorithm()
-
Methods inherited from class io.github.mmm.crypto.CryptoConfig
getProvider
-
-
-
-
Field Detail
-
algorithm
protected final String algorithm
- See Also:
getAlgorithm()
-
-
Constructor Detail
-
CryptoAlgorithmConfig
public CryptoAlgorithmConfig(String algorithm, SecurityProvider provider)
The constructor.
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceCryptoAlgorithm
- Returns:
- the name of the underlying algorithm (e.g. "RSA", "NONEwithECDSA", etc.).
- See Also:
Key.getAlgorithm()
,Signature.getAlgorithm()
,MessageDigest.getAlgorithm()
,SecureRandom.getAlgorithm()
,Cipher.getAlgorithm()
-
-