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

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


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


        if (!messageSecDescs.isEmpty()) {
            MessageSecurityNode messageSecurityNode =
                new MessageSecurityNode();
            for (Iterator messageSecIterator = messageSecDescs.iterator();
                messageSecIterator.hasNext();) {
                MessageSecurityDescriptor messageSecDesc =
                    (MessageSecurityDescriptor) messageSecIterator.next();
                messageSecurityNode.writeDescriptor(messageSecurityBindingNode, WebServicesTagNames.MESSAGE_SECURITY, messageSecDesc);
            }
        }
View Full Code Here

            }

            if(msgSecDescs != null) {
                if (onePolicy) {
                    if (msgSecDescs.size() > 0) {
                        MessageSecurityDescriptor msd = msgSecDescs.get(0);
                        requestPolicy = getMessagePolicy(
                                msd.getRequestProtectionDescriptor());
                        responsePolicy = getMessagePolicy(
                                msd.getResponseProtectionDescriptor());
                    }
                } else { // try to match
                    MessageSecurityDescriptor matchMsd = null;
                    for (int i = 0; i < msgSecDescs.size(); i++) {
                        MessageSecurityDescriptor msd = msgSecDescs.get(i);
                        ArrayList msgDescs = msd.getMessageDescriptors();
                        for (int j = i + 1; j < msgDescs.size(); j++) {
                            //XXX don't know how to get JavaMethod from operation
                            MessageDescriptor msgDesc =
                                    (MessageDescriptor) msgDescs.get(j);
                            String opName = msgDesc.getOperationName();
View Full Code Here

      return true;
  }

        for (int i = 0; i < msgSecDescs.size(); i++) {

            MessageSecurityDescriptor msd =
                (MessageSecurityDescriptor) msgSecDescs.get(i);

            // determine if all the different messageSecurityDesriptors have the
            // same policy which will help us interpret the effective policy if
            // we cannot determine the opcode of a request at runtime.
View Full Code Here

TOP

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

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.