public final class RepeatingDecoratorBuilder extends Object
| Constructor and Description |
|---|
RepeatingDecoratorBuilder(HashingAlgorithm hashingAlgorithm,
BytesRepresentation bytesRepresentation,
String encoding)
Creates a new builder for repeating decorator with given hashing algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
RepeatingDecorator |
build() |
RepeatingDecoratorBuilder |
repeats(int repeats)
Sets repeats for repeating decorator.
|
SaltingAdapterBuilder |
salted()
Builds a repeating decorator and wraps it by salting adapter builder.
|
SaltingAdapterBuilder |
salted(Combining combining)
Builds a repeating decorator and wraps it by salting adapter builder with custom combine algorithm.
|
public RepeatingDecoratorBuilder(HashingAlgorithm hashingAlgorithm, BytesRepresentation bytesRepresentation, String encoding)
hashingAlgorithm - hashing algorithm to be setbytesRepresentation - bytes representation of adapted hashing algorithmencoding - encoding of adapted hashing algorithmpublic RepeatingDecoratorBuilder repeats(int repeats)
repeats - repeats to be setIllegalArgumentException - exception if passed repeats are lower than 1public SaltingAdapterBuilder salted()
public SaltingAdapterBuilder salted(Combining combining)
combining - combine algorithm for input text and saltIllegalArgumentException - exception if passed Combining is nullpublic RepeatingDecorator build()
Copyright © 2019. All rights reserved.