Class HashStrategy

java.lang.Object
io.vertx.mutiny.ext.auth.mongo.HashStrategy
All Implemented Interfaces:
MutinyDelegate

@Deprecated public class HashStrategy extends Object implements MutinyDelegate
Deprecated.
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.

  • Field Details

  • Constructor Details

    • HashStrategy

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

      public HashStrategy(Object delegate)
      Deprecated.
  • Method Details

    • getDelegate

      public io.vertx.ext.auth.mongo.HashStrategy getDelegate()
      Deprecated.
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      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)
      Deprecated.