org.objectweb.jonas.security.iiop.SecurityContextHelper Class Reference

Inherits org.objectweb.jonas.security.AbsSecurityContextHelper.

Inheritance diagram for org.objectweb.jonas.security.iiop.SecurityContextHelper:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.security.iiop.SecurityContextHelper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

String getIdentityToken ()
InitialContextToken getInitialContextToken () throws UnsupportedEncodingException

Static Public Member Functions

SecurityContextHelper getInstance ()

Protected Member Functions

Logger getLogger ()
String getRealmKey ()
String getRealmDefault ()
void loginAuthenticationToken (String userName, String password)
void loginIdentiyToken (String principalName)

Detailed Description

This class is used by Csiv2 server interceptor and by the JOnAS EJB provider Web Service. It allows to authenticate users.
Author:
Florent Benoit : Initial developper

Helene Joanin : Refactoring

Definition at line 48 of file SecurityContextHelper.java.


Member Function Documentation

String org.objectweb.jonas.security.iiop.SecurityContextHelper.getIdentityToken  ) 
 

Returns:
the identity of the authenticated user. In run-as, it returns run-as identity.

Definition at line 148 of file SecurityContextHelper.java.

References org.objectweb.security.context.SecurityContext.getCallerPrincipal(), org.objectweb.security.context.SecurityCurrent.getSecurityContext(), and org.objectweb.security.context.SecurityContext.peekRunAsPrincipal().

Here is the call graph for this function:

InitialContextToken org.objectweb.jonas.security.iiop.SecurityContextHelper.getInitialContextToken  )  throws UnsupportedEncodingException
 

Returns:
the identity of the authenticated user. In run-as, it returns run-as identity.
Exceptions:
UnsupportedEncodingException if UTF-8 encoding is not supported

Definition at line 164 of file SecurityContextHelper.java.

References org.objectweb.security.context.SecurityContext.getPrincipalName(), and org.objectweb.security.context.SecurityCurrent.getSecurityContext().

Here is the call graph for this function:

SecurityContextHelper org.objectweb.jonas.security.iiop.SecurityContextHelper.getInstance  )  [static]
 

Returns:
return the singleton instance

Definition at line 95 of file SecurityContextHelper.java.

Logger org.objectweb.jonas.security.iiop.SecurityContextHelper.getLogger  )  [protected, virtual]
 

Returns:
the associated logger

Implements org.objectweb.jonas.security.AbsSecurityContextHelper.

Definition at line 105 of file SecurityContextHelper.java.

String org.objectweb.jonas.security.iiop.SecurityContextHelper.getRealmDefault  )  [protected, virtual]
 

Returns:
return the CSIV2 default Realm

Implements org.objectweb.jonas.security.AbsSecurityContextHelper.

Definition at line 119 of file SecurityContextHelper.java.

String org.objectweb.jonas.security.iiop.SecurityContextHelper.getRealmKey  )  [protected, virtual]
 

Returns:
return the CSIV2 Realm key

Implements org.objectweb.jonas.security.AbsSecurityContextHelper.

Definition at line 112 of file SecurityContextHelper.java.

void org.objectweb.jonas.security.iiop.SecurityContextHelper.loginAuthenticationToken String  userName,
String  password
[protected]
 

Authenticate with csiv2 authentication token

Parameters:
userName user for login
password of the user

Definition at line 128 of file SecurityContextHelper.java.

References org.objectweb.jonas.security.AbsSecurityContextHelper.login().

Here is the call graph for this function:

void org.objectweb.jonas.security.iiop.SecurityContextHelper.loginIdentiyToken String  principalName  )  [protected]
 

Authenticate with csiv2 identity token (no password)

Parameters:
principalName the username

Definition at line 139 of file SecurityContextHelper.java.

References org.objectweb.jonas.security.AbsSecurityContextHelper.login().

Here is the call graph for this function:


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