Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<HashingStrategy> |
__TYPE_ARG |
Constructor and Description |
---|
HashingStrategy(HashingStrategy delegate) |
HashingStrategy(Object delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
HashingAlgorithm |
get(String id)
Get an algorithm interface by its Id
|
HashingStrategy |
getDelegate() |
String |
hash(String id,
Map<String,String> params,
String salt,
String password)
Hashes a password.
|
int |
hashCode() |
static HashingStrategy |
load()
Factory method to load the algorithms from the system
|
static HashingStrategy |
newInstance(HashingStrategy arg) |
HashingStrategy |
put(String id,
HashingAlgorithm algorithm)
Put or replace an algorithm into the list of system loaded algorithms.
|
String |
toString() |
boolean |
verify(String hash,
String password)
Time constant password check.
|
public static final io.vertx.lang.rx.TypeArg<HashingStrategy> __TYPE_ARG
public HashingStrategy(HashingStrategy delegate)
public HashingStrategy(Object delegate)
public HashingStrategy getDelegate()
public static HashingStrategy load()
public String hash(String id, Map<String,String> params, String salt, String password)
id
- the algorithm idparams
- the algorithm specific paramterssalt
- the given saltpassword
- the given passwordpublic boolean verify(String hash, String password)
hash
- the hash to verifypassword
- the password to test againstpublic HashingAlgorithm get(String id)
id
- the algorithm idpublic HashingStrategy put(String id, HashingAlgorithm algorithm)
id
- the algorithm idalgorithm
- the implementationpublic static HashingStrategy newInstance(HashingStrategy arg)
Copyright © 2023 Eclipse. All rights reserved.