Class Password.UnencryptedPassword

java.lang.Object
org.salespointframework.useraccount.Password
org.salespointframework.useraccount.Password.UnencryptedPassword
All Implemented Interfaces:
org.jmolecules.ddd.types.ValueObject
Enclosing class:
Password

public static class Password.UnencryptedPassword extends Password implements org.jmolecules.ddd.types.ValueObject
An unencrypted password.
Author:
Oliver Drotbohm
  • Method Details

    • of

      public static Password.UnencryptedPassword of(String password)
      Creates a new unencrypted password.
      Parameters:
      password - must not be null or empty.
      Returns:
      will never be null.
    • getLength

      public int getLength()
      Returns the length of the password.
      Returns:
      a positive integer.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object