public abstract class NativeSaltedHashingAlgorithmBuilder extends Object
SaltingAdapter.
You should use HashingAlgorithms factory for creating instances.SaltedHashingAlgorithm| Modifier and Type | Field and Description |
|---|---|
protected BytesRepresentation |
bytesRepresentation |
protected String |
encoding |
| Constructor and Description |
|---|
NativeSaltedHashingAlgorithmBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract SaltedHashingAlgorithm |
build()
Builds final salted hashing algorithm instance.
|
NativeSaltedHashingAlgorithmBuilder |
bytesRepresentation(BytesRepresentation bytesRepresentation)
Sets how byte arrays will be represented in strings.
|
NativeSaltedHashingAlgorithmBuilder |
encoding(String encoding)
Sets encoding for strings of input and output.
|
protected BytesRepresentation bytesRepresentation
protected String encoding
public NativeSaltedHashingAlgorithmBuilder bytesRepresentation(BytesRepresentation bytesRepresentation) throws IllegalArgumentException
HexRepresentation is used.bytesRepresentation - byte array representation strategyIllegalArgumentException - exception if passed key BytesRepresentation is nullpublic NativeSaltedHashingAlgorithmBuilder encoding(String encoding) throws IllegalArgumentException
encoding - encoding to be setIllegalArgumentException - exception if given encoding is null or not supportedpublic abstract SaltedHashingAlgorithm build()
Copyright © 2020. All rights reserved.