Examples of TomcatJASPICallbackHandler


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
Copyright © 2018 www.massapi.com. 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.