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 GroupasGroup()Return a Group only if it has been setPrincipalasPrincipal()Returns a Principal only if it setbooleanequals(Object obj)StringgetName()Get the name of the identityRolegetRole()Get the Role (Role or RoleGroup)inthashCode()
-
-
-
Method Detail
-
asGroup
public Group asGroup()
Description copied from interface:IdentityReturn a Group only if it has been set
-
asPrincipal
public Principal asPrincipal()
Description copied from interface:IdentityReturns a Principal only if it set- Specified by:
asPrincipalin interfaceIdentity- Returns:
-
getName
public String getName()
Description copied from interface:IdentityGet the name of the identity
-
getRole
public Role getRole()
Description copied from interface:IdentityGet the Role (Role or RoleGroup)
-
-