Class SimpleStringPBEConfig
java.lang.Object
org.jasypt.encryption.pbe.config.SimplePBEConfig
org.jasypt.encryption.pbe.config.SimpleStringPBEConfig
- All Implemented Interfaces:
PBECleanablePasswordConfig, PBEConfig, StringPBEConfig
Bean implementation for StringPBEConfig. This class allows
the values for the configuration parameters to be set
via "standard" setX methods.
For any of the configuration parameters, if its setX method is not called, a null value will be returned by the corresponding getX method.
- Since:
- 1.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis parameter lets the user specify the form in which String output will be encoded.voidsetStringOutputType(String stringOutputType) Sets the the form in which String output will be encoded.Methods inherited from class SimplePBEConfig
cleanPassword, getAlgorithm, getIvGenerator, getKeyObtentionIterations, getPassword, getPasswordCharArray, getPoolSize, getProvider, getProviderName, getSaltGenerator, setAlgorithm, setIvGenerator, setIvGeneratorClassName, setKeyObtentionIterations, setKeyObtentionIterations, setPassword, setPasswordCharArray, setPoolSize, setPoolSize, setProvider, setProviderClassName, setProviderName, setSaltGenerator, setSaltGeneratorClassNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PBEConfig
getAlgorithm, getIvGenerator, getKeyObtentionIterations, getPassword, getPoolSize, getProvider, getProviderName, getSaltGenerator
-
Field Details
-
stringOutputType
-
-
Constructor Details
-
SimpleStringPBEConfig
public SimpleStringPBEConfig()Creates a new SimpleStringPBEConfig instance.
-
-
Method Details
-
setStringOutputType
Sets the the form in which String output will be encoded. Available encoding types are:
- base64 (default)
- hexadecimal
If not set, null will be returned.
Determines the result of:
getStringOutputType()- Parameters:
stringOutputType- the string output type.
-
getStringOutputType
Description copied from interface:StringPBEConfigThis parameter lets the user specify the form in which String output will be encoded. Available encoding types are:
- base64 (default)
- hexadecimal
- Specified by:
getStringOutputTypein interfaceStringPBEConfig- Returns:
- The name of the encoding type for String output
-