Class MD5PasswordEncoder

    • Constructor Summary

      Constructors 
      Constructor Description
      MD5PasswordEncoder()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected java.lang.String calculateMD5​(java.lang.String plain)
      Deprecated.
       
      boolean check​(java.lang.String uid, java.lang.String encoded, java.lang.String plain)
      Deprecated.
      Calculates the hash of 'plain' and compare it with the value of 'encoded'
      java.lang.String decode​(java.lang.String encoded)
      Deprecated.
      Decode the given encoded password.
      java.lang.String encode​(java.lang.String uid, java.lang.String plain)
      Deprecated.
      Returns the encoded password string based on the implementation of this interface and by the given plain password.
      • Methods inherited from class java.lang.Object

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

      • MD5PasswordEncoder

        public MD5PasswordEncoder()
        Deprecated.
    • Method Detail

      • calculateMD5

        protected java.lang.String calculateMD5​(java.lang.String plain)
        Deprecated.
      • encode

        public java.lang.String encode​(java.lang.String uid,
                                       java.lang.String plain)
        Deprecated.
        Description copied from interface: PasswordEncoder
        Returns the encoded password string based on the implementation of this interface and by the given plain password. The uid can be used as additional salt (see SaltedMD5PasswordEncoder).
        Specified by:
        encode in interface PasswordEncoder
        Parameters:
        uid - mostly userID, mostly not used
        plain - the plain password
        Returns:
        the encoded password
        See Also:
        SaltedMD5PasswordEncoder, PlainTextPasswordEncoder
      • check

        public boolean check​(java.lang.String uid,
                             java.lang.String encoded,
                             java.lang.String plain)
        Deprecated.
        Calculates the hash of 'plain' and compare it with the value of 'encoded'
        Specified by:
        check in interface PasswordEncoder
        Parameters:
        uid - unused
        encoded - could be 'null'
        plain - could be 'null'
        Returns:
        true if hash of 'plain' is equals to 'encoded'
        See Also:
        check(java.lang.String, java.lang.String, java.lang.String)