org.jboss.security.identity.plugins
Class SimpleIdentity

java.lang.Object
  extended by 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

Constructor Summary
SimpleIdentity(String name)
           
SimpleIdentity(String name, org.jboss.security.identity.Role role)
           
SimpleIdentity(String name, String roleName)
           
 
Method Summary
 Group asGroup()
           
 Principal asPrincipal()
           
 boolean equals(Object obj)
           
 String getName()
           
 org.jboss.security.identity.Role getRole()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleIdentity

public SimpleIdentity(String name)

SimpleIdentity

public SimpleIdentity(String name,
                      String roleName)

SimpleIdentity

public SimpleIdentity(String name,
                      org.jboss.security.identity.Role role)
Method Detail

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.