org.jacorb.security.sas

Class SASTargetInterceptor

Implemented Interfaces:
Configurable, IDLEntity, Interceptor, InterceptorOperations, Object, java.io.Serializable, ServerRequestInterceptor, ServerRequestInterceptorOperations

public class SASTargetInterceptor
extends LocalObject
implements ServerRequestInterceptor, Configurable

This is the SAS Target Security Service (TSS) Interceptor

Version:
$Id: SASTargetInterceptor.java,v 1.24 2004/05/07 13:08:29 david.robison Exp $

Author:
David Robison

Field Summary

protected int
clientUserNameSlotID
protected Codec
codec
protected ORB
orb
protected ISASContext
sasContext
protected int
sasContextsCubby
protected int
sasReplySlotID
protected boolean
useSsl

Constructor Summary

SASTargetInterceptor(ORBInitInfo info)

Method Summary

void
cacheSASContext(GIOPConnection connection, long client_context_id, byte[] client_authentication_token, String principalName)
void
configure(Configuration configuration)
void
destroy()
byte[]
getSASContext(GIOPConnection connection, long client_context_id)
String
getSASContextPrincipalName(GIOPConnection connection, long client_context_id)
protected Any
makeCompleteEstablishContext(ServerRequestInfo ri, long client_context_id, org.jacorb.sasPolicy.SASPolicyValues sasValues)
protected Any
makeContextError(ServerRequestInfo ri, long client_context_id, int major_status, int minor_status, byte[] error_token)
String
name()
void
purgeSASContext(GIOPConnection connection, long client_context_id)
void
receive_request(ServerRequestInfo ri)
void
receive_request_service_contexts(ServerRequestInfo ri)
void
send_exception(ServerRequestInfo ri)
void
send_other(ServerRequestInfo ri)
void
send_reply(ServerRequestInfo ri)

Methods inherited from class org.omg.CORBA.LocalObject

_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _ids, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection

Field Details

clientUserNameSlotID

protected int clientUserNameSlotID


codec

protected Codec codec


orb

protected ORB orb


sasContext

protected ISASContext sasContext


sasContextsCubby

protected int sasContextsCubby


sasReplySlotID

protected int sasReplySlotID


useSsl

protected boolean useSsl

Constructor Details

SASTargetInterceptor

public SASTargetInterceptor(ORBInitInfo info)
            throws UnknownEncoding,
                   ConfigurationException

Method Details

cacheSASContext

public void cacheSASContext(GIOPConnection connection,
                            long client_context_id,
                            byte[] client_authentication_token,
                            String principalName)


configure

public void configure(Configuration configuration)
            throws ConfigurationException


destroy

public void destroy()
Specified by:
destroy in interface InterceptorOperations


getSASContext

public byte[] getSASContext(GIOPConnection connection,
                            long client_context_id)


getSASContextPrincipalName

public String getSASContextPrincipalName(GIOPConnection connection,
                                         long client_context_id)


makeCompleteEstablishContext

protected Any makeCompleteEstablishContext(ServerRequestInfo ri,
                                           long client_context_id,
                                           org.jacorb.sasPolicy.SASPolicyValues sasValues)


makeContextError

protected Any makeContextError(ServerRequestInfo ri,
                               long client_context_id,
                               int major_status,
                               int minor_status,
                               byte[] error_token)


name

public String name()
Specified by:
name in interface InterceptorOperations


purgeSASContext

public void purgeSASContext(GIOPConnection connection,
                            long client_context_id)


receive_request

public void receive_request(ServerRequestInfo ri)
            throws ForwardRequest
Specified by:
receive_request in interface ServerRequestInterceptorOperations


receive_request_service_contexts

public void receive_request_service_contexts(ServerRequestInfo ri)
            throws ForwardRequest
Specified by:
receive_request_service_contexts in interface ServerRequestInterceptorOperations


send_exception

public void send_exception(ServerRequestInfo ri)
            throws ForwardRequest
Specified by:
send_exception in interface ServerRequestInterceptorOperations


send_other

public void send_other(ServerRequestInfo ri)
            throws ForwardRequest
Specified by:
send_other in interface ServerRequestInterceptorOperations


send_reply

public void send_reply(ServerRequestInfo ri)
Specified by:
send_reply in interface ServerRequestInterceptorOperations