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

List of all members.

Public Member Functions

 Csiv2ServerInterceptor (Codec codec, Logger logger, Logger loggerDetails)
void receive_request (ServerRequestInfo ri) throws ForwardRequest
void receive_request_service_contexts (ServerRequestInfo ri) throws ForwardRequest
void send_exception (ServerRequestInfo ri) throws ForwardRequest
void send_other (ServerRequestInfo ri) throws ForwardRequest
void send_reply (ServerRequestInfo ri)
void destroy ()
String name ()

Detailed Description

SAS context interceptor on server side
See also:
Csiv2 spec : A target security service (TSS) is the security service associated with the ORB that hosts the target object.

Common Secure Interoperability V2 Specification (July 23,2001)

Author:
Florent Benoit

Definition at line 63 of file Csiv2ServerInterceptor.java.


Constructor & Destructor Documentation

org.objectweb.jonas.security.iiop.Csiv2ServerInterceptor.Csiv2ServerInterceptor Codec  codec,
Logger  logger,
Logger  loggerDetails
 

Constructor

Parameters:
codec used for encoding any objects
logger used for logging useful information
loggerDetails for all information (useless for most time :)

Definition at line 91 of file Csiv2ServerInterceptor.java.


Member Function Documentation

void org.objectweb.jonas.security.iiop.Csiv2ServerInterceptor.destroy  ) 
 

Provides an opportunity to destroy this interceptor.

Definition at line 327 of file Csiv2ServerInterceptor.java.

String org.objectweb.jonas.security.iiop.Csiv2ServerInterceptor.name  ) 
 

Returns the name of the interceptor.

Returns:
the name of the interceptor.

Definition at line 335 of file Csiv2ServerInterceptor.java.

void org.objectweb.jonas.security.iiop.Csiv2ServerInterceptor.receive_request ServerRequestInfo  ri  )  throws ForwardRequest
 

Allows an Interceptor to query request information after all the information, including operation parameters, are available. This interception point shall execute in the same thread as the target invocation.

Parameters:
ri Information about the current request being intercepted.
Exceptions:
ForwardRequest If thrown, indicates to the ORB that a retry of the request should occur with the new object given in the exception.

CompleteEstablishContext Message Format [23]
A CompleteEstablishContext message is sent by a TSS in response to an EstablishContext message to indicate that the context was established. The CompleteEstablishContext message contains the following fields:

  • client_context_id The CSS allocated identifier for the security attribute context. It is returned by the target so that a stateful CSS can link this message to the EstablishContext request. A TSS shall always return the value of the client_context_id it received in the EstablishContext message.
  • context_stateful The value returned by the TSS to indicate whether or not the established context is stateful, and thus reusable. A stateless TSS shall always return false. A stateful TSS shall return true if the established context is reusable. Otherwise a stateful TSS shall return false.
  • final_context_token The GSS mechanism-specific final context token that is returned by a TSS if the client requests mutual authentication. When a TSS accepts an EstablishContext message containing an initial context token that requires mutual authentication, the TSS shall return a mechanism-specific final context token. Not all GSS mechanisms support mutual authentication, and thus not all responses to initial context tokens may include final (or output) context tokens.5 When a CompleteEstablishContext message contains a final_context_token, the token shall be applied (with GSS_Init_sec_context) to the client-side GSS state machine

And then, this message should be added. see 16.2.1 The Security Attribute Service Context Element [10] This specification defines a new GIOP service context element type, the security attribute service (SAS) element.
[11] The SAS context element may be used to associate any or all of the following contexts with GIOP request and reply messages: " Identity context, to be accepted based on trust " Authorization context, including authorization-based delegation context " Client authentication context
[12] A new context_id has been defined for the SAS element. const ServiceId SecurityAttributeService = 15

Definition at line 107 of file Csiv2ServerInterceptor.java.

void org.objectweb.jonas.security.iiop.Csiv2ServerInterceptor.receive_request_service_contexts ServerRequestInfo  ri  )  throws ForwardRequest
 

Allows the interceptor to process service context information.

Parameters:
ri Information about the current request being intercepted.
Exceptions:
ForwardRequest If thrown, indicates to the ORB that a retry of the request should occur with the new object given in the exception.

Definition at line 278 of file Csiv2ServerInterceptor.java.

void org.objectweb.jonas.security.iiop.Csiv2ServerInterceptor.send_exception ServerRequestInfo  ri  )  throws ForwardRequest
 

Allows an Interceptor to query the exception information and modify the reply service context before the exception is thrown to the client. When an exception occurs, this interception point is called. This interception point shall execute in the same thread as the target invocation.

Parameters:
ri Information about the current request being intercepted.
Exceptions:
ForwardRequest If thrown, indicates to the ORB that a retry of the request should occur with the new object given in the exception.

Definition at line 294 of file Csiv2ServerInterceptor.java.

void org.objectweb.jonas.security.iiop.Csiv2ServerInterceptor.send_other ServerRequestInfo  ri  )  throws ForwardRequest
 

Allows an Interceptor to query the information available when a request results in something other than a normal reply or an exception.

Parameters:
ri Information about the current request being intercepted.
Exceptions:
ForwardRequest If thrown, indicates to the ORB that a retry of the request should occur with the new object given in the exception.

Definition at line 308 of file Csiv2ServerInterceptor.java.

void org.objectweb.jonas.security.iiop.Csiv2ServerInterceptor.send_reply ServerRequestInfo  ri  ) 
 

Allows an Interceptor to query reply information and modify the reply service context after the target operation has been invoked and before the reply is returned to the client. This interception point shall execute in the same thread as the target invocation.

Parameters:
ri Information about the current request being intercepted.

Definition at line 320 of file Csiv2ServerInterceptor.java.


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