Examples of ClientAuthConfig


Examples of com.sun.enterprise.security.jauth.ClientAuthConfig

  ServiceRefPortInfo portInfo = serviceRef.getPortInfoByPort(port);
  if (portInfo != null) {
      binding = portInfo.getMessageSecurityBinding();
  }

  ClientAuthConfig config = ClientAuthConfig.getConfig
      (com.sun.enterprise.security.jauth.AuthConfig.SOAP,
       binding, null);

  if (config != null) {

      // get understood headers from auth module.
      QName[] headers = config.getMechanisms();
     
      Map properties = new HashMap();
      properties.put(MessageLayerClientHandler.CLIENT_AUTH_CONFIG, config);
            properties.put(javax.xml.ws.handler.MessageContext.WSDL_SERVICE,
                serviceRef.getServiceName());
View Full Code Here

Examples of com.sun.enterprise.security.jmac.provider.ClientAuthConfig

    }

    public HandlerInfo getMessageSecurityHandler(MessageSecurityBindingDescriptor binding, QName serviceName) {
        HandlerInfo rvalue = null;
        try {
            ClientAuthConfig config = ClientAuthConfig.getConfig(com.sun.enterprise.security.jauth.AuthConfig.SOAP, binding, null);
            if (config != null) {
                // get understood headers from auth module.
                QName[] headers = config.getMechanisms();
                Map properties = new HashMap();
                properties.put(MessageLayerClientHandler.CLIENT_AUTH_CONFIG, config);
                properties.put(javax.xml.ws.handler.MessageContext.WSDL_SERVICE, serviceName);
                rvalue = new HandlerInfo(MessageLayerClientHandler.class, properties, headers);
            }
View Full Code Here

Examples of com.sun.enterprise.security.jmac.provider.ClientAuthConfig

    }

    public HandlerInfo getMessageSecurityHandler(MessageSecurityBindingDescriptor binding, QName serviceName) {
        HandlerInfo rvalue = null;
        try {
            ClientAuthConfig config = ClientAuthConfig.getConfig(com.sun.enterprise.security.jauth.AuthConfig.SOAP, binding, null);
            if (config != null) {
                // get understood headers from auth module.
                QName[] headers = config.getMechanisms();
                Map properties = new HashMap();
                properties.put(MessageLayerClientHandler.CLIENT_AUTH_CONFIG, config);
                properties.put(javax.xml.ws.handler.MessageContext.WSDL_SERVICE, serviceName);
                rvalue = new HandlerInfo(MessageLayerClientHandler.class, properties, headers);
            }
View Full Code Here

Examples of com.sun.enterprise.security.jmac.provider.ClientAuthConfig

    }

    public HandlerInfo getMessageSecurityHandler(MessageSecurityBindingDescriptor binding, QName serviceName) {
        HandlerInfo rvalue = null;
        try {
            ClientAuthConfig config = ClientAuthConfig.getConfig(com.sun.enterprise.security.jauth.AuthConfig.SOAP, binding, null);
            if (config != null) {
                // get understood headers from auth module.
                QName[] headers = config.getMechanisms();
                Map properties = new HashMap();
                properties.put(MessageLayerClientHandler.CLIENT_AUTH_CONFIG, config);
                properties.put(javax.xml.ws.handler.MessageContext.WSDL_SERVICE, serviceName);
                rvalue = new HandlerInfo(MessageLayerClientHandler.class, properties, headers);
            }
View Full Code Here

Examples of com.sun.enterprise.security.jmac.provider.ClientAuthConfig

    }

    public HandlerInfo getMessageSecurityHandler(MessageSecurityBindingDescriptor binding, QName serviceName) {
        HandlerInfo rvalue = null;
        try {
            ClientAuthConfig config = ClientAuthConfig.getConfig(com.sun.enterprise.security.jauth.AuthConfig.SOAP, binding, null);
            if (config != null) {
                // get understood headers from auth module.
                QName[] headers = config.getMechanisms();
                Map properties = new HashMap();
                properties.put(MessageLayerClientHandler.CLIENT_AUTH_CONFIG, config);
                properties.put(javax.xml.ws.handler.MessageContext.WSDL_SERVICE, serviceName);
                rvalue = new HandlerInfo(MessageLayerClientHandler.class, properties, headers);
            }
View Full Code Here

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

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

        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

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

   }

    @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

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);
  }
    }
View Full Code Here

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

   }

    @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
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.