当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
SimplePrincipal (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.security
Class SimplePrincipal
java.lang.Object
org.jboss.security.SimplePrincipal
- All Implemented Interfaces:
- Principal, Serializable
- Direct Known Subclasses:
- CallerIdentity
- 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
SimplePrincipal
public SimplePrincipal(String name)
equals
public boolean equals(Object another)
- Compare this SimplePrincipal's name against another Principal
- Specified by:
equals
in interface Principal
- Returns:
- true if name equals another.getName();
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Principal
toString
public String toString()
- Specified by:
toString
in interface Principal
getName
public String getName()
- Specified by:
getName
in interface Principal
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.