public class SaltingAdapterBuilder extends Object
| Constructor and Description |
|---|
SaltingAdapterBuilder(HashingAlgorithm hashingAlgorithm)
Creates a new builder for salting adapter with given hashing algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
SaltingAdapter |
build()
Builds a salting adapter with hashing algorithm inside.
|
SaltingAdapterBuilder |
combineAlgorithm(CombineAlgorithm combineAlgorithm)
Sets a custom algorithm for combining input text and salt.
|
SaltingAdapterBuilder |
encoding(String encoding)
Sets encoding for strings in input and output.
|
public SaltingAdapterBuilder(HashingAlgorithm hashingAlgorithm)
hashingAlgorithm - hashing algorithm to be setpublic SaltingAdapterBuilder combineAlgorithm(CombineAlgorithm combineAlgorithm)
combineAlgorithm - combine algorithmpublic SaltingAdapterBuilder encoding(String encoding)
encoding - encoding to be setpublic SaltingAdapter build()
Copyright © 2014. All rights reserved.