Package com.sun.xml.ws.security.opt.impl.attachment

Examples of com.sun.xml.ws.security.opt.impl.attachment.AttachmentSetImpl


        if (bodyTag == null) {
            bodyTag = new TagInfoset(rdr);
        }
        // FIXME: RJE -- remove cast once StreamMessage constr can take MessageHeaders
        Message msg = new StreamMessage(envelopeTag, headerTag, new AttachmentSetImpl(), (HeaderList) headers, bodyTag, rdr, soapVersion);
        ctx.setPVMessage(msg);
    }
View Full Code Here


        if (bodyTag == null) {
            bodyTag = new TagInfoset(rdr);
        }
        // FIXME: RJE -- remove cast once StreamMessage constr can take MessageHeaders
        Message msg = new StreamMessage(envelopeTag, headerTag, new AttachmentSetImpl(), (HeaderList) headers, bodyTag, rdr, soapVersion);
        ctx.setPVMessage(msg);
    }
View Full Code Here

        securedBody = null;
    }

    public AttachmentSet getAttachments() {
        if (attachments == null) {
            attachments = new AttachmentSetImpl();
        }
        return attachments;
    }
View Full Code Here

        this.attachments = attachments;
    }
   
    public AttachmentSet getAttachmentSet(){
        if(attachments == null){
            attachments = new AttachmentSetImpl();
        }
        return attachments;
    }
View Full Code Here

        return attachments;
    }
   
    public AttachmentSet getDecryptedAttachmentSet(){
        if(decryptedAttachments == null){
            decryptedAttachments = new AttachmentSetImpl();
        }
        return decryptedAttachments;
    }
View Full Code Here

        if(as != null && as.isEmpty()){
            logger.log(Level.WARNING, LogStringsMessages.WSS_1244_NO_ATTACHMENT_FOUND());
            return;
        }
        String dataEncAlg =  SecurityUtil.getDataEncryptionAlgo(context);
        AttachmentSet newAttachmentSet = new AttachmentSetImpl();
        for(Attachment attachment : as){
            SecurityHeaderElement ed = (SecurityHeaderElement)wsf.createEncryptedData(context.generateID(), attachment, dataEncAlg, ki, key, (EncryptionTarget)target);
            context.getSecurityHeader().add(ed);
            edList.add(ed);
            Attachment encryptedAttachment = new EncryptedAttachment(attachment, dataEncAlg, key);
            newAttachmentSet.add(encryptedAttachment);
        }
        message.setAttachments(newAttachmentSet);
    }
View Full Code Here

TOP

Related Classes of com.sun.xml.ws.security.opt.impl.attachment.AttachmentSetImpl

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.