提交 ac729b08 编写于 作者: B bgopularam

8149029: Secure validation of XML based digital signature always enabled when...

8149029: Secure validation of XML based digital signature always enabled when checking wrapping attacks
Summary: Trigger xml digsig validation based on value of property org.jcp.xml.dsig.secureValidation
Reviewed-by: mullan
Contributed-by: bhanu.prakash.gopularam@oracle.com
上级 ae324003
......@@ -21,7 +21,7 @@
* under the License.
*/
/*
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
*/
/*
* $Id: DOMURIDereferencer.java 1231033 2012-01-13 12:12:12Z coheigea $
......@@ -111,7 +111,8 @@ public class DOMURIDereferencer implements URIDereferencer {
try {
ResourceResolver apacheResolver =
ResourceResolver.getInstance(uriAttr, baseURI, secVal);
XMLSignatureInput in = apacheResolver.resolve(uriAttr, baseURI);
XMLSignatureInput in = apacheResolver.resolve(uriAttr,
baseURI, secVal);
if (in.isOctetStream()) {
return new ApacheOctetStreamData(in);
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册