Package org.apache.ws.security.message

Examples of org.apache.ws.security.message.WSSecEncrypt.encryptForExternalRef()


                encr.setEncryptSymmKey(false);
                encr.prepare(doc, RampartUtil.getEncryptionCrypto(rpd
                        .getRampartConfig(), rmd.getCustomClassLoader()));
               
                //Encrypt, get hold of the ref list and add it
                refList = encr.encryptForExternalRef(null, encrParts);

                if(encrTokElem != null) {
                    RampartUtil.insertSiblingAfter(rmd,
                                                encrTokElem,
                                                refList);
View Full Code Here


     * Encrypt the element (testMethod), create EncrypedData elements that reference
     * the EncryptedKey, and get a ReferenceList that can be put into the
     * Security header. Be sure that the ReferenceList is after the
     * EncryptedKey element in the Security header (strict layout)
     */
    Element refs = builder.encryptForExternalRef(null, parts);
    builder.addExternalRefElement(refs, secHeader);

    /*
     * now add (prepend) the EncryptedKey element, then a
     * BinarySecurityToken if one was setup during prepare
View Full Code Here

     * Encrypt the parts (Body), create EncrypedData elements that reference
     * the EncryptedKey, and get a ReferenceList that can be put into the
     * Security header. Be sure that the ReferenceList is after the
     * EncryptedKey element in the Security header (strict layout)
     */
    Element refs = builder.encryptForExternalRef(null, parts);
    builder.addExternalRefElement(refs, secHeader);

    /*
     * now add (prepend) the EncryptedKey element, then a
     * BinarySecurityToken if one was setup during prepare
View Full Code Here

    /*
     * Encrypt the element (testMethod), create EncrypedData elements that reference
     * the EncryptedKey, and get a ReferenceList that can be put into the EncryptedKey
     * itself as a child.
     */
    Element refs = builder.encryptForExternalRef(null, parts);
   
    /*
     * We use this method because we want the reference list to be inside the
     * EncryptedKey element
     */
 
View Full Code Here

                   
                    Element encryptedKeyElement = encr.getEncryptedKeyElement();
                                      
                    //Encrypt, get hold of the ref list and add it
                    if (externalRef) {
                        Element refList = encr.encryptForExternalRef(null, encrParts);
                        insertBeforeBottomUp(refList);
                    } else {
                        Element refList = encr.encryptForInternalRef(null, encrParts);
                   
                        // Add internal refs
View Full Code Here

                    if (encr.getBSTTokenId() != null) {
                        encr.prependBSTElementToHeader(secHeader);
                    }
                  
                  
                    Element refList = encr.encryptForExternalRef(null, encrParts);
                    if (atEnd) {
                        this.insertBeforeBottomUp(refList);
                    } else {
                        this.addDerivedKeyElement(refList);                       
                    }
View Full Code Here

                    if (encr.getBSTTokenId() != null) {
                        encr.prependBSTElementToHeader(secHeader);
                    }
                  
                  
                    Element refList = encr.encryptForExternalRef(null, encrParts);
                    if (atEnd) {
                        this.insertBeforeBottomUp(refList);
                    } else {
                        this.addDerivedKeyElement(refList);                       
                    }
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.