vertx-lang-scala-docs_2.12 3.9.1 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package ext
  Definition Classes
    scala
-  package auth
  Definition Classes
    ext
-  package mongo
  Definition Classes
    auth
- HashStrategy
- MongoAuth
- MongoAuthOptions

c

io.vertx.scala.ext.auth.mongo

# HashStrategy 

###
Companion object HashStrategy

#### 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.

Linear Supertypes
AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. HashStrategy
2. AnyRef
3. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new HashStrategy(_asJava: AnyRef)

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
5.  def asJava: AnyRef
6.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @native() @throws( ... )
7.  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

8.  final def eq(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef
9.  def equals(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
10.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
11.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
12.  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

13.  def getSaltStyle(): HashSaltStyle

    Get the defined io.vertx.ext.auth.mongo.HashSaltStyle of the current instance * @return the saltStyle

14.  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

15.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
16.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
17.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
18.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
19.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
20.  def setAlgorithm(algorithm: HashAlgorithm): Unit

    Allows the selection of the hashing algorithm.

    Allows the selection of the hashing algorithm. * @param algorithm the choosen algorithm

21.  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

22.  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

23.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
24.  def toString(): String
    Definition Classes
      AnyRef → Any
25.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
26.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
27.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )

### Inherited from AnyRef

### Inherited from Any

### Ungrouped