Package javax.security.auth.message.config

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


    }

    public void getSessionToken(Map m,
        MessageInfo info,
        Subject s) throws AuthException {
  ClientAuthConfig c = (ClientAuthConfig) getAuthConfig(false);   
  if (c != null) {
      m.putAll(map);
            addModel(info, map);
      c.getAuthContext(c.getAuthContextID(info),s,m);
  }
  return;
    }
View Full Code Here


   {
      assertNotNull("AuthConfigFactory is ! null", factory);
      AuthConfigProvider provider = factory.getConfigProvider("TEST", "APP", null);
      assertNotNull("AuthConfigProvider is ! null", provider);
     
      ClientAuthConfig clientConfig =
         provider.getClientAuthConfig("TEST", "APP",
               new AppCallbackHandler("anil","anil".toCharArray()));
      assertNotNull("ClientAuthConfig ! null", clientConfig);
      MessageInfo mi = new GenericMessageInfo(new Object(), new Object());
      String authContextID = clientConfig.getAuthContextID(mi);
      assertNotNull("AuthContext ID != null",authContextID);
      ClientAuthContext sctx = clientConfig.getAuthContext(authContextID,
            new Subject(), new HashMap());
      assertNotNull("ClientAuthContext != null",sctx);
   }
View Full Code Here

        return (ServerAuthConfig)getAuthConfig(true);
    }

    public ClientAuthContext getClientAuthContext(MessageInfo info, Subject s)
    throws AuthException {
  ClientAuthConfig c = (ClientAuthConfig)getAuthConfig(false);
  if (c != null) {
      return c.getAuthContext(c.getAuthContextID(info),s,map);
  }
  return null;
    }
View Full Code Here

        return (ServerAuthConfig)getAuthConfig(true);
    }

    public ClientAuthContext getClientAuthContext(MessageInfo info, Subject s)
    throws AuthException {
  ClientAuthConfig c = (ClientAuthConfig)getAuthConfig(false);
  if (c != null) {
      return c.getAuthContext(c.getAuthContextID(info),s,map);
  }
  return null;
    }
View Full Code Here

   }

    @Override
    public ClientAuthContext getClientAuthContext(MessageInfo info, Subject s)
    throws AuthException {
  ClientAuthConfig c = (ClientAuthConfig)getAuthConfig(false);
  if (c != null) {
            addModel(info, map);
      return c.getAuthContext(c.getAuthContextID(info),s,map);
  }
  return null;
    }
View Full Code Here

    }

    public void getSessionToken(Map<Object, Object> m,
        MessageInfo info,
        Subject s) throws AuthException {
  ClientAuthConfig c = (ClientAuthConfig) getAuthConfig(false);   
  if (c != null) {
      m.putAll(map);
            addModel(info, map);
      c.getAuthContext(c.getAuthContextID(info),s,m);
  }
  return;
    }
View Full Code Here

    }

    @SuppressWarnings("unchecked")
    public  ClientAuthConfig getClientAuthConfig(String layer, String appContext, CallbackHandler callbackHandler) throws AuthException {
       
        ClientAuthConfig clientConfig = null;
        this.rLock.lock();
        try {
            clientConfig = (ClientAuthConfig)this.clientConfigMap.get(appContext);
            if (clientConfig != null) {
                    return clientConfig;
View Full Code Here

TOP

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

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.