ClientRequestInterceptor creq;
ServerRequestInterceptor sreq;
if( clientSecInterceptor == null ) {
creq = new SecClientRequestInterceptor(
"SecClientRequestInterceptor", codec);
}
else {
try {
Class cInterceptorClass =
Class.forName( clientSecInterceptor );
// Find two-parameter constructor:
Class[] paramTypes = new Class[2];
paramTypes[0] = java.lang.String.class;
paramTypes[1] = org.omg.IOP.Codec.class;
Object[] params = new Object[2];
params[0] = "SecClientRequestInterceptor";
params[1] = codec;
Constructor constructor = cInterceptorClass.getConstructor(
paramTypes );
creq = (ClientRequestInterceptor)
constructor.newInstance( params );
}
catch( Exception e ) {
if (_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE,"Exception registering security client request receptor",e);
_logger.log(Level.FINE,"Going to register default security client request interceptor");
}
creq = new SecClientRequestInterceptor(
"SecClientRequestInterceptor", codec);
}
}
if( serverSecInterceptor == null ) {