com.terracotta.management.user.impl
Class DfltUserInfo

java.lang.Object
  extended by com.terracotta.management.user.impl.DfltUserInfo
All Implemented Interfaces:
UserInfo, Serializable

public final class DfltUserInfo
extends Object
implements UserInfo

The default implementation of the UserInfo model interface.

Author:
brandony
See Also:
Serialized Form

Constructor Summary
DfltUserInfo(String username, String passwordHash, Set<UserRole> roles)
           
 
Method Summary
 boolean equals(Object o)
           
 String getPasswordHash()
          Gets the stringified representation of this user's hashed password.
 Set<UserRole> getRoles()
          Gets the set of roles associated with this user.
 String getUsername()
          Gets the primary principal associated with this user.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DfltUserInfo

public DfltUserInfo(String username,
                    String passwordHash,
                    Set<UserRole> roles)
Method Detail

getUsername

public String getUsername()
Gets the primary principal associated with this user.

Specified by:
getUsername in interface UserInfo
Returns:
username

getPasswordHash

public String getPasswordHash()
Gets the stringified representation of this user's hashed password.

Specified by:
getPasswordHash in interface UserInfo
Returns:
passwordHash

getRoles

public Set<UserRole> getRoles()
Gets the set of roles associated with this user.

Specified by:
getRoles in interface UserInfo
Returns:
roles

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Terracotta, Inc.. All Rights Reserved.