Package io.vertx.mutiny.ext.auth.mongo
Class HashStrategy
java.lang.Object
io.vertx.mutiny.ext.auth.mongo.HashStrategy
- All Implemented Interfaces:
MutinyDelegate
Determines how the hashing is computed in the implementation You can implement this to provide a different hashing
strategy to the default.
NOTE: This class has been automatically generated from the
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHashStrategy
(io.vertx.ext.auth.mongo.HashStrategy delegate) HashStrategy
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptioncomputeHash
(String password, User user) Deprecated.boolean
io.vertx.ext.auth.mongo.HashStrategy
Deprecated.io.vertx.ext.auth.mongo.HashSaltStyle
Deprecated.getStoredPwd
(User user) Deprecated.int
hashCode()
static HashStrategy
newInstance
(io.vertx.ext.auth.mongo.HashStrategy arg) void
setAlgorithm
(io.vertx.ext.auth.mongo.HashAlgorithm algorithm) Deprecated.void
setExternalSalt
(String salt) Deprecated.void
setSaltStyle
(io.vertx.ext.auth.mongo.HashSaltStyle saltStyle) Deprecated.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
HashStrategy
public HashStrategy(io.vertx.ext.auth.mongo.HashStrategy delegate) -
HashStrategy
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.mongo.HashStrategy getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
computeHash
Deprecated.- Parameters:
password
- the unhashed passworduser
- the user to get the salt for. This paramter is needed, if the is declared to be used- Returns:
- the hashed password
-
getStoredPwd
Deprecated.- Parameters:
user
- the user to get the stored password for- Returns:
- the password, either as hashed version or as cleartext, depending on the preferences
-
getSalt
Deprecated.- Parameters:
user
- the user to get the salt for. This paramter is needed, if the is declared to be used- Returns:
- null in case of the salt of the user or a defined external salt
-
setExternalSalt
Deprecated.- Parameters:
salt
- the salt, which shall be used
-
setSaltStyle
Deprecated.- Parameters:
saltStyle
- theHashSaltStyle
to be used
-
getSaltStyle
Deprecated.- Returns:
- the saltStyle
-
setAlgorithm
Deprecated.- Parameters:
algorithm
- the choosen algorithm
-
newInstance
-