Class Users<Role>

java.lang.Object
org.flasby.entity.Users<Role>
All Implemented Interfaces:
Principal

@Entity public class Users<Role> extends Object implements Principal
  • Field Details

  • Constructor Details

  • Method Details

    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Principal
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface Principal
      Overrides:
      equals in class Object
    • getProperties

      public Properties getProperties()
    • setPassword

      public int setPassword(String plaintext)
      sets the password and returns the password strength.
      0 is very poor
      5 is as good as it gets
    • checkPassword

      public boolean checkPassword(String plaintext)
    • getProperty

      public String getProperty(String key)
    • setProperty

      public void setProperty(String key, String value)
    • toString

      public String toString()
      Specified by:
      toString in interface Principal
      Overrides:
      toString in class Object