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

Print this page

        

*** 180,190 **** } } this.type = type; this.id = id; if (digestValue != null) { ! this.digestValue = (byte[])digestValue.clone(); this.digested = true; } this.appliedTransformData = result; this.provider = provider; } --- 180,190 ---- } } this.type = type; this.id = id; if (digestValue != null) { ! this.digestValue = digestValue.clone(); this.digested = true; } this.appliedTransformData = result; this.provider = provider; }
*** 296,311 **** public List getTransforms() { return Collections.unmodifiableList(allTransforms); } public byte[] getDigestValue() { ! return (digestValue == null ? null : (byte[])digestValue.clone()); } public byte[] getCalculatedDigestValue() { return (calcDigestValue == null ? null ! : (byte[])calcDigestValue.clone()); } public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException { --- 296,311 ---- public List getTransforms() { return Collections.unmodifiableList(allTransforms); } public byte[] getDigestValue() { ! return (digestValue == null ? null : digestValue.clone()); } public byte[] getCalculatedDigestValue() { return (calcDigestValue == null ? null ! : calcDigestValue.clone()); } public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException {