public class SimpleIdentity extends Object implements Identity
| Constructor and Description |
|---|
SimpleIdentity(String name) |
SimpleIdentity(String name,
Role role) |
SimpleIdentity(String name,
String roleName) |
| Modifier and Type | Method and Description |
|---|---|
Group |
asGroup()
Return a Group only if it has been set
|
Principal |
asPrincipal()
Returns a Principal only if it set
|
boolean |
equals(Object obj) |
String |
getName()
Get the name of the identity
|
Role |
getRole()
Get the Role (Role or RoleGroup)
|
int |
hashCode() |
public SimpleIdentity(String name)
public Group asGroup()
Identitypublic Principal asPrincipal()
IdentityasPrincipal in interface Identitypublic String getName()
Identitypublic Role getRole()
IdentityCopyright © 2017 JBoss by Red Hat. All rights reserved.