Package org.jboss.security
Class SimplePrincipal
- java.lang.Object
-
- org.jboss.security.SimplePrincipal
-
- All Implemented Interfaces:
Serializable
,Principal
- Direct Known Subclasses:
NestableGroup
,NestablePrincipal
,RunAsIdentity
,SimpleGroup
public class SimplePrincipal extends Object implements Principal, Serializable
A simple String based implementation of Principal. Typically a SimplePrincipal is created given a userID which is used as the Principal name.- Author:
- Oleg Nitz, Scott.Stark@jboss.org
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimplePrincipal(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object another)
Compare this SimplePrincipal's name against another Principal.String
getName()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
SimplePrincipal
public SimplePrincipal(String name)
-
-
Method Detail
-
equals
public boolean equals(Object another)
Compare this SimplePrincipal's name against another Principal. If system property org.jboss.security.simpleprincipal.equals.override is set to true will only compare instances of SimplePrincipals.
-
hashCode
public int hashCode()
-
toString
public String toString()
-
-