Class DefaulPasswordEncoderService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String decode​(UserModel user)
      Tries to decodes from the given user the encoded password based on the encoding set to the user.
      java.lang.String encode​(UserModel user, java.lang.String plainTextPassword, java.lang.String passwordEncoding)
      Encodes the given plainTextPassword with the corresponding PasswordEncoder (based on the passwordEncoding) and returns it.
      java.util.Collection<java.lang.String> getSupportedEncodings()  
      boolean isSupportedEncoding​(java.lang.String encoding)
      Checks if the given password encoding is supported.
      boolean isValid​(UserModel user, java.lang.String plainPassword)
      Checks if the encoded password (stored in the user) matches the given plain text password.
      boolean isValid​(UserModel user, java.lang.String encoding, java.lang.String encodedPassword)  
      void setEncoderFactory​(PasswordEncoderFactory encoderFactory)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait