Package com.easydesk.crypto
Class DefaultCryptoService
java.lang.Object
com.easydesk.crypto.DefaultCryptoService
- All Implemented Interfaces:
CryptoService
- Author:
- Youngho Cho
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCryptoAlgorithm(String algo) Returns a CryptoAlgorithm Object which represents the requested crypto algorithm.voidsetConfiguredAlgorithms(Map<String, String> configuredAlgorithms) voidsetSaltSize(int saltSize)
-
Constructor Details
-
DefaultCryptoService
public DefaultCryptoService()
-
-
Method Details
-
getCryptoAlgorithm
Description copied from interface:CryptoServiceReturns a CryptoAlgorithm Object which represents the requested crypto algorithm.- Specified by:
getCryptoAlgorithmin interfaceCryptoService- Parameters:
algo- Name of the requested algorithm- Returns:
- An Object representing the algorithm
- Throws:
NoSuchAlgorithmException- Requested algorithm is not available
-
setConfiguredAlgorithms
-
setSaltSize
public void setSaltSize(int saltSize)
-