java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.util.user.UserData

public class UserData extends Object
A wrapper for userName, userPass and userRoles.
  • Field Details

    • MAX_PASSWORD_LENGTH

      public static final int MAX_PASSWORD_LENGTH
      See Also:
    • MAX_USERNAME_LENGTH

      public static final int MAX_USERNAME_LENGTH
      See Also:
    • userName

      public final String userName
    • userPass

      public final String userPass
    • roles

      public final Set<String> roles
  • Constructor Details

    • UserData

      public UserData(String userName, String userPass)
      Create a new UserData with the standard maximum username and password lengths.
      Parameters:
      userName - the user name to use.
      userPass - the password to use.
    • UserData

      public UserData(String userName, int maxNameLength, String userPass, int maxPassLength)
      Create a new UserData with the given maximum username and password lengths.
      Parameters:
      userName - the user name to use.
      maxNameLength - the maximum length of the username to check for.
      userPass - the password to use.
      maxPassLength - the maximum length of the password to check for.
  • Method Details

    • getUserName

      public String getUserName()
    • isEmpty

      public boolean isEmpty()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object