org.jacorb.security.sas
Class SASClientInterceptor

java.lang.Object
  extended byorg.omg.CORBA.LocalObject
      extended byorg.jacorb.security.sas.SASClientInterceptor
All Implemented Interfaces:
ClientRequestInterceptor, ClientRequestInterceptorOperations, org.apache.avalon.framework.configuration.Configurable, IDLEntity, Interceptor, InterceptorOperations, Object, java.io.Serializable

public class SASClientInterceptor
extends LocalObject
implements ClientRequestInterceptor, org.apache.avalon.framework.configuration.Configurable

This is the SAS Client Security Service (CSS) Interceptor

Version:
$Id: SASClientInterceptor.java,v 1.26 2005/06/10 10:13:13 andre.spiegel Exp $
Author:
David Robison
See Also:
Serialized Form

Field Summary
protected  java.util.Hashtable atlasCache
           
protected  Codec codec
           
protected  byte[] contextToken
           
protected  java.lang.String DEFAULT_NAME
           
protected  java.lang.String name
           
protected  ISASContext sasContext
           
protected static int SecurityAttributeService
           
protected  boolean useStateful
           
 
Constructor Summary
SASClientInterceptor(ORBInitInfo info)
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 void destroy()
           
protected  AuthorizationElement[] getATLASTokens(ORB orb, CompoundSecMechList csmList)
           
protected  Any makeEstablishContext(ORB orb, long client_context_id, AuthorizationElement[] authorization_token, IdentityToken identity_token, byte[] client_authentication_token)
           
protected  Any makeMessageInContext(ORB orb, long client_context_id, boolean discard_context)
           
 java.lang.String name()
           
 void receive_exception(ClientRequestInfo ri)
           
 void receive_other(ClientRequestInfo ri)
           
 void receive_reply(ClientRequestInfo ri)
           
 void send_poll(ClientRequestInfo ri)
           
 void send_request(ClientRequestInfo ri)
           
 void setContextToken(byte[] contextToken)
           
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _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
 
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_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Field Detail

SecurityAttributeService

protected static final int SecurityAttributeService
See Also:
Constant Field Values

DEFAULT_NAME

protected final java.lang.String DEFAULT_NAME
See Also:
Constant Field Values

codec

protected Codec codec

name

protected java.lang.String name

contextToken

protected byte[] contextToken

useStateful

protected boolean useStateful

atlasCache

protected java.util.Hashtable atlasCache

sasContext

protected ISASContext sasContext
Constructor Detail

SASClientInterceptor

public SASClientInterceptor(ORBInitInfo info)
                     throws UnknownEncoding,
                            org.apache.avalon.framework.configuration.ConfigurationException
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

setContextToken

public void setContextToken(byte[] contextToken)

name

public java.lang.String name()
Specified by:
name in interface InterceptorOperations

destroy

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

send_request

public void send_request(ClientRequestInfo ri)
                  throws ForwardRequest
Specified by:
send_request in interface ClientRequestInterceptorOperations
Throws:
ForwardRequest

send_poll

public void send_poll(ClientRequestInfo ri)
Specified by:
send_poll in interface ClientRequestInterceptorOperations

receive_reply

public void receive_reply(ClientRequestInfo ri)
Specified by:
receive_reply in interface ClientRequestInterceptorOperations

receive_exception

public void receive_exception(ClientRequestInfo ri)
                       throws ForwardRequest
Specified by:
receive_exception in interface ClientRequestInterceptorOperations
Throws:
ForwardRequest

receive_other

public void receive_other(ClientRequestInfo ri)
                   throws ForwardRequest
Specified by:
receive_other in interface ClientRequestInterceptorOperations
Throws:
ForwardRequest

makeEstablishContext

protected Any makeEstablishContext(ORB orb,
                                   long client_context_id,
                                   AuthorizationElement[] authorization_token,
                                   IdentityToken identity_token,
                                   byte[] client_authentication_token)

makeMessageInContext

protected Any makeMessageInContext(ORB orb,
                                   long client_context_id,
                                   boolean discard_context)

getATLASTokens

protected AuthorizationElement[] getATLASTokens(ORB orb,
                                                CompoundSecMechList csmList)
                                         throws NO_PERMISSION
Throws:
NO_PERMISSION