- 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 algorithmtogether 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 Stringalgorithm-
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 StringgetAlgorithm()-
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:
getAlgorithmin 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()
-
-