* Copyright (c) 2007, The JASYPT team (http://www.jasypt.org)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
Objects of classes implementing this interface will provide values for:
The config objects passed to a digester will only be queried once for each configuration parameter, and this will happen during the initialization of the digester object.
For a default implementation, see
Returns the name of an algorithm to be used for hashing, like "MD5" or "SHA-1".
This algorithm has to be supported by your Java Virtual Machine, and it should be allowed as an algorithm for creating java.security.MessageDigest instances.
If this method returns null, the digester will ignore the config object when deciding the algorithm to be used.
Returns the size of the salt to be used to compute the digest. This mechanism is explained in.
If salt size is set to zero, then no salt will be used.
If this method returns null, the digester will ignore the config object when deciding the size of the salt to be used.
Returns the number of times the hash function will be applied recursively.
The hash function will be applied to its own results as many times as specified: h(h(...h(x)...))
This mechanism is explained in.
If this method returns null, the digester will ignore the config object when deciding the number of hashing iterations.
implementation to be used by the digester.
If this method returns null, the digester will ignore the config object when deciding the salt generator to be used.