Class PasswordUtils


  • public final class PasswordUtils
    extends java.lang.Object
    Common utility class to handle password hashing and salting
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.google.common.base.Supplier<byte[]> SALT_SUPPLIER  
    • Constructor Summary

      Constructors 
      Constructor Description
      PasswordUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String hashPassword​(java.lang.String password, java.lang.String salt)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SALT_SUPPLIER

        public static final com.google.common.base.Supplier<byte[]> SALT_SUPPLIER
    • Constructor Detail

      • PasswordUtils

        public PasswordUtils()
    • Method Detail

      • hashPassword

        public static java.lang.String hashPassword​(java.lang.String password,
                                                    java.lang.String salt)