Class BCryptHasher

  • All Implemented Interfaces:
    Hasher

    public class BCryptHasher
    extends java.lang.Object
    implements Hasher
    • Constructor Summary

      Constructors 
      Constructor Description
      BCryptHasher()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String hash​(java.lang.String plainSecret)  
      boolean verify​(java.lang.String plainSecret, java.lang.String hashedSecret)  
      • Methods inherited from class java.lang.Object

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

      • BCryptHasher

        public BCryptHasher()
    • Method Detail

      • hash

        public java.lang.String hash​(java.lang.String plainSecret)
        Specified by:
        hash in interface Hasher
      • verify

        public boolean verify​(java.lang.String plainSecret,
                              java.lang.String hashedSecret)
        Specified by:
        verify in interface Hasher