vertx / io.vertx.rxjava.ext.auth.mongo / HashStrategy

HashStrategy

open class HashStrategy

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 io.vertx.ext.auth.mongo.HashStrategy non RX-ified interface using Vert.x codegen.

Constructors

<init>

HashStrategy(delegate: HashStrategy)

Properties

__TYPE_ARG

static val __TYPE_ARG: TypeArg<HashStrategy>

Functions

computeHash

open fun computeHash(password: String, user: User): String

Compute the hashed password given the unhashed password and the user

equals

open fun equals(other: Any?): Boolean

getDelegate

open fun getDelegate(): HashStrategy

getSalt

open fun getSalt(user: User): String

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.rxjava.ext.auth.mongo.HashSaltStyle

getSaltStyle

open fun getSaltStyle(): HashSaltStyle

Get the defined io.vertx.rxjava.ext.auth.mongo.HashSaltStyle of the current instance

getStoredPwd

open fun getStoredPwd(user: User): String

Retrieve the password from the user, or as clear text or as hashed version, depending on the definition

hashCode

open fun hashCode(): Int

newInstance

open static fun newInstance(arg: HashStrategy): HashStrategy

setAlgorithm

open fun setAlgorithm(algorithm: HashAlgorithm): Unit

Allows the selection of the hashing algorithm.

setExternalSalt

open fun setExternalSalt(salt: String): Unit

Set an external salt. This method should be used in case of

setSaltStyle

open fun setSaltStyle(saltStyle: HashSaltStyle): Unit

Set the saltstyle as defined by io.vertx.rxjava.ext.auth.mongo.HashSaltStyle.

toString

open fun toString(): String