Class LegacyPasswordEncoder

java.lang.Object
net.solarnetwork.central.security.LegacyPasswordEncoder
All Implemented Interfaces:
org.springframework.security.crypto.password.PasswordEncoder

@Deprecated public class LegacyPasswordEncoder extends Object implements org.springframework.security.crypto.password.PasswordEncoder
Deprecated.
do not use this encoder for anything other than supporting legacy passwords
Password encoder using unsalted SHA-256 hashes.
  • Constructor Details

    • LegacyPasswordEncoder

      public LegacyPasswordEncoder()
      Deprecated.
  • Method Details

    • encode

      public String encode(CharSequence rawPassword)
      Deprecated.
      Specified by:
      encode in interface org.springframework.security.crypto.password.PasswordEncoder
    • matches

      public boolean matches(CharSequence rawPassword, String encodedPassword)
      Deprecated.
      Specified by:
      matches in interface org.springframework.security.crypto.password.PasswordEncoder