Package javax.security.auth.message.config

Examples of javax.security.auth.message.config.ServerAuthConfig


            boolean calledFromAuthenticate)
            throws IOException {

        boolean result = false;
        LoginConfig config = context.getLoginConfig();
        ServerAuthConfig serverAuthConfig = null;
        try {
            if (helper != null) {
                serverAuthConfig = helper.getServerAuthConfig();
            }
        } catch (Exception ex) {
View Full Code Here


            }
        };
        //?? TODO is context.getPath() the context root?
        String appContext = "server " + geronimoContext.getPath();
        AuthConfigProvider authConfigProvider = authConfigFactory.getConfigProvider(MESSAGE_LAYER, appContext, listener);
        ServerAuthConfig serverAuthConfig = null;
        JaspicCallbackHandler callbackHandler = null;
        if (authConfigProvider != null) {
            callbackHandler = new JaspicCallbackHandler(loginService);
            try {
                serverAuthConfig = authConfigProvider.getServerAuthConfig(MESSAGE_LAYER, appContext, callbackHandler);
View Full Code Here

    }

    @Override
    public ServerAuthContext getServerAuthContext(MessageInfo info, Subject s)
    throws AuthException {
  ServerAuthConfig c = (ServerAuthConfig)getAuthConfig(true);
  if (c != null) {
            addModel(info, map);
            addPolicy(info,map);
      return c.getAuthContext(c.getAuthContextID(info),s,map);
  }
  return null;
    }
View Full Code Here

      try
      {
         String contextID = PolicyContext.getContextID();
         AuthConfigFactory factory = AuthConfigFactory.getFactory();
         AuthConfigProvider provider = factory.getConfigProvider(layer,contextID,null);
         ServerAuthConfig serverConfig = provider.getServerAuthConfig(layer,contextID,
                  new AppCallbackHandler("DUMMY","DUMMY".toCharArray()))
         ServerAuthContext sctx = serverConfig.getAuthContext(contextID,
               new Subject(), new HashMap());
         if(clientSubject == null)
            clientSubject = new Subject();
         Subject serviceSubject = new Subject();
         status = sctx.validateRequest(requestMessage, clientSubject, serviceSubject);
View Full Code Here

         AuthConfigFactory factory = AuthConfigFactory.getFactory();
         AuthConfigProvider provider = factory.getConfigProvider(layer,contextID,null);
         if(provider == null)
            throw new IllegalStateException("Provider is null for "+ layer + " for "+ contextID);
        
         ServerAuthConfig serverConfig = provider.getServerAuthConfig(layer,contextID,handler)
         ServerAuthContext sctx = serverConfig.getAuthContext(contextID,
               new Subject(), new HashMap());
         if(clientSubject == null)
            clientSubject = new Subject();
         Subject serviceSubject = new Subject();
         status = sctx.validateRequest(requestMessage, clientSubject, serviceSubject);
View Full Code Here

            AuthConfigProvider authConfigProvider = authConfigFactory.getConfigProvider(MESSAGE_LAYER,appContext,listener);
 
            if (authConfigProvider != null)
            {
                ServletCallbackHandler servletCallbackHandler = new ServletCallbackHandler(loginService);
                ServerAuthConfig serverAuthConfig = authConfigProvider.getServerAuthConfig(MESSAGE_LAYER,appContext,servletCallbackHandler);
                if (serverAuthConfig != null)
                {
                    Map map = new HashMap();
                    for (String key : configuration.getInitParameterNames())
                        map.put(key,configuration.getInitParameter(key));
View Full Code Here

            boolean calledFromAuthenticate)
            throws IOException {

        boolean result = false;
        LoginConfig config = context.getLoginConfig();
        ServerAuthConfig serverAuthConfig = null;
        try {
            if (helper != null) {
                serverAuthConfig = helper.getServerAuthConfig();
            }
        } catch (Exception ex) {
View Full Code Here

    }

    @Override
    public ServerAuthContext getServerAuthContext(MessageInfo info, Subject s)
    throws AuthException {
  ServerAuthConfig c = (ServerAuthConfig)getAuthConfig(true);
  if (c != null) {
            addModel(info, map);
            addPolicy(info,map);
      return c.getAuthContext(c.getAuthContextID(info),s,map);
  }
  return null;
    }
View Full Code Here

    }

    @Override
    public ServerAuthContext getServerAuthContext(MessageInfo info, Subject s)
    throws AuthException {
  ServerAuthConfig c = (ServerAuthConfig)getAuthConfig(true);
  if (c != null) {
            addModel(info, map);
            addPolicy(info,map);
      return c.getAuthContext(c.getAuthContextID(info),s,map);
  }
  return null;
    }
View Full Code Here

      try
      {
         String contextID = PolicyContext.getContextID();
         AuthConfigFactory factory = AuthConfigFactory.getFactory();
         AuthConfigProvider provider = factory.getConfigProvider(layer,contextID,null);
         ServerAuthConfig serverConfig = provider.getServerAuthConfig(layer,contextID,
                  new AppCallbackHandler("DUMMY","DUMMY".toCharArray()))
         ServerAuthContext sctx = serverConfig.getAuthContext(contextID,
               new Subject(), new HashMap());
         if(clientSubject == null)
            clientSubject = new Subject();
         Subject serviceSubject = new Subject();
         status = sctx.validateRequest(requestMessage, clientSubject, serviceSubject);
View Full Code Here

TOP

Related Classes of javax.security.auth.message.config.ServerAuthConfig

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.