org.jboss.security.identity.plugins
Class SimpleIdentity
java.lang.Object
org.jboss.security.identity.plugins.SimpleIdentity
- All Implemented Interfaces:
- Serializable, org.jboss.security.identity.Identity
public class SimpleIdentity
- extends Object
- implements org.jboss.security.identity.Identity
Simple Identity
- Since:
- Nov 16, 2007
- Version:
- $Revision$
- Author:
- Anil.Saldhana@redhat.com
- See Also:
- Serialized Form
SimpleIdentity
public SimpleIdentity(String name)
SimpleIdentity
public SimpleIdentity(String name,
String roleName)
SimpleIdentity
public SimpleIdentity(String name,
org.jboss.security.identity.Role role)
asGroup
public Group asGroup()
- Specified by:
asGroup
in interface org.jboss.security.identity.Identity
asPrincipal
public Principal asPrincipal()
- Specified by:
asPrincipal
in interface org.jboss.security.identity.Identity
getName
public String getName()
- Specified by:
getName
in interface org.jboss.security.identity.Identity
getRole
public org.jboss.security.identity.Role getRole()
- Specified by:
getRole
in interface org.jboss.security.identity.Identity
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2009 JBoss Inc.. All Rights Reserved.