Package io.vertx.mutiny.ext.auth.hashing
Class HashingStrategy
java.lang.Object
io.vertx.mutiny.ext.auth.hashing.HashingStrategy
- All Implemented Interfaces:
MutinyDelegate
Hashing Strategy manager.
This class will load system provided hashing strategies and algorithms.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Paulo Lopes
- See Also:
-
HashingStrategy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHashingStrategy(io.vertx.ext.auth.hashing.HashingStrategy delegate) Create a new instance ofHashingStrategydelegating to the given (non-null) instance ofHashingStrategy.HashingStrategy(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet an algorithm interface by its Idio.vertx.ext.auth.hashing.HashingStrategyGet the delegate instance.Hashes a password.inthashCode()static HashingStrategyload()Factory method to load the algorithms from the systemstatic HashingStrategynewInstance(io.vertx.ext.auth.hashing.HashingStrategy delegate) Creates a new instance of theHashingStrategy.put(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
public HashingStrategy(io.vertx.ext.auth.hashing.HashingStrategy delegate) Create a new instance ofHashingStrategydelegating to the given (non-null) instance ofHashingStrategy. -
HashingStrategy
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.hashing.HashingStrategy getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
load
Factory method to load the algorithms from the system- Returns:
- a Hashing Strategy capable of hashing using the available algorithms
-
hash
Hashes a password.- Parameters:
id- the algorithm idparams- the algorithm specific parameterssalt- the given saltpassword- the given password- Returns:
- the hashed string
-
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
Creates a new instance of theHashingStrategy. -
hashCode
public int hashCode() -
equals
-
toString
-