org.objectweb.jonas.security.auth.JPrincipal Class Reference

Inherited by org.objectweb.jonas.security.auth.JRole.

Inheritance diagram for org.objectweb.jonas.security.auth.JPrincipal:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 JPrincipal (String name)
boolean equals (Object another)
String toString ()
int hashCode ()
String getName ()

Detailed Description

Define a JOnAS principal
Author:
Florent Benoit

Definition at line 36 of file JPrincipal.java.


Constructor & Destructor Documentation

org.objectweb.jonas.security.auth.JPrincipal.JPrincipal String  name  ) 
 

Constructor

Parameters:
name the name of this principal

Definition at line 48 of file JPrincipal.java.


Member Function Documentation

boolean org.objectweb.jonas.security.auth.JPrincipal.equals Object  another  ) 
 

Compares this principal to the specified object. Returns true if the object passed in matches the principal represented by the implementation of this interface.

Parameters:
another principal to compare with.
Returns:
true if the principal passed in is the same as that encapsulated by this principal, and false otherwise.

Definition at line 57 of file JPrincipal.java.

References org.objectweb.jonas.security.auth.JPrincipal.getName().

Here is the call graph for this function:

String org.objectweb.jonas.security.auth.JPrincipal.getName  ) 
 

Returns the name of this principal.

Returns:
the name of this principal.

Definition at line 86 of file JPrincipal.java.

Referenced by org.objectweb.jonas.security.auth.JPrincipal.equals().

int org.objectweb.jonas.security.auth.JPrincipal.hashCode  ) 
 

Returns a hashcode for this principal.

Returns:
a hashcode for this principal.

Definition at line 78 of file JPrincipal.java.

String org.objectweb.jonas.security.auth.JPrincipal.toString  ) 
 

Returns a string representation of this principal.

Returns:
a string representation of this principal.

Definition at line 69 of file JPrincipal.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:39 2005 for JOnAS by  doxygen 1.3.9.1