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

Print this page




 189                     + "references per Manifest are allowed with secure validation";
 190                 throw new MarshalException(error);
 191             }
 192             refElem = DOMUtils.getNextSiblingElement(refElem);
 193         }
 194         references = Collections.unmodifiableList(refList);
 195     }
 196 
 197     public CanonicalizationMethod getCanonicalizationMethod() {
 198         return canonicalizationMethod;
 199     }
 200 
 201     public SignatureMethod getSignatureMethod() {
 202         return signatureMethod;
 203     }
 204 
 205     public String getId() {
 206         return id;
 207     }
 208 
 209     public List getReferences() {
 210         return references;
 211     }
 212 
 213     public InputStream getCanonicalizedData() {
 214         return canonData;
 215     }
 216 
 217     public void canonicalize(XMLCryptoContext context, ByteArrayOutputStream bos)
 218         throws XMLSignatureException {
 219         if (context == null) {
 220             throw new NullPointerException("context cannot be null");
 221         }
 222 
 223         OutputStream os = new UnsyncBufferedOutputStream(bos);
 224         try {
 225             os.close();
 226         } catch (IOException e) {
 227             if (log.isLoggable(java.util.logging.Level.FINE)) {
 228                 log.log(java.util.logging.Level.FINE, e.getMessage(), e);
 229             }




 189                     + "references per Manifest are allowed with secure validation";
 190                 throw new MarshalException(error);
 191             }
 192             refElem = DOMUtils.getNextSiblingElement(refElem);
 193         }
 194         references = Collections.unmodifiableList(refList);
 195     }
 196 
 197     public CanonicalizationMethod getCanonicalizationMethod() {
 198         return canonicalizationMethod;
 199     }
 200 
 201     public SignatureMethod getSignatureMethod() {
 202         return signatureMethod;
 203     }
 204 
 205     public String getId() {
 206         return id;
 207     }
 208 
 209     public List<Reference> getReferences() {
 210         return references;
 211     }
 212 
 213     public InputStream getCanonicalizedData() {
 214         return canonData;
 215     }
 216 
 217     public void canonicalize(XMLCryptoContext context, ByteArrayOutputStream bos)
 218         throws XMLSignatureException {
 219         if (context == null) {
 220             throw new NullPointerException("context cannot be null");
 221         }
 222 
 223         OutputStream os = new UnsyncBufferedOutputStream(bos);
 224         try {
 225             os.close();
 226         } catch (IOException e) {
 227             if (log.isLoggable(java.util.logging.Level.FINE)) {
 228                 log.log(java.util.logging.Level.FINE, e.getMessage(), e);
 229             }