Package com.sun.enterprise.deployment.runtime.common

Examples of com.sun.enterprise.deployment.runtime.common.MessageSecurityBindingDescriptor


    public HandlerInfo getMessageSecurityHandlerInfo(QName port) throws Exception
    {
  HandlerInfo rvalue = null;

  MessageSecurityBindingDescriptor binding = null;
  ServiceRefPortInfo portInfo = serviceRef.getPortInfoByPort(port);
  if (portInfo != null) {
      binding = portInfo.getMessageSecurityBinding();
  }
View Full Code Here


                (serviceRefPortInfoRuntimeNode,
                 WebServicesTagNames.CALL_PROPERTY, next);
        }

        // message-security-binding
        MessageSecurityBindingDescriptor messageSecBindingDesc =
            desc.getMessageSecurityBinding();
        if (messageSecBindingDesc != null) {
            MessageSecurityBindingNode messageSecBindingNode =
                new MessageSecurityBindingNode();
            messageSecBindingNode.writeDescriptor(serviceRefPortInfoRuntimeNode, WebServicesTagNames.MESSAGE_SECURITY_BINDING, messageSecBindingDesc);
View Full Code Here

    /**
    * @return the descriptor instance to associate with this XMLNode
    */   
    public Object getDescriptor() {
       if (descriptor == null) {
            descriptor = new MessageSecurityBindingDescriptor();
        }
        return descriptor;
    }    
View Full Code Here

            appendTextChild(loginConfigNode, RuntimeTagNames.REALM,
                            endpoint.getRealm());
        }

        // message-security-binding
        MessageSecurityBindingDescriptor messageSecBindingDesc =
            endpoint.getMessageSecurityBinding();
        if (messageSecBindingDesc != null) {
            MessageSecurityBindingNode messageSecBindingNode =
                new MessageSecurityBindingNode();
            messageSecBindingNode.writeDescriptor(endpointNode, WebServicesTagNames.MESSAGE_SECURITY_BINDING, messageSecBindingDesc);
View Full Code Here

      
  if (properties == null) {
      return null;
  }

  MessageSecurityBindingDescriptor binding = null;

  WebServiceEndpoint e = (WebServiceEndpoint)
      properties.get("SERVICE_ENDPOINT");

  if (e != null) {
      binding = e.getMessageSecurityBinding();
  } else {
      ServiceReferenceDescriptor s = (ServiceReferenceDescriptor)
    properties.get("SERVICE_REF");
      if (s != null) {
    WSDLPort p = (WSDLPort) properties.get("WSDL_MODEL");
    QName portName = null;
    if (p != null) {
        portName = p.getName();
    }
    if (portName != null) {
        ServiceRefPortInfo i = s.getPortInfoByPort(portName);
        if (i != null) {
      binding = i.getMessageSecurityBinding();
        }
    }
      }
  }

  if (binding != null) {
      String bindingLayer = binding.getAttributeValue
    (MessageSecurityBindingDescriptor.AUTH_LAYER);
      if (bindingLayer == null || layer.equals(bindingLayer)) {
    return binding;
      }
  }
View Full Code Here

  if (factory == null) {
      return false;
  }

  MessageSecurityBindingDescriptor binding =
      AuthMessagePolicy.getMessageSecurityBinding
      (PipeConstants.SOAP_LAYER,map);

  if (binding != null) {
      if (!hasExactMatchAuthProvider()) {
View Full Code Here

    private static final String DEFAULT_WEBSERVICES_PROVIDER=
            "com.sun.xml.wss.provider.wsit.WSITAuthConfigProvider";
   
     public MessageSecurityBindingDescriptor getBinding(ServiceReferenceDescriptor svcRef, Map properties) {
        MessageSecurityBindingDescriptor binding = null;
        WSDLPort p = (WSDLPort) properties.get("WSDL_MODEL");
        QName portName = null;
        if (p != null) {
            portName = p.getName();
        }
View Full Code Here

    public HandlerInfo getMessageSecurityHandlerInfo(QName port) throws Exception
    {
        HandlerInfo rvalue = null;

        MessageSecurityBindingDescriptor binding = null;
        ServiceRefPortInfo portInfo = serviceRef.getPortInfoByPort(port);
        if (portInfo != null) {
            binding = portInfo.getMessageSecurityBinding();
        }
        if (secServ != null) {
View Full Code Here

  if (factory == null) {
      return false;
  }

  MessageSecurityBindingDescriptor binding =
      AuthMessagePolicy.getMessageSecurityBinding
      (PipeConstants.SOAP_LAYER,map);

  if (binding != null) {
      if (!hasExactMatchAuthProvider()) {
View Full Code Here

  if (factory == null) {
      return false;
  }

  MessageSecurityBindingDescriptor binding =
      AuthMessagePolicy.getMessageSecurityBinding
      (PipeConstants.SOAP_LAYER,map);

  if (binding != null) {
      if (!hasExactMatchAuthProvider()) {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.runtime.common.MessageSecurityBindingDescriptor

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.