Package io.vertx.mutiny.ext.auth.mongo
Class HashStrategy
- java.lang.Object
-
- io.vertx.mutiny.ext.auth.mongo.HashStrategy
-
public class HashStrategy extends Object
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 theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<HashStrategy>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description HashStrategy(io.vertx.ext.auth.mongo.HashStrategy delegate)
HashStrategy(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
computeHash(String password, User user)
Deprecated.boolean
equals(Object o)
io.vertx.ext.auth.mongo.HashStrategy
getDelegate()
String
getSalt(User user)
Deprecated.io.vertx.ext.auth.mongo.HashSaltStyle
getSaltStyle()
Deprecated.String
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.String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<HashStrategy> __TYPE_ARG
-
-
Constructor Detail
-
HashStrategy
public HashStrategy(io.vertx.ext.auth.mongo.HashStrategy delegate)
-
HashStrategy
public HashStrategy(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.auth.mongo.HashStrategy getDelegate()
-
computeHash
@Deprecated public String computeHash(String password, User user)
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 public String getStoredPwd(User user)
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 public String getSalt(User user)
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 public void setExternalSalt(String salt)
Deprecated.- Parameters:
salt
- the salt, which shall be used
-
setSaltStyle
@Deprecated public void setSaltStyle(io.vertx.ext.auth.mongo.HashSaltStyle saltStyle)
Deprecated.- Parameters:
saltStyle
- theHashSaltStyle
to be used
-
getSaltStyle
@Deprecated public io.vertx.ext.auth.mongo.HashSaltStyle getSaltStyle()
Deprecated.- Returns:
- the saltStyle
-
setAlgorithm
@Deprecated public void setAlgorithm(io.vertx.ext.auth.mongo.HashAlgorithm algorithm)
Deprecated.- Parameters:
algorithm
- the choosen algorithm
-
newInstance
public static HashStrategy newInstance(io.vertx.ext.auth.mongo.HashStrategy arg)
-
-