public class AuthenticatedPrincipal extends Object implements Serializable, Principal
Principal that can contain roles and additional attributes. This is
the return Object for AbstractAuthenticator implementations. Note
that the key and values of the attributes must
be Serializable.| Constructor and Description |
|---|
AuthenticatedPrincipal() |
AuthenticatedPrincipal(String username) |
AuthenticatedPrincipal(String username,
Collection<String> roles) |
AuthenticatedPrincipal(String username,
Collection<String> roles,
Map<String,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAttributes() |
String |
getName() |
Collection<String> |
getRoles() |
void |
setAttributes(Map<String,Object> attributes) |
void |
setName(String name) |
void |
setRoles(Collection<String> roles) |
String |
toString() |
public AuthenticatedPrincipal()
public AuthenticatedPrincipal(String username)
public AuthenticatedPrincipal(String username, Collection<String> roles)
public Collection<String> getRoles()
public String toString()
public void setName(String name)
name - the name to setpublic void setRoles(Collection<String> roles)
roles - the roles to setCopyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.