tyrex.security.container

Class RealmPrincipal

public final class RealmPrincipal extends Object implements Principal, Serializable

A realm principal. Holds the principal's name and realm, if known. The container will use this prinicipal to return the prinicipal's name to the application.

Version: $Revision: 1.5 $ $Date: 2001/03/19 17:39:02 $

Author: Assaf Arkin

Field Summary
static RealmPrincipalANYONE
The principal 'anyone' indicates an unknown prinicipal.
Constructor Summary
RealmPrincipal(String name, String realm)
Construct a new realm principal.
Method Summary
booleanequals(Object object)
StringgetName()
Returns the name of the principal.
StringgetRealm()
Returns the realm of the prinicipal.
inthashCode()
StringtoString()

Field Detail

ANYONE

public static final RealmPrincipal ANYONE
The principal 'anyone' indicates an unknown prinicipal.

Constructor Detail

RealmPrincipal

public RealmPrincipal(String name, String realm)
Construct a new realm principal.

Parameters: name The principal's name realm The prinicipal's realm, null if not known

Method Detail

equals

public boolean equals(Object object)

getName

public String getName()
Returns the name of the principal.

Returns: The prinicipal's name

getRealm

public String getRealm()
Returns the realm of the prinicipal. If the principal's realm is unknown, returns null.

Returns: The principal's realm or null

hashCode

public int hashCode()

toString

public String toString()
Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.