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()
Identity
public Principal asPrincipal()
Identity
asPrincipal
in interface Identity
public String getName()
Identity
public Role getRole()
Identity
Copyright © 2017 JBoss by Red Hat. All rights reserved.