站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

CallerIdentity (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.security
Class CallerIdentity

java.lang.Object
  extended byorg.jboss.security.SimplePrincipal
      extended byorg.jboss.security.CallerIdentity
All Implemented Interfaces:
Principal, Serializable
Direct Known Subclasses:
RunAsIdentity

public class CallerIdentity
extends SimplePrincipal

The CallerIdentity is a principal that may have a credential.

Version:
$Revision: 1.1 $
Author:
Thomas.Diesler@jboss.org
See Also:
Serialized Form

Constructor Summary
CallerIdentity(String principal, Object credential)
          Construct an unmutable instance of a CallerIdentity
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 Object getCredential()
           
 int hashCode()
          Returns a hash code value for the object.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class org.jboss.security.SimplePrincipal
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallerIdentity

public CallerIdentity(String principal,
                      Object credential)
Construct an unmutable instance of a CallerIdentity

Method Detail

getCredential

public Object getCredential()

toString

public String toString()
Returns a string representation of the object.

Specified by:
toString in interface Principal
Overrides:
toString in class SimplePrincipal
Returns:
a string representation of the object.

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Specified by:
equals in interface Principal
Overrides:
equals in class SimplePrincipal
Returns:
true if name equals another.getName();

hashCode

public int hashCode()
Returns a hash code value for the object.

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class SimplePrincipal


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.