class HashStrategy extends AnyRef
Determines how the hashing is computed in the implementation You can implement this to provide a different hashing strategy to the default.
- Alphabetic
- By Inheritance
- HashStrategy
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new HashStrategy(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: AnyRef
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
computeHash(password: String, user: User): String
Compute the hashed password given the unhashed password and the user * @param password the unhashed password
Compute the hashed password given the unhashed password and the user * @param password the unhashed password
- user
the user to get the salt for. This paramter is needed, if the HashSaltStyle#COLUMN is declared to be used
- returns
the hashed password
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getSalt(user: User): Option[String]
Retrieve the salt.
Retrieve the salt. The source of the salt can be the external salt or the propriate column of the given user, depending on the defined io.vertx.ext.auth.mongo.HashSaltStyle * @param user the user to get the salt for. This paramter is needed, if the HashSaltStyle#COLUMN is declared to be used
- returns
null in case of HashSaltStyle#NO_SALT the salt of the user or a defined external salt
-
def
getSaltStyle(): HashSaltStyle
Get the defined io.vertx.ext.auth.mongo.HashSaltStyle of the current instance * @return the saltStyle
-
def
getStoredPwd(user: User): String
Retrieve the password from the user, or as clear text or as hashed version, depending on the definition * @param user the user to get the stored password for
Retrieve the password from the user, or as clear text or as hashed version, depending on the definition * @param user the user to get the stored password for
- returns
the password, either as hashed version or as cleartext, depending on the preferences
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
setAlgorithm(algorithm: HashAlgorithm): Unit
Allows the selection of the hashing algorithm.
Allows the selection of the hashing algorithm. * @param algorithm the choosen algorithm
-
def
setExternalSalt(salt: String): Unit
Set an external salt.
Set an external salt. This method should be used in case of * @param salt the salt, which shall be used
-
def
setSaltStyle(saltStyle: HashSaltStyle): Unit
Set the saltstyle as defined by io.vertx.ext.auth.mongo.HashSaltStyle.
Set the saltstyle as defined by io.vertx.ext.auth.mongo.HashSaltStyle. * @param saltStyle the HashSaltStyle to be used
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )