org.objectweb.security.propagation
Class SSHandler

java.lang.Object
  extended by org.objectweb.security.propagation.SSHandler
All Implemented Interfaces:
org.objectweb.jeremie.services.handler.api.Service

public class SSHandler
extends java.lang.Object
implements org.objectweb.jeremie.services.handler.api.Service


Constructor Summary
SSHandler(org.objectweb.jonathan.apis.kernel.Context c, java.lang.Object[] used_components)
          Creates a new SSHandler instance.
 
Method Summary
 org.omg.IOP.ServiceContext getReplyContext(int request_id, org.objectweb.jonathan.apis.kernel.Context kContext)
          Returns a reply context.
 org.omg.IOP.ServiceContext getRequestContext(int request_id, boolean response_expected, byte[] object_key, org.objectweb.jonathan.apis.kernel.Context kContext)
          Returns a request context.
 void handleReplyContext(org.omg.IOP.ServiceContext context, int request_id, org.objectweb.jonathan.apis.kernel.Context kContext)
          This method is called by the services handler to let the operations related to the target service be performed on reply arrival.
 void handleRequestContext(org.omg.IOP.ServiceContext context, int request_id, boolean response_expected, byte[] object_key, org.objectweb.jonathan.apis.kernel.Context kContext)
          This method is called by the services handler to let the operations related to the target service be performed on request arrival.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSHandler

public SSHandler(org.objectweb.jonathan.apis.kernel.Context c,
                 java.lang.Object[] used_components)
          throws org.objectweb.jonathan.apis.kernel.JonathanException
Creates a new SSHandler instance.

Throws:
org.objectweb.jonathan.apis.kernel.JonathanException
Method Detail

getRequestContext

public org.omg.IOP.ServiceContext getRequestContext(int request_id,
                                                    boolean response_expected,
                                                    byte[] object_key,
                                                    org.objectweb.jonathan.apis.kernel.Context kContext)
Returns a request context.

If sender is not null, this method encodes the security context returned by the sending_request method of the sender, else it returns null.

Specified by:
getRequestContext in interface org.objectweb.jeremie.services.handler.api.Service
Parameters:
request_id - the request identifier;
response_expected - unused;
object_key - unused.
Returns:
a service context.

getReplyContext

public org.omg.IOP.ServiceContext getReplyContext(int request_id,
                                                  org.objectweb.jonathan.apis.kernel.Context kContext)
Returns a reply context.

this method encodes the security context returned by its sending_reply method, else it returns null.

Specified by:
getReplyContext in interface org.objectweb.jeremie.services.handler.api.Service
Parameters:
request_id - the corresponding request id.
Returns:
a service context.

handleRequestContext

public void handleRequestContext(org.omg.IOP.ServiceContext context,
                                 int request_id,
                                 boolean response_expected,
                                 byte[] object_key,
                                 org.objectweb.jonathan.apis.kernel.Context kContext)
This method is called by the services handler to let the operations related to the target service be performed on request arrival.

Specified by:
handleRequestContext in interface org.objectweb.jeremie.services.handler.api.Service
Parameters:
context - the service context of the request;
request_id - the request identifier;
response_expected - unused;
object_key - unused.

handleReplyContext

public void handleReplyContext(org.omg.IOP.ServiceContext context,
                               int request_id,
                               org.objectweb.jonathan.apis.kernel.Context kContext)
This method is called by the services handler to let the operations related to the target service be performed on reply arrival.

Specified by:
handleReplyContext in interface org.objectweb.jeremie.services.handler.api.Service
Parameters:
context - the service context of the reply;
request_id - the corresponding request identifier.