org.objectweb.jonas.security.iiop
Class Csiv2ServerInterceptor

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.objectweb.jonas.security.iiop.Csiv2ServerInterceptor
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, org.omg.PortableInterceptor.Interceptor, org.omg.PortableInterceptor.InterceptorOperations, org.omg.PortableInterceptor.ServerRequestInterceptor, org.omg.PortableInterceptor.ServerRequestInterceptorOperations

public class Csiv2ServerInterceptor
extends org.omg.CORBA.LocalObject
implements org.omg.PortableInterceptor.ServerRequestInterceptor

SAS context interceptor on server side

Author:
Florent Benoit
See Also:
spec : A target security service (TSS) is the security service associated with the ORB that hosts the target object., Secure Interoperability V2 Specification (July 23,2001), Serialized Form

Constructor Summary
Csiv2ServerInterceptor(org.omg.IOP.Codec codec, org.objectweb.util.monolog.api.Logger logger, org.objectweb.util.monolog.api.Logger loggerDetails)
          Constructor
 
Method Summary
 void destroy()
          Provides an opportunity to destroy this interceptor.
 java.lang.String name()
          Returns the name of the interceptor.
 void receive_request_service_contexts(org.omg.PortableInterceptor.ServerRequestInfo ri)
          Allows the interceptor to process service context information.
 void receive_request(org.omg.PortableInterceptor.ServerRequestInfo ri)
          Allows an Interceptor to query request information after all the information, including operation parameters, are available.
 void send_exception(org.omg.PortableInterceptor.ServerRequestInfo ri)
          Allows an Interceptor to query the exception information and modify the reply service context before the exception is thrown to the client.
 void send_other(org.omg.PortableInterceptor.ServerRequestInfo ri)
          Allows an Interceptor to query the information available when a request results in something other than a normal reply or an exception.
 void send_reply(org.omg.PortableInterceptor.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.
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

Csiv2ServerInterceptor

public Csiv2ServerInterceptor(org.omg.IOP.Codec codec,
                              org.objectweb.util.monolog.api.Logger logger,
                              org.objectweb.util.monolog.api.Logger loggerDetails)
Constructor

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

receive_request

public void receive_request(org.omg.PortableInterceptor.ServerRequestInfo ri)
                     throws org.omg.PortableInterceptor.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.

Specified by:
receive_request in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
Parameters:
ri - Information about the current request being intercepted.
Throws:
org.omg.PortableInterceptor.ForwardRequest - If thrown, indicates to the ORB that a retry of the request should occur with the new object given in the exception.

receive_request_service_contexts

public void receive_request_service_contexts(org.omg.PortableInterceptor.ServerRequestInfo ri)
                                      throws org.omg.PortableInterceptor.ForwardRequest
Allows the interceptor to process service context information.

Specified by:
receive_request_service_contexts in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
Parameters:
ri - Information about the current request being intercepted.
Throws:
org.omg.PortableInterceptor.ForwardRequest - If thrown, indicates to the ORB that a retry of the request should occur with the new object given in the exception.

send_exception

public void send_exception(org.omg.PortableInterceptor.ServerRequestInfo ri)
                    throws org.omg.PortableInterceptor.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.

Specified by:
send_exception in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
Parameters:
ri - Information about the current request being intercepted.
Throws:
org.omg.PortableInterceptor.ForwardRequest - If thrown, indicates to the ORB that a retry of the request should occur with the new object given in the exception.

send_other

public void send_other(org.omg.PortableInterceptor.ServerRequestInfo ri)
                throws org.omg.PortableInterceptor.ForwardRequest
Allows an Interceptor to query the information available when a request results in something other than a normal reply or an exception.

Specified by:
send_other in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
Parameters:
ri - Information about the current request being intercepted.
Throws:
org.omg.PortableInterceptor.ForwardRequest - If thrown, indicates to the ORB that a retry of the request should occur with the new object given in the exception.

send_reply

public void send_reply(org.omg.PortableInterceptor.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.

Specified by:
send_reply in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
Parameters:
ri - Information about the current request being intercepted.

destroy

public void destroy()
Provides an opportunity to destroy this interceptor.

Specified by:
destroy in interface org.omg.PortableInterceptor.InterceptorOperations

name

public java.lang.String name()
Returns the name of the interceptor.

Specified by:
name in interface org.omg.PortableInterceptor.InterceptorOperations
Returns:
the name of the interceptor.