| Constructor and Description |
|---|
AuthPrincipal(String username)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(String role)
Adds a role.
|
void |
addRoles(Set<String> roles)
Adds multiple roles.
|
String |
getName() |
Set<String> |
getRoles() |
public AuthPrincipal(String username)
username - the usernamepublic String getName()
getName in interface PrincipalPrincipal.getName()public void addRole(String role)
role - the roleCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.