net.sourceforge.jradiusclient.jaas
Class RadiusPrincipal

java.lang.Object
  |
  +--net.sourceforge.jradiusclient.jaas.RadiusPrincipal
All Implemented Interfaces:
java.security.Principal

public class RadiusPrincipal
extends java.lang.Object
implements java.security.Principal

Version:
$Revision: 1.1 $
Author:
Robert J. Loihl

Constructor Summary
RadiusPrincipal(java.lang.String name)
          Constructs RadiusPrincipal objects
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares the specified Object with this RadiusPrincipal for equality.
 java.lang.String getName()
          Gets the name of this RadiusPrincipal
 int hashCode()
           
 java.lang.String toString()
          This method returns a string representation of this RadiusPrincipal.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RadiusPrincipal

public RadiusPrincipal(java.lang.String name)
Constructs RadiusPrincipal objects

Parameters:
name - java.lang.String The name of this principal
Method Detail

getName

public java.lang.String getName()
Gets the name of this RadiusPrincipal

Specified by:
getName in interface java.security.Principal
Returns:
java.lang.String The name of this RadiusPrincipal

toString

public java.lang.String toString()
This method returns a string representation of this RadiusPrincipal.

Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this RadiusPrincipal.

equals

public boolean equals(java.lang.Object object)
Compares the specified Object with this RadiusPrincipal for equality. Returns true if the given object is also a RadiusPrincipal and the two RadiusPrincipal have the same username.

Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object
Parameters:
object - Object to be compared for equality with this RadiusPrincipal.
Returns:
true if the specified Object is equal to this RadiusPrincipal.

hashCode

public int hashCode()
Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object
Returns:
int the hashCode for this RadiusPrincipal