Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.security
Class CallerIdentity

    java.lang.Object
      org.jboss.security.SimplePrincipal
          org.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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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