public class UserPrincipal extends Object implements Serializable, Principal
Constructor and Description |
---|
UserPrincipal(String name)
Creates a new user principal with the given name
|
public UserPrincipal(String name)
name
- The user name.NullPointerException
- if name is null.public Set<BasicRole> getRoles()
public void setRoles(Set<BasicRole> roles)
roles
- NullPointerException
- If the given role set was null.public boolean equals(Object other)
public int hashCode()
Copyright © 2014. All rights reserved.