Package org.jboss.web.tomcat.security.login

Examples of org.jboss.web.tomcat.security.login.WebAuthentication


         SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
         SecurityAdaptor securityAdaptor = spiProvider.getSPI(SecurityAdaptorFactory.class).newSecurityAdapter();

         if (securityAdaptor != null && securityAdaptor.getPrincipal() != null && securityAdaptor.getPrincipal().getName() != null && securityAdaptor.getCredential() != null)
         {
            WebAuthentication wa = new WebAuthentication();
            wa.login(securityAdaptor.getPrincipal().getName(), securityAdaptor.getCredential());
         }
         else
         {
            log.debug("No securityAdaptor available. Cannot add credentials from the WS Security");
         }
View Full Code Here

TOP

Related Classes of org.jboss.web.tomcat.security.login.WebAuthentication

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.