io.vertx.ext.auth.jdbc

## Interface JDBCHashStrategy

-     public interface JDBCHashStrategy

  Determines how the hashing is computed in the implementation You can implement this to provide a different hashing strategy to the default.
  Author:
    Tim Fox

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `computeHash(String password, String salt)` Compute the hashed password given the unhashed password and the salt
    `String` | `generateSalt()` Compute a random salt.
    `String` | `getHashedStoredPwd(JsonArray row)` Retrieve the hashed password from the result of the authentication query
    `String` | `getSalt(JsonArray row)` Retrieve the salt from the result of the authentication query

- - ### Method Detail

    - #### generateSalt

          String generateSalt()

      Compute a random salt.
      Returns:
        a non null salt value

    - #### computeHash

          String computeHash(String password,
                             String salt)

      Compute the hashed password given the unhashed password and the salt
      Parameters:
        `password` - the unhashed password
        `salt` - the salt
      Returns:
        the hashed password

    - #### getHashedStoredPwd

          String getHashedStoredPwd(JsonArray row)

      Retrieve the hashed password from the result of the authentication query
      Parameters:
        `row` - the row
      Returns:
        the hashed password

    - #### getSalt

          String getSalt(JsonArray row)

      Retrieve the salt from the result of the authentication query
      Parameters:
        `row` - the row
      Returns:
        the salt

Copyright © 2017. All rights reserved.