"SecClientRequestInterceptor", codec);
}
}
if( serverSecInterceptor == null ) {
sreq = new SecServerRequestInterceptor(
"SecServerRequestInterceptor", codec);
}
else {
try {
Class sInterceptorClass =
Class.forName( serverSecInterceptor );
// Try two-parameter form of 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] = "SecServerRequestInterceptor";
params[1] = codec;
Constructor constructor = sInterceptorClass.getConstructor(
paramTypes );
sreq = (ServerRequestInterceptor)
constructor.newInstance( params );
}
catch( Exception e ) {
if (_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE,"Exception registering security server request receptor",e);
_logger.log(Level.FINE,"Going to register default security server request interceptor");
}
sreq = new SecServerRequestInterceptor(
"SecServerRequestInterceptor", codec);
}
}
info.add_client_request_interceptor(creq);