public final class SaltingAdapterBuilder extends Object
| Constructor and Description |
|---|
SaltingAdapterBuilder(HashingAlgorithm hashingAlgorithm,
BytesRepresentation bytesRepresentation,
String encoding)
Creates a new builder for salting adapter with given hashing algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
SaltedHashingAlgorithm |
build()
Builds a salting adapter with hashing algorithm inside.
|
SaltingAdapterBuilder |
inputAndSaltCombining(Combining combining)
Sets a custom algorithm for combining input text and salt.
|
public SaltingAdapterBuilder(HashingAlgorithm hashingAlgorithm, BytesRepresentation bytesRepresentation, String encoding)
hashingAlgorithm - hashing algorithm to be setbytesRepresentation - bytes representation of adapted hashing algorithmencoding - encoding of adapted hashing algorithmpublic SaltingAdapterBuilder inputAndSaltCombining(Combining combining)
combining - combine algorithmIllegalArgumentException - exception if passed Combining is nullpublic SaltedHashingAlgorithm build()
Copyright © 2019. All rights reserved.