Class PrefixSalt

java.lang.Object
org.passay.support.PrefixSalt
All Implemented Interfaces:
Salt

public class PrefixSalt extends Object implements Salt
A salt that is concatenated as a prefix to the password data.
  • Field Details

    • salt

      private final String salt
      The salt data.
  • Constructor Details

    • PrefixSalt

      public PrefixSalt(String slt)
      Creates a new salt with the given salt data.
      Parameters:
      slt - the salt data
  • Method Details

    • applyTo

      public CharBuffer applyTo(CharBuffer password)
      Description copied from interface: Salt
      Applies the salt to the password, returning the combined string to be digested.
      Specified by:
      applyTo in interface Salt
      Parameters:
      password - the cleartext password to apply the salt to
      Returns:
      the salted password