Package org.apache.cxf.jaxrs.security

Examples of org.apache.cxf.jaxrs.security.KerberosAuthenticationFilter


        JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
        sf.setResourceClasses(BookStore.class);
        //default lifecycle is per-request, change it to singleton
        sf.setResourceProvider(BookStore.class,
                               new SingletonResourceProvider(new BookStore()));
        KerberosAuthenticationFilter filter = new KerberosAuthenticationFilter();
        filter.setLoginContextName("KerberosServer");
        filter.setCallbackHandler(getCallbackHandler("HTTP/localhost", "http"));
        //filter.setLoginContextName("KerberosServerKeyTab");
        //filter.setServicePrincipalName("HTTP/ktab");
        sf.setProvider(filter);
        sf.setAddress("http://localhost:" + PORT + "/");
     
View Full Code Here

TOP

Related Classes of org.apache.cxf.jaxrs.security.KerberosAuthenticationFilter

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.