站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended byorg.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

Constructor Summary
SimplePrincipal(String name)
           
 
Method Summary
 boolean equals(Object another)
          Compare this SimplePrincipal's name against another Principal
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimplePrincipal

public SimplePrincipal(String name)
Method Detail

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.