Class EnvironmentDigesterConfig
- All Implemented Interfaces:
DigesterConfig
- Direct Known Subclasses:
EnvironmentStringDigesterConfig
Implementation for DigesterConfig which can retrieve configuration
values from environment variables or system properties.
The name of the environment variable or system property (JVM property) to query for each parameter can be set with its corresponding setXEnvName or setXSysProperty method.
As this class extends SimpleDigesterConfig, parameter values
can be also set with the usual setX methods.
For any of the configuration parameters, if its value is not configured in any way, a null value will be returned by the corresponding getX method.
- Since:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate String -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EnvironmentDigesterConfig instance. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the name of the environment variable which value has been loaded as the algorithm.Retrieve the name of the JVM system property which value has been loaded as the algorithm.Retrieve the name of the environment variable which value has been loaded as the value for the invertPositionOfPlainSaltInEncryptionResults property.Retrieve the name of the JVM system property which value has been loaded as the value for the invertPositionOfPlainSaltInEncryptionResults property.Retrieve the name of the environment variable which value has been loaded as the value for the invertPositionOfSaltInMessageBeforeDigesting property.Retrieve the name of the JVM system property which value has been loaded as the value for the invertPositionOfSaltInMessageBeforeDigesting property.Retrieve the name of the environment variable which value has been loaded as the iteration count.Retrieve the name of the JVM system property which value has been loaded as the iteration count.Retrieve the name of the environment variable which value has been loaded as the value for the poolSize property.Retrieve the name of the JVM system property which value has been loaded as the value for the poolSize property.Retrieve the name of the environment variable which value has been loaded as the provider class name.Retrieve the name of the JVM system property which value has been loaded as the provider class name.Retrieve the name of the environment variable which value has been loaded as the provider name.Retrieve the name of the JVM system property which value has been loaded as the provider name.Retrieve the name of the environment variable which value has been loaded as the salt generator class name.Retrieve the name of the JVM system property which value has been loaded as the salt generator class name.Retrieve the name of the environment variable which value has been loaded as the salt size in bytes.Retrieve the name of the JVM system property which value has been loaded as the salt size in bytes.Retrieve the name of the environment variable which value has been loaded as the value for the useLenientSaltSizeCheck property.Retrieve the name of the JVM system property which value has been loaded as the value for the useLenientSaltSizeCheck property.voidsetAlgorithm(String algorithm) Sets the name of the algorithm.voidsetAlgorithmEnvName(String algorithmEnvName) Set the config object to use the specified environment variable to load the value for the algorithm.voidsetAlgorithmSysPropertyName(String algorithmSysPropertyName) Set the config object to use the specified JVM system property to load the value for the algorithm.voidsetInvertPositionOfPlainSaltInEncryptionResults(Boolean invertPositionOfPlainSaltInEncryptionResults) Whether the plain (not hashed) salt bytes are to be appended after the digest operation result bytes.voidsetInvertPositionOfPlainSaltInEncryptionResultsEnvName(String invertPositionOfPlainSaltInEncryptionResultsEnvName) Set the config object to use the specified environment variable to load the value for the invertPositionOfPlainSaltInEncryptionResults property.voidsetInvertPositionOfPlainSaltInEncryptionResultsSysPropertyName(String invertPositionOfPlainSaltInEncryptionResultsSysPropertyName) Set the config object to use the specified JVM system property to load the value for the invertPositionOfPlainSaltInEncryptionResults property.voidsetInvertPositionOfSaltInMessageBeforeDigesting(Boolean invertPositionOfSaltInMessageBeforeDigesting) Whether the salt bytes are to be appended after the message ones before performing the digest operation on the whole.voidsetInvertPositionOfSaltInMessageBeforeDigestingEnvName(String invertPositionOfSaltInMessageBeforeDigestingEnvName) Set the config object to use the specified environment variable to load the value for the invertPositionOfSaltInMessageBeforeDigesting property.voidsetInvertPositionOfSaltInMessageBeforeDigestingSysPropertyName(String invertPositionOfSaltInMessageBeforeDigestingSysPropertyName) Set the config object to use the specified JVM system property to load the value for the invertPositionOfSaltInMessageBeforeDigesting property.voidsetIterations(Integer iterations) Sets the number of hashing iterations.voidsetIterations(String iterations) Sets the number of hashing iterations.voidsetIterationsEnvName(String iterationsEnvName) Set the config object to use the specified environment variable to load the value for the iteration count.voidsetIterationsSysPropertyName(String iterationsSysPropertyName) Set the config object to use the specified JVM system property to load the value for the iteration count.voidsetPoolSize(Integer poolSize) Sets the size of the pool of digesters to be created.voidsetPoolSize(String poolSize) Sets the size of the pool of digesters to be created.voidsetPoolSizeEnvName(String poolSizeEnvName) Set the config object to use the specified environment variable to load the value for the poolSize property.voidsetPoolSizeSysPropertyName(String poolSizeSysPropertyName) Set the config object to use the specified JVM system property to load the value for the useLenientSaltSizeCheck property.voidsetProvider(Provider provider) Sets the security provider to be used for obtaining the digest algorithm.voidsetProviderClassName(String providerClassName) Sets the class name for the security provider to be used for obtaining the digest algorithm.voidsetProviderClassNameEnvName(String providerClassNameEnvName) Set the config object to use the specified environment variable to load the value for the provider class name.voidsetProviderClassNameSysPropertyName(String providerClassNameSysPropertyName) Set the config object to use the specified JVM system property to load the value for the provider class name.voidsetProviderName(String providerName) Sets the name of the security provider to be asked for the digest algorithm.voidsetProviderNameEnvName(String providerNameEnvName) Set the config object to use the specified environment variable to load the value for the provider name.voidsetProviderNameSysPropertyName(String providerNameSysPropertyName) Set the config object to use the specified JVM system property to load the value for the provider name.voidsetSaltGenerator(SaltGenerator saltGenerator) Sets the salt generator.voidsetSaltGeneratorClassName(String saltGeneratorClassName) Sets the class name of the salt generator.voidsetSaltGeneratorClassNameEnvName(String saltGeneratorClassNameEnvName) Set the config object to use the specified environment variable to load the value for the salt generator class name.voidsetSaltGeneratorClassNameSysPropertyName(String saltGeneratorClassNameSysPropertyName) Set the config object to use the specified JVM system property to load the value for the salt generator class name.voidsetSaltSizeBytes(Integer saltSizeBytes) Size in bytes of the salt to be used.voidsetSaltSizeBytes(String saltSizeBytes) Size in bytes of the salt to be used.voidsetSaltSizeBytesEnvName(String saltSizeBytesEnvName) Set the config object to use the specified environment variable to load the value for the salt size in bytes.voidsetSaltSizeBytesSysPropertyName(String saltSizeBytesSysPropertyName) Set the config object to use the specified JVM system property to load the value for the salt size in bytes.voidsetUseLenientSaltSizeCheck(Boolean useLenientSaltSizeCheck) Whether digest matching operations will allow matching digests with a salt size different to the one configured in the "saltSizeBytes" property.voidsetUseLenientSaltSizeCheckEnvName(String useLenientSaltSizeCheckEnvName) Set the config object to use the specified environment variable to load the value for the useLenientSaltSizeCheck property.voidsetUseLenientSaltSizeCheckSysPropertyName(String useLenientSaltSizeCheckSysPropertyName) Set the config object to use the specified JVM system property to load the value for the useLenientSaltSizeCheck property.
-
Field Details
-
algorithmEnvName
-
iterationsEnvName
-
saltSizeBytesEnvName
-
saltGeneratorClassNameEnvName
-
providerNameEnvName
-
providerClassNameEnvName
-
invertPositionOfSaltInMessageBeforeDigestingEnvName
-
invertPositionOfPlainSaltInEncryptionResultsEnvName
-
useLenientSaltSizeCheckEnvName
-
poolSizeEnvName
-
algorithmSysPropertyName
-
iterationsSysPropertyName
-
saltSizeBytesSysPropertyName
-
saltGeneratorClassNameSysPropertyName
-
providerNameSysPropertyName
-
providerClassNameSysPropertyName
-
invertPositionOfSaltInMessageBeforeDigestingSysPropertyName
-
invertPositionOfPlainSaltInEncryptionResultsSysPropertyName
-
useLenientSaltSizeCheckSysPropertyName
-
poolSizeSysPropertyName
-
-
Constructor Details
-
EnvironmentDigesterConfig
public EnvironmentDigesterConfig()Creates a new EnvironmentDigesterConfig instance.
-
-
Method Details
-
getAlgorithmEnvName
Retrieve the name of the environment variable which value has been loaded as the algorithm.- Returns:
- the name of the variable
-
setAlgorithmEnvName
Set the config object to use the specified environment variable to load the value for the algorithm.- Parameters:
algorithmEnvName- the name of the environment variable
-
getAlgorithmSysPropertyName
Retrieve the name of the JVM system property which value has been loaded as the algorithm.- Returns:
- the name of the property
-
setAlgorithmSysPropertyName
Set the config object to use the specified JVM system property to load the value for the algorithm.- Parameters:
algorithmSysPropertyName- the name of the property
-
getIterationsEnvName
Retrieve the name of the environment variable which value has been loaded as the iteration count.- Returns:
- the name of the variable
-
setIterationsEnvName
Set the config object to use the specified environment variable to load the value for the iteration count.- Parameters:
iterationsEnvName- the name of the environment variable
-
getIterationsSysPropertyName
Retrieve the name of the JVM system property which value has been loaded as the iteration count.- Returns:
- the name of the property
-
setIterationsSysPropertyName
Set the config object to use the specified JVM system property to load the value for the iteration count.- Parameters:
iterationsSysPropertyName- the name of the property
-
getSaltSizeBytesEnvName
Retrieve the name of the environment variable which value has been loaded as the salt size in bytes.- Returns:
- the name of the variable
-
setSaltSizeBytesEnvName
Set the config object to use the specified environment variable to load the value for the salt size in bytes.- Parameters:
saltSizeBytesEnvName- the name of the environment variable
-
getSaltSizeBytesSysPropertyName
Retrieve the name of the JVM system property which value has been loaded as the salt size in bytes.- Returns:
- the name of the property
-
setSaltSizeBytesSysPropertyName
Set the config object to use the specified JVM system property to load the value for the salt size in bytes.- Parameters:
saltSizeBytesSysPropertyName- the name of the property
-
getSaltGeneratorClassNameEnvName
Retrieve the name of the environment variable which value has been loaded as the salt generator class name.- Returns:
- the name of the variable
- Since:
- 1.3
-
setSaltGeneratorClassNameEnvName
Set the config object to use the specified environment variable to load the value for the salt generator class name.
The salt generator class name which is set here must have a no-argument constructor, so that it can be instantiated and passed to the digester.
- Parameters:
saltGeneratorClassNameEnvName- the name of the environment variable- Since:
- 1.3
-
getSaltGeneratorClassNameSysPropertyName
Retrieve the name of the JVM system property which value has been loaded as the salt generator class name.- Returns:
- the name of the property
- Since:
- 1.3
-
setSaltGeneratorClassNameSysPropertyName
Set the config object to use the specified JVM system property to load the value for the salt generator class name.
The salt generator class name which is set here must have a no-argument constructor, so that it can be instantiated and passed to the digester.
- Parameters:
saltGeneratorClassNameSysPropertyName- the name of the property- Since:
- 1.3
-
getProviderNameEnvName
Retrieve the name of the environment variable which value has been loaded as the provider name.- Returns:
- the name of the variable
- Since:
- 1.3
-
setProviderNameEnvName
Set the config object to use the specified environment variable to load the value for the provider name.
- Parameters:
providerNameEnvName- the name of the environment variable- Since:
- 1.3
-
getProviderNameSysPropertyName
Retrieve the name of the JVM system property which value has been loaded as the provider name.- Returns:
- the name of the property
- Since:
- 1.3
-
setProviderNameSysPropertyName
Set the config object to use the specified JVM system property to load the value for the provider name.- Parameters:
providerNameSysPropertyName- the name of the property- Since:
- 1.3
-
getProviderClassNameEnvName
Retrieve the name of the environment variable which value has been loaded as the provider class name.- Returns:
- the name of the variable
- Since:
- 1.3
-
setProviderClassNameEnvName
Set the config object to use the specified environment variable to load the value for the provider class name.
The provider class name which is set here must have a no-argument constructor, so that it can be instantiated and passed to the digester.
- Parameters:
providerClassNameEnvName- the name of the environment variable- Since:
- 1.3
-
getProviderClassNameSysPropertyName
Retrieve the name of the JVM system property which value has been loaded as the provider class name.- Returns:
- the name of the property
- Since:
- 1.3
-
setProviderClassNameSysPropertyName
Set the config object to use the specified JVM system property to load the value for the provider class name.
The provider class name which is set here must have a no-argument constructor, so that it can be instantiated and passed to the digester.
- Parameters:
providerClassNameSysPropertyName- the name of the property- Since:
- 1.3
-
getInvertPositionOfSaltInMessageBeforeDigestingEnvName
Retrieve the name of the environment variable which value has been loaded as the value for the invertPositionOfSaltInMessageBeforeDigesting property.- Returns:
- the name of the variable
- Since:
- 1.7
-
setInvertPositionOfSaltInMessageBeforeDigestingEnvName
public void setInvertPositionOfSaltInMessageBeforeDigestingEnvName(String invertPositionOfSaltInMessageBeforeDigestingEnvName) Set the config object to use the specified environment variable to load the value for the invertPositionOfSaltInMessageBeforeDigesting property.
- Parameters:
invertPositionOfSaltInMessageBeforeDigestingEnvName- the name of the environment variable- Since:
- 1.7
-
getInvertPositionOfSaltInMessageBeforeDigestingSysPropertyName
Retrieve the name of the JVM system property which value has been loaded as the value for the invertPositionOfSaltInMessageBeforeDigesting property.- Returns:
- the name of the property
- Since:
- 1.7
-
setInvertPositionOfSaltInMessageBeforeDigestingSysPropertyName
public void setInvertPositionOfSaltInMessageBeforeDigestingSysPropertyName(String invertPositionOfSaltInMessageBeforeDigestingSysPropertyName) Set the config object to use the specified JVM system property to load the value for the invertPositionOfSaltInMessageBeforeDigesting property.
- Parameters:
invertPositionOfSaltInMessageBeforeDigestingSysPropertyName- the name of the property- Since:
- 1.7
-
getInvertPositionOfPlainSaltInEncryptionResultsEnvName
Retrieve the name of the environment variable which value has been loaded as the value for the invertPositionOfPlainSaltInEncryptionResults property.- Returns:
- the name of the variable
- Since:
- 1.7
-
setInvertPositionOfPlainSaltInEncryptionResultsEnvName
public void setInvertPositionOfPlainSaltInEncryptionResultsEnvName(String invertPositionOfPlainSaltInEncryptionResultsEnvName) Set the config object to use the specified environment variable to load the value for the invertPositionOfPlainSaltInEncryptionResults property.
- Parameters:
invertPositionOfPlainSaltInEncryptionResultsEnvName- the name of the environment variable- Since:
- 1.7
-
getInvertPositionOfPlainSaltInEncryptionResultsSysPropertyName
Retrieve the name of the JVM system property which value has been loaded as the value for the invertPositionOfPlainSaltInEncryptionResults property.- Returns:
- the name of the property
- Since:
- 1.7
-
setInvertPositionOfPlainSaltInEncryptionResultsSysPropertyName
public void setInvertPositionOfPlainSaltInEncryptionResultsSysPropertyName(String invertPositionOfPlainSaltInEncryptionResultsSysPropertyName) Set the config object to use the specified JVM system property to load the value for the invertPositionOfPlainSaltInEncryptionResults property.
- Parameters:
invertPositionOfPlainSaltInEncryptionResultsSysPropertyName- the name of the property- Since:
- 1.7
-
getUseLenientSaltSizeCheckEnvName
Retrieve the name of the environment variable which value has been loaded as the value for the useLenientSaltSizeCheck property.- Returns:
- the name of the variable
- Since:
- 1.7
-
setUseLenientSaltSizeCheckEnvName
Set the config object to use the specified environment variable to load the value for the useLenientSaltSizeCheck property.
- Parameters:
useLenientSaltSizeCheckEnvName- the name of the environment variable- Since:
- 1.7
-
getUseLenientSaltSizeCheckSysPropertyName
Retrieve the name of the JVM system property which value has been loaded as the value for the useLenientSaltSizeCheck property.- Returns:
- the name of the property
- Since:
- 1.7
-
setUseLenientSaltSizeCheckSysPropertyName
public void setUseLenientSaltSizeCheckSysPropertyName(String useLenientSaltSizeCheckSysPropertyName) Set the config object to use the specified JVM system property to load the value for the useLenientSaltSizeCheck property.
- Parameters:
useLenientSaltSizeCheckSysPropertyName- the name of the property- Since:
- 1.7
-
getPoolSizeEnvName
Retrieve the name of the environment variable which value has been loaded as the value for the poolSize property.- Returns:
- the name of the variable
- Since:
- 1.7
-
setPoolSizeEnvName
Set the config object to use the specified environment variable to load the value for the poolSize property.
- Parameters:
poolSizeEnvName- the name of the environment variable- Since:
- 1.7
-
getPoolSizeSysPropertyName
Retrieve the name of the JVM system property which value has been loaded as the value for the poolSize property.- Returns:
- the name of the property
- Since:
- 1.7
-
setPoolSizeSysPropertyName
Set the config object to use the specified JVM system property to load the value for the useLenientSaltSizeCheck property.
- Parameters:
poolSizeSysPropertyName- the name of the property- Since:
- 1.7
-
setAlgorithm
Description copied from class:SimpleDigesterConfigSets the name of the algorithm.
This algorithm has to be supported by your security infrastructure, and it should be allowed as an algorithm for creating java.security.MessageDigest instances.
If you are specifying a security provider with
SimpleDigesterConfig.setProvider(Provider)orSimpleDigesterConfig.setProviderName(String), this algorithm should be supported by your specified provider.If you are not specifying a provider, you will be able to use those algorithms provided by the default security provider of your JVM vendor. For valid names in the Sun JVM, see Java Cryptography Architecture API Specification invalid input: '&' Reference.
Determines the result of:
SimpleDigesterConfig.getAlgorithm()- Overrides:
setAlgorithmin classSimpleDigesterConfig- Parameters:
algorithm- the name of the algorithm.
-
setIterations
Description copied from class:SimpleDigesterConfigSets the number of hashing iterations.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getIterations()- Overrides:
setIterationsin classSimpleDigesterConfig- Parameters:
iterations- the number of iterations.
-
setIterations
Description copied from class:SimpleDigesterConfigSets the number of hashing iterations.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getIterations()- Overrides:
setIterationsin classSimpleDigesterConfig- Parameters:
iterations- the number of iterations.
-
setSaltSizeBytes
Description copied from class:SimpleDigesterConfigSize in bytes of the salt to be used.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getSaltSizeBytes()- Overrides:
setSaltSizeBytesin classSimpleDigesterConfig- Parameters:
saltSizeBytes- the size of the salt, in bytes.
-
setSaltSizeBytes
Description copied from class:SimpleDigesterConfigSize in bytes of the salt to be used.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getSaltSizeBytes()- Overrides:
setSaltSizeBytesin classSimpleDigesterConfig- Parameters:
saltSizeBytes- the size of the salt, in bytes.
-
setSaltGenerator
Description copied from class:SimpleDigesterConfigSets the salt generator.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getSaltGenerator()- Overrides:
setSaltGeneratorin classSimpleDigesterConfig- Parameters:
saltGenerator- the salt generator.
-
setSaltGeneratorClassName
Description copied from class:SimpleDigesterConfigSets the class name of the salt generator.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getSaltGenerator()- Overrides:
setSaltGeneratorClassNamein classSimpleDigesterConfig- Parameters:
saltGeneratorClassName- the name of the salt generator class.
-
setProviderName
Description copied from class:SimpleDigesterConfigSets the name of the security provider to be asked for the digest algorithm. This provider should be already registered.
If both the providerName and provider properties are set, only provider will be used, and providerName will have no meaning for the digester object.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getProviderName()- Overrides:
setProviderNamein classSimpleDigesterConfig- Parameters:
providerName- the name of the security provider.
-
setProvider
Description copied from class:SimpleDigesterConfigSets the security provider to be used for obtaining the digest algorithm. This method is an alternative to both
SimpleDigesterConfig.setProviderName(String)andSimpleDigesterConfig.setProviderClassName(String)and they should not be used altogether. The provider specified withSimpleDigesterConfig.setProvider(Provider)does not have to be registered beforehand, and its use will not result in its being registered.If both the providerName and provider properties are set, only provider will be used, and providerName will have no meaning for the digester object.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getProvider()- Overrides:
setProviderin classSimpleDigesterConfig- Parameters:
provider- the security provider object.
-
setProviderClassName
Description copied from class:SimpleDigesterConfigSets the class name for the security provider to be used for obtaining the digest algorithm. This method is an alternative to both
SimpleDigesterConfig.setProviderName(String)SimpleDigesterConfig.setProvider(Provider)and they should not be used altogether. The provider specified withSimpleDigesterConfig.setProviderClassName(String)does not have to be registered beforehand, and its use will not result in its being registered.If both the providerName and provider properties are set, only provider will be used, and providerName will have no meaning for the digester object.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getProvider()- Overrides:
setProviderClassNamein classSimpleDigesterConfig- Parameters:
providerClassName- the name of the security provider class.
-
setInvertPositionOfPlainSaltInEncryptionResults
public void setInvertPositionOfPlainSaltInEncryptionResults(Boolean invertPositionOfPlainSaltInEncryptionResults) Description copied from class:SimpleDigesterConfigWhether the plain (not hashed) salt bytes are to be appended after the digest operation result bytes. The default behaviour is to insert them before the digest result, but setting this configuration item to true allows compatibility with some external systems and specifications (e.g. LDAP {SSHA}).
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getInvertPositionOfPlainSaltInEncryptionResults()- Overrides:
setInvertPositionOfPlainSaltInEncryptionResultsin classSimpleDigesterConfig- Parameters:
invertPositionOfPlainSaltInEncryptionResults- whether plain salt will be appended after the digest operation result instead of inserted before it (which is the default).
-
setInvertPositionOfSaltInMessageBeforeDigesting
public void setInvertPositionOfSaltInMessageBeforeDigesting(Boolean invertPositionOfSaltInMessageBeforeDigesting) Description copied from class:SimpleDigesterConfigWhether the salt bytes are to be appended after the message ones before performing the digest operation on the whole. The default behaviour is to insert those bytes before the message bytes, but setting this configuration item to true allows compatibility with some external systems and specifications (e.g. LDAP {SSHA}).
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getInvertPositionOfSaltInMessageBeforeDigesting()- Overrides:
setInvertPositionOfSaltInMessageBeforeDigestingin classSimpleDigesterConfig- Parameters:
invertPositionOfSaltInMessageBeforeDigesting- whether salt will be appended after the message before applying the digest operation on the whole, instead of inserted before it (which is the default).
-
setUseLenientSaltSizeCheck
Description copied from class:SimpleDigesterConfigWhether digest matching operations will allow matching digests with a salt size different to the one configured in the "saltSizeBytes" property. This is possible because digest algorithms will produce a fixed-size result, so the remaining bytes from the hashed input will be considered salt.
This will allow the digester to match digests produced in environments which do not establish a fixed salt size as standard (for example, SSHA password encryption in LDAP systems).
The value of this property will not affect the creation of digests, which will always have a salt of the size established by the "saltSizeBytes" property. It will only affect digest matching.
Setting this property to true is not compatible with
SaltGeneratorimplementations which return false for theirSaltGenerator.includePlainSaltInEncryptionResults()property.Also, be aware that some algorithms or algorithm providers might not support knowing the size of the digests beforehand, which is also incompatible with a lenient behaviour.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getUseLenientSaltSizeCheck()- Overrides:
setUseLenientSaltSizeCheckin classSimpleDigesterConfig- Parameters:
useLenientSaltSizeCheck- whether the digester will allow matching of digests with different salt sizes than established or not (default is false).
-
setPoolSize
Description copied from class:SimpleDigesterConfigSets the size of the pool of digesters to be created.
This parameter will be ignored if used with a non-pooled digester.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getPoolSize()- Overrides:
setPoolSizein classSimpleDigesterConfig- Parameters:
poolSize- the size of the pool to be used if this configuration is used with a pooled digester
-
setPoolSize
Description copied from class:SimpleDigesterConfigSets the size of the pool of digesters to be created.
This parameter will be ignored if used with a non-pooled digester.
If not set, null will be returned.
Determines the result of:
SimpleDigesterConfig.getPoolSize()- Overrides:
setPoolSizein classSimpleDigesterConfig- Parameters:
poolSize- the size of the pool to be used if this configuration is used with a pooled digester
-