- java.lang.Object
-
- io.github.mmm.crypto.algorithm.AbstractSecurityAlgorithm
-
- io.github.mmm.crypto.algorithm.AbstractCryptoAlgorithmWithProvider
-
- io.github.mmm.crypto.algorithm.CryptoAlgorithmImpl
-
- All Implemented Interfaces:
CryptoAlgorithm
- Direct Known Subclasses:
CryptoAlgorithmImplWithRandom
,HashCreatorImplDigest
public abstract class CryptoAlgorithmImpl extends AbstractCryptoAlgorithmWithProvider
Implementation ofCryptoAlgorithm
.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from class io.github.mmm.crypto.algorithm.AbstractCryptoAlgorithmWithProvider
provider
-
-
Constructor Summary
Constructors Constructor Description CryptoAlgorithmImpl(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.algorithm.AbstractCryptoAlgorithmWithProvider
getProvider
-
Methods inherited from class io.github.mmm.crypto.algorithm.AbstractSecurityAlgorithm
creationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toString
-
-
-
-
Constructor Detail
-
CryptoAlgorithmImpl
public CryptoAlgorithmImpl(String algorithm, SecurityProvider provider)
The constructor.- Parameters:
algorithm
- thealgorithm
.provider
- theSecurityProvider
.
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
- Returns:
- the name of the underlying algorithm (e.g. "RSA", "NONEwithECDSA", etc.).
- See Also:
Key.getAlgorithm()
,Signature.getAlgorithm()
,MessageDigest.getAlgorithm()
,SecureRandom.getAlgorithm()
,Cipher.getAlgorithm()
-
-