Class HashingStrategy


  • public class HashingStrategy
    extends Object
    Hashing Strategy manager. This class will load system provided hashing strategies and algorithms.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Constructor Detail

      • HashingStrategy

        public HashingStrategy​(io.vertx.ext.auth.HashingStrategy delegate)
      • HashingStrategy

        public HashingStrategy​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.ext.auth.HashingStrategy getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • load

        public static HashingStrategy load()
        Returns:
        a Hashing Strategy capable of hashing using the available algorithms
      • hash

        public String hash​(String id,
                           Map<String,​String> params,
                           String salt,
                           String password)
        Parameters:
        id - the algorithm id
        params - the algorithm specific parameters
        salt - the given salt
        password - the given password
        Returns:
        the hashed string
      • verify

        public boolean verify​(String hash,
                              String password)
        Parameters:
        hash - the hash to verify
        password - the password to test against
        Returns:
        boolean
      • newInstance

        public static HashingStrategy newInstance​(io.vertx.ext.auth.HashingStrategy arg)