Package org.jboss.security

Examples of org.jboss.security.GeneralizedAuthenticationManager


   public Principal authenticate(Request request, HttpServletResponse response,
         LoginConfig config) throws Exception
   {
      log.debug("ExtendedSecurityMgrRealm:authenticate");
      MessageInfo authParam = new GenericMessageInfo(request, request.getResponse());
      GeneralizedAuthenticationManager gam = getAuthenticationManager();
      Subject clientSubject = new Subject();
      Subject serviceSubject = new Subject();
      Map sharedState = getSharedState(request,config);
      AuthStatus status = AuthStatus.FAILURE;
      while(!status.equals(AuthStatus.SEND_CONTINUE))
      {
         status = gam.validateRequest(authParam, clientSubject, serviceSubject);
         if(status.equals(AuthStatus.FAILURE))
            throw new SecurityException("Authentication failed");
      }
      Principal authenticatedPrincipal = this.getAuthenticatedPrincipal(clientSubject);
      return null;
View Full Code Here


   }
  
   private AuthorizationManager getAuthorizationManager() throws Exception
   {
      MBeanServer server = MBeanServerLocator.locateJBoss();
      GeneralizedAuthenticationManager gam = this.getAuthenticationManager();
      String securityDomain = gam.getSecurityDomain();
      return (AuthorizationManager)server.invoke(this.authorizationManagerService,
            "getAuthorizationManager",
            new String[]{securityDomain}, new String[]{"java.lang.String"});
   }
View Full Code Here

   public Principal authenticate(Request request, Response response,
         LoginConfig config) throws Exception
   {
      log.debug("ExtendedSecurityMgrRealm:authenticate");
      MessageInfo authParam = new GenericMessageInfo(request,response);
      GeneralizedAuthenticationManager gam = getAuthenticationManager();
      Subject clientSubject = new Subject();
      Subject serviceSubject = new Subject();
      Map sharedState = getSharedState(request,config);
      AuthStatus status = AuthStatus.FAILURE;
      while(!status.equals(AuthStatus.SEND_CONTINUE))
      {
         status = gam.validateRequest(authParam, clientSubject, serviceSubject);
         if(status.equals(AuthStatus.FAILURE))
            throw new SecurityException("Authentication failed");
      }
      Principal authenticatedPrincipal = this.getAuthenticatedPrincipal(clientSubject);
      return null;
View Full Code Here

   }
  
   private AuthorizationManager getAuthorizationManager() throws Exception
   {
      MBeanServer server = MBeanServerLocator.locateJBoss();
      GeneralizedAuthenticationManager gam = this.getAuthenticationManager();
      String securityDomain = gam.getSecurityDomain();
      return (AuthorizationManager)server.invoke(this.authorizationManagerService,
            "getAuthorizationManager",
            new String[]{securityDomain}, new String[]{"java.lang.String"});
   }
View Full Code Here

TOP

Related Classes of org.jboss.security.GeneralizedAuthenticationManager

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.