Package org.europa.together.application
Class JavaCryptoTools
- java.lang.Object
-
- org.europa.together.application.JavaCryptoTools
-
- All Implemented Interfaces:
CryptoTools
@Repository @FeatureToggle(featureID="CM-0005") public class JavaCryptoTools extends Object implements CryptoTools
Implementation of java cryptography implementations.
-
-
Field Summary
-
Fields inherited from interface org.europa.together.business.CryptoTools
FEATURE_ID
-
-
Constructor Summary
Constructors Constructor Description JavaCryptoTools()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
calculateHash(String plainText, HashAlgorithm algorithm)
Calculates from a given String an hash.
-
-
-
Method Detail
-
calculateHash
public String calculateHash(String plainText, HashAlgorithm algorithm)
Description copied from interface:CryptoTools
Calculates from a given String an hash.- Specified by:
calculateHash
in interfaceCryptoTools
- Parameters:
plainText
- as Stringalgorithm
- as HashAlgorithm- Returns:
- the calculated hash as String
-
-