Class SimpleIdentity
- java.lang.Object
-
- org.jboss.security.identity.plugins.SimpleIdentity
-
- All Implemented Interfaces:
Serializable
,Identity
public class SimpleIdentity extends Object implements Identity
Simple Identity- Since:
- Nov 16, 2007
- Version:
- $Revision$
- Author:
- Anil.Saldhana@redhat.com
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleIdentity(String name)
SimpleIdentity(String name, String roleName)
SimpleIdentity(String name, Role role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Group
asGroup()
Return a Group only if it has been setPrincipal
asPrincipal()
Returns a Principal only if it setboolean
equals(Object obj)
String
getName()
Get the name of the identityRole
getRole()
Get the Role (Role or RoleGroup)int
hashCode()
-
-
-
Method Detail
-
asGroup
public Group asGroup()
Description copied from interface:Identity
Return a Group only if it has been set
-
asPrincipal
public Principal asPrincipal()
Description copied from interface:Identity
Returns a Principal only if it set- Specified by:
asPrincipal
in interfaceIdentity
- Returns:
-
getName
public String getName()
Description copied from interface:Identity
Get the name of the identity
-
getRole
public Role getRole()
Description copied from interface:Identity
Get the Role (Role or RoleGroup)
-
-