Class HashStrategy


  • public class HashStrategy
    extends Object
    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 original non Mutiny-ified interface using Vert.x codegen.

    • Constructor Detail

      • HashStrategy

        public HashStrategy​(io.vertx.ext.auth.mongo.HashStrategy delegate)
      • HashStrategy

        public HashStrategy​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.ext.auth.mongo.HashStrategy getDelegate()
      • hashCode

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

        @Deprecated
        public String computeHash​(String password,
                                  User user)
        Deprecated.
        Parameters:
        password - the unhashed password
        user - the user to get the salt for. This paramter is needed, if the is declared to be used
        Returns:
        the hashed password
      • getStoredPwd

        @Deprecated
        public String getStoredPwd​(User user)
        Deprecated.
        Parameters:
        user - the user to get the stored password for
        Returns:
        the password, either as hashed version or as cleartext, depending on the preferences
      • getSalt

        @Deprecated
        public String getSalt​(User user)
        Deprecated.
        Parameters:
        user - the user to get the salt for. This paramter is needed, if the is declared to be used
        Returns:
        null in case of the salt of the user or a defined external salt
      • setExternalSalt

        @Deprecated
        public void setExternalSalt​(String salt)
        Deprecated.
        Parameters:
        salt - the salt, which shall be used
      • setSaltStyle

        @Deprecated
        public void setSaltStyle​(io.vertx.ext.auth.mongo.HashSaltStyle saltStyle)
        Deprecated.
        Parameters:
        saltStyle - the HashSaltStyle to be used
      • getSaltStyle

        @Deprecated
        public io.vertx.ext.auth.mongo.HashSaltStyle getSaltStyle()
        Deprecated.
        Returns:
        the saltStyle
      • setAlgorithm

        @Deprecated
        public void setAlgorithm​(io.vertx.ext.auth.mongo.HashAlgorithm algorithm)
        Deprecated.
        Parameters:
        algorithm - the choosen algorithm
      • newInstance

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