org.objectweb.security.propagation
Class SSHandler

org.objectweb.security.propagation.SSHandler

public class SSHandler


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.
 

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.
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.

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.

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.
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.
Parameters:
context - the service context of the reply;
request_id - the corresponding request identifier.