Package org.jboss.web.tomcat.security.jaspi

Examples of org.jboss.web.tomcat.security.jaspi.TomcatJASPICallbackHandler


   protected void registerWithCallbackHandler(Principal userPrincipal, String username,
         String password)
   {
      if(this.callbackHandler instanceof TomcatJASPICallbackHandler)
      {
         TomcatJASPICallbackHandler cbh = (TomcatJASPICallbackHandler) callbackHandler;
        
         PasswordValidationCallback passwordValidationCallback =
            new PasswordValidationCallback(null,username,password.toCharArray());  
         cbh.setPasswordValidationCallback(passwordValidationCallback);
        
         cbh.setCallerPrincipalCallback(new CallerPrincipalCallback(null,userPrincipal));
      }
      else
         throw new RuntimeException(" Unsupported Callback handler "
               + this.callbackHandler.getClass().getCanonicalName());
   }
View Full Code Here

TOP

Related Classes of org.jboss.web.tomcat.security.jaspi.TomcatJASPICallbackHandler

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.