org.objectweb.jonas.security.realm.web.jetty50.JettyPrincipal Class Reference

List of all members.

Public Member Functions

 JettyPrincipal (String name, ArrayList roles)
String getName ()
boolean isAuthenticated ()
boolean isUserInRole (String role)
ArrayList getRoles ()

Detailed Description

Define a principal which can be used by Jetty
Author:
Florent Benoit

Definition at line 36 of file JettyPrincipal.java.


Constructor & Destructor Documentation

org.objectweb.jonas.security.realm.web.jetty50.JettyPrincipal.JettyPrincipal String  name,
ArrayList  roles
 

Constructor

Parameters:
name name of this principal
roles roles for this principal

Definition at line 53 of file JettyPrincipal.java.


Member Function Documentation

String org.objectweb.jonas.security.realm.web.jetty50.JettyPrincipal.getName  ) 
 

Get the name of this principal

Returns:
the name of this principal

Definition at line 62 of file JettyPrincipal.java.

Referenced by org.objectweb.jonas.security.realm.web.jetty50.Standard.getPrincipal().

ArrayList org.objectweb.jonas.security.realm.web.jetty50.JettyPrincipal.getRoles  ) 
 

Gets the roles of this user

Returns:
roles of this user

Definition at line 90 of file JettyPrincipal.java.

Referenced by org.objectweb.jonas.security.realm.web.jetty50.Standard.getPrincipal().

boolean org.objectweb.jonas.security.realm.web.jetty50.JettyPrincipal.isAuthenticated  ) 
 

This user is authenticated ?

Returns:
true if it is authenticated

Definition at line 70 of file JettyPrincipal.java.

Referenced by org.objectweb.jonas.security.realm.web.jetty50.Standard.reauthenticate().

boolean org.objectweb.jonas.security.realm.web.jetty50.JettyPrincipal.isUserInRole String  role  ) 
 

Check if the given role is in the user's roles

Parameters:
role the given role
Returns:
true if the role is in the user's roles

Definition at line 79 of file JettyPrincipal.java.


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