src/share/classes/org/jcp/xml/dsig/internal/dom/DOMXMLObject.java

Print this page




 122                     continue;
 123                 } else if (tag.equals("SignatureProperties")) {
 124                     content.add(new DOMSignatureProperties(childElem, context));
 125                     continue;
 126                 } else if (tag.equals("X509Data")) {
 127                     content.add(new DOMX509Data(childElem));
 128                     continue;
 129                 }
 130                 //@@@FIXME: check for other dsig structures
 131             }
 132             content.add(new javax.xml.crypto.dom.DOMStructure(child));
 133         }
 134         if (content.isEmpty()) {
 135             this.content = Collections.emptyList();
 136         } else {
 137             this.content = Collections.unmodifiableList(content);
 138         }
 139         this.objectElem = objElem;
 140     }
 141 
 142     public List getContent() {
 143         return content;
 144     }
 145 
 146     public String getId() {
 147         return id;
 148     }
 149 
 150     public String getMimeType() {
 151         return mimeType;
 152     }
 153 
 154     public String getEncoding() {
 155         return encoding;
 156     }
 157 
 158     public void marshal(Node parent, String dsPrefix, DOMCryptoContext context)
 159         throws MarshalException {
 160         Document ownerDoc = DOMUtils.getOwnerDocument(parent);
 161 
 162         Element objElem = objectElem != null ? objectElem : null;




 122                     continue;
 123                 } else if (tag.equals("SignatureProperties")) {
 124                     content.add(new DOMSignatureProperties(childElem, context));
 125                     continue;
 126                 } else if (tag.equals("X509Data")) {
 127                     content.add(new DOMX509Data(childElem));
 128                     continue;
 129                 }
 130                 //@@@FIXME: check for other dsig structures
 131             }
 132             content.add(new javax.xml.crypto.dom.DOMStructure(child));
 133         }
 134         if (content.isEmpty()) {
 135             this.content = Collections.emptyList();
 136         } else {
 137             this.content = Collections.unmodifiableList(content);
 138         }
 139         this.objectElem = objElem;
 140     }
 141 
 142     public List<XMLStructure> getContent() {
 143         return content;
 144     }
 145 
 146     public String getId() {
 147         return id;
 148     }
 149 
 150     public String getMimeType() {
 151         return mimeType;
 152     }
 153 
 154     public String getEncoding() {
 155         return encoding;
 156     }
 157 
 158     public void marshal(Node parent, String dsPrefix, DOMCryptoContext context)
 159         throws MarshalException {
 160         Document ownerDoc = DOMUtils.getOwnerDocument(parent);
 161 
 162         Element objElem = objectElem != null ? objectElem : null;