java.lang.Object
com.github.jh3nd3rs0n.jargyle.common.security.EncryptedPasswordSpec

public abstract class EncryptedPasswordSpec extends Object
The specification of an EncryptedPassword.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getTypeName

      public final String getTypeName()
      Returns the name of the type of EncryptedPassword.
      Returns:
      the name of the type of EncryptedPassword
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • newEncryptedPassword

      public abstract EncryptedPassword newEncryptedPassword(char[] password)
      Returns a new EncryptedPassword of the provided password.
      Parameters:
      password - the provided password
      Returns:
      a new EncryptedPassword of the provided password
    • newEncryptedPassword

      public abstract EncryptedPassword newEncryptedPassword(String encryptedPasswordValue)
      Returns a new EncryptedPassword with the parsed EncryptedPasswordValue from the provided String value. An IllegalArgumentException is thrown if the provided String value to be parsed as an EncryptedPasswordValue is invalid.
      Parameters:
      encryptedPasswordValue - the provided String value to be parsed as an EncryptedPasswordValue
      Returns:
      a new EncryptedPassword with the parsed EncryptedPasswordValue from the provided String value
    • toString

      public String toString()
      Returns the String representation of this EncryptedPasswordSpec.
      Overrides:
      toString in class Object
      Returns:
      the String representation of this EncryptedPasswordSpec