org.objectweb.jonas.security.realm.web.catalina50.JAAS Class Reference

List of all members.

Public Member Functions

String getInfo ()
Principal authenticate (X509Certificate[] cert)
Principal authenticate (String username, String credentials)
synchronized void start () throws LifecycleException
synchronized void stop () throws LifecycleException

Protected Member Functions

String getName ()
String getPassword (String username)
Principal getPrincipal (String username)
void log (String message)

Detailed Description

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

Alexandre Thaveau (JAAS support with JOnAS)

Marc-Antoine Bourgeot (JAAS support with JOnAS)

Definition at line 63 of file JAAS.java.


Member Function Documentation

Principal org.objectweb.jonas.security.realm.web.catalina50.JAAS.authenticate String  username,
String  credentials
 

Return the Principal associated with the specified username and credentials, if there is one; otherwise return null.

Parameters:
username Username of the Principal to look up
credentials Password or other credentials to use in authenticating this username
Returns:
the principal associated

Definition at line 124 of file JAAS.java.

References org.objectweb.jonas.security.realm.web.catalina50.JAAS.log(), and org.objectweb.security.context.SecurityCurrent.setSecurityContext().

Here is the call graph for this function:

Principal org.objectweb.jonas.security.realm.web.catalina50.JAAS.authenticate X509Certificate[]  cert  ) 
 

Return the Principal associated with the specified X.509 certificate Distinguished Name if there is one; otherwise return null.

Parameters:
cert X.509 Certificate of the user
Returns:
the principal associated

Definition at line 107 of file JAAS.java.

References org.objectweb.jonas.security.realm.web.catalina50.JAAS.getName().

Here is the call graph for this function:

String org.objectweb.jonas.security.realm.web.catalina50.JAAS.getInfo  ) 
 

Return descriptive information about this Realm implementation and the corresponding version number, in the format <description>/<version>.

Returns:
the info.

Definition at line 97 of file JAAS.java.

String org.objectweb.jonas.security.realm.web.catalina50.JAAS.getName  )  [protected]
 

Return a short name for this Realm implementation.

Returns:
the name

Definition at line 218 of file JAAS.java.

Referenced by org.objectweb.jonas.security.realm.web.catalina50.JAAS.authenticate().

String org.objectweb.jonas.security.realm.web.catalina50.JAAS.getPassword String  username  )  [protected]
 

Return the password associated with the given principal's user name.

Parameters:
username the given principal's user name.
Returns:
the password associated.

Definition at line 228 of file JAAS.java.

Principal org.objectweb.jonas.security.realm.web.catalina50.JAAS.getPrincipal String  username  )  [protected]
 

Return the Principal associated with the given user name.

Parameters:
username the given principal's user name.
Returns:
the Principal associated

Definition at line 238 of file JAAS.java.

void org.objectweb.jonas.security.realm.web.catalina50.JAAS.log String  message  )  [protected]
 

Log a message on the Logger associated with our Container (if any)

Parameters:
message Message to be logged

Definition at line 278 of file JAAS.java.

Referenced by org.objectweb.jonas.security.realm.web.catalina50.JAAS.authenticate().

synchronized void org.objectweb.jonas.security.realm.web.catalina50.JAAS.start  )  throws LifecycleException
 

Prepare for active use of the public methods of this Component.

Exceptions:
LifecycleException if this component detects a fatal error that prevents it from being started

Definition at line 249 of file JAAS.java.

synchronized void org.objectweb.jonas.security.realm.web.catalina50.JAAS.stop  )  throws LifecycleException
 

Gracefully shut down active use of the public methods of this Component.

Exceptions:
LifecycleException if this component detects a fatal error that needs to be reported

Definition at line 267 of file JAAS.java.


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