org.objectweb.jonas.security.realm.web.jetty50
Class JAAS

java.lang.Object
  extended by org.objectweb.jonas.security.realm.web.jetty50.Standard
      extended by org.objectweb.jonas.security.realm.web.jetty50.JAAS
All Implemented Interfaces:
org.mortbay.http.UserRealm

public class JAAS
extends Standard

Implementation of a JAAS Realm. (by a wrapper) It uses the entry JAAS_CONFIG_NAME from the JAAS config file

Author:
Alexandre Thaveau (JAAS support with JOnAS), Marc-Antoine Bourgeot (JAAS support with JOnAS), Florent Benoit (Jetty 5.x)

Constructor Summary
JAAS()
          Default Constructor
JAAS(java.lang.String name)
          Default Constructor
 
Method Summary
 java.security.Principal authenticate(java.lang.String username, java.lang.Object credentials, org.mortbay.http.HttpRequest request)
          Authenticate a user with a specific username and credentials
 
Methods inherited from class org.objectweb.jonas.security.realm.web.jetty50.Standard
addUser, disassociate, getLogger, getName, getPrincipal, getUsers, isAuthenticated, isUserInRole, logout, popRole, pushRole, reauthenticate, removeUser, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAAS

public JAAS()
Default Constructor


JAAS

public JAAS(java.lang.String name)
Default Constructor

Parameters:
name - of the realm
Method Detail

authenticate

public java.security.Principal authenticate(java.lang.String username,
                                            java.lang.Object credentials,
                                            org.mortbay.http.HttpRequest request)
Authenticate a user with a specific username and credentials

Specified by:
authenticate in interface org.mortbay.http.UserRealm
Overrides:
authenticate in class Standard
Parameters:
username - name of the user
credentials - credential of the user
request - httprequest
Returns:
a Jetty principal