public class RepeatingDecoratorBuilder extends Object implements HashingAlgorithmBuilder
| Constructor and Description |
|---|
RepeatingDecoratorBuilder(HashingAlgorithm hashingAlgorithm)
Creates a new builder for repeating decorator with given hashing algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
RepeatingDecorator |
build()
Builds a new instance of hashing algorithm.
|
RepeatingDecoratorBuilder |
repeats(int repeats)
Sets repeats for repeating decorator.
|
SaltingAdapterBuilder |
salted()
Builds a repeating decorator and wraps it by salting adapter builder.
|
SaltingAdapterBuilder |
salted(CombineAlgorithm combineAlgorithm)
Builds a repeating decorator and wraps it by salting adapter builder with custom combine algorithm.
|
public RepeatingDecoratorBuilder(HashingAlgorithm hashingAlgorithm)
hashingAlgorithm - hashing algorithm to be setpublic RepeatingDecoratorBuilder repeats(int repeats)
repeats - repeats to be setpublic SaltingAdapterBuilder salted()
public SaltingAdapterBuilder salted(CombineAlgorithm combineAlgorithm)
combineAlgorithm - combine algorithm for input text and saltpublic RepeatingDecorator build()
HashingAlgorithmBuilderbuild in interface HashingAlgorithmBuilderCopyright © 2014. All rights reserved.