org.ow2.jonas.security.iiop
Class Csiv2ClientInterceptor

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.ow2.jonas.security.iiop.Csiv2ClientInterceptor
All Implemented Interfaces:
Serializable, Object, IDLEntity, ClientRequestInterceptor, ClientRequestInterceptorOperations, Interceptor, InterceptorOperations

public class Csiv2ClientInterceptor
extends LocalObject
implements ClientRequestInterceptor

SAS context interceptor on client side.

Author:
Florent Benoit
See Also:
spec : A client security service (CSS) is the security service associated with the ORB that is used by the client to invoke the target object., state machine (fig 16-3), Secure Interoperability V2 Specification (July 23,2001), Serialized Form

Constructor Summary
Csiv2ClientInterceptor(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.
 String name()
          Returns the name of the interceptor.
 void receive_exception(ClientRequestInfo ri)
          Indicates to the interceptor that an exception occurred.
 void receive_other(ClientRequestInfo ri)
          Allows an Interceptor to query the information available when a request results in something other than a normal reply or an exception.
 void receive_reply(ClientRequestInfo ri)
          Allows an Interceptor to query the information on a reply after it is returned from the server and before control is returned to the client.
 void send_poll(ClientRequestInfo ri)
          Allows an Interceptor to query information during a Time-Independent Invocation (TII) polling get reply sequence.
 void send_request(ClientRequestInfo ri)
          Need to send an establish context as described in the CSS state machine Compliance with level 0, so stateless context
 
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

Csiv2ClientInterceptor

public Csiv2ClientInterceptor(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_exception

public void receive_exception(ClientRequestInfo ri)
                       throws ForwardRequest
Indicates to the interceptor that an exception occurred. Allows an Interceptor to query the exception's information before it is thrown to the client.

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

receive_other

public void receive_other(ClientRequestInfo 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.

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

receive_reply

public void receive_reply(ClientRequestInfo ri)
Allows an Interceptor to query the information on a reply after it is returned from the server and before control is returned to the client.

Specified by:
receive_reply in interface ClientRequestInterceptorOperations
Parameters:
ri - Information about the current request being intercepted.

send_poll

public void send_poll(ClientRequestInfo ri)
Allows an Interceptor to query information during a Time-Independent Invocation (TII) polling get reply sequence.

Specified by:
send_poll in interface ClientRequestInterceptorOperations
Parameters:
ri - Information about the current request being intercepted.

send_request

public void send_request(ClientRequestInfo ri)
                  throws ForwardRequest
Need to send an establish context as described in the CSS state machine Compliance with level 0, so stateless context

Specified by:
send_request in interface ClientRequestInterceptorOperations
Throws:
ForwardRequest
See Also:
16-3 of spec. [109]

destroy

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

Specified by:
destroy in interface InterceptorOperations

name

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

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


Copyright © 2010 OW2 Consortium. All Rights Reserved.