Class HashingStrategy
java.lang.Object
io.vertx.rxjava3.ext.auth.hashing.HashingStrategy
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet an algorithm interface by its IdHashes a password.inthashCode()static HashingStrategyload()Factory method to load the algorithms from the systemstatic HashingStrategyput(String id, HashingAlgorithm algorithm) Put or replace an algorithm into the list of system loaded algorithms.toString()booleanTime constant password check.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
HashingStrategy
-
HashingStrategy
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
load
Factory method to load the algorithms from the system- Returns:
- a Hashing Strategy capable of hashing using the available algorithms
-
hash
-
verify
Time constant password check. Regardless of the check, this algorithm executes the same number of checks regardless of the correctly number of characters- Parameters:
hash- the hash to verifypassword- the password to test against- Returns:
- boolean
-
get
Get an algorithm interface by its Id- Parameters:
id- the algorithm id- Returns:
- the algorithm
-
put
Put or replace an algorithm into the list of system loaded algorithms.- Parameters:
id- the algorithm idalgorithm- the implementation- Returns:
- self
-
newInstance
-