Package com.sun.enterprise.iiop.security

Examples of com.sun.enterprise.iiop.security.SecServerRequestInterceptor


                        "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);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.iiop.security.SecServerRequestInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.