Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
16184010
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
16184010
编写于
6月 16, 2014
作者:
M
mullan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8046044: Fix raw and unchecked lint warnings in XML Signature Impl
Reviewed-by: darcy Contributed-by: ebaron@redhat.com
上级
d088b4be
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
56 addition
and
48 deletion
+56
-48
src/share/classes/org/jcp/xml/dsig/internal/dom/ApacheNodeSetData.java
...sses/org/jcp/xml/dsig/internal/dom/ApacheNodeSetData.java
+2
-2
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMKeyInfo.java
...are/classes/org/jcp/xml/dsig/internal/dom/DOMKeyInfo.java
+2
-2
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMKeyInfoFactory.java
...sses/org/jcp/xml/dsig/internal/dom/DOMKeyInfoFactory.java
+7
-6
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMKeyValue.java
...re/classes/org/jcp/xml/dsig/internal/dom/DOMKeyValue.java
+7
-6
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMManifest.java
...re/classes/org/jcp/xml/dsig/internal/dom/DOMManifest.java
+6
-1
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMPGPData.java
...are/classes/org/jcp/xml/dsig/internal/dom/DOMPGPData.java
+2
-2
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMReference.java
...e/classes/org/jcp/xml/dsig/internal/dom/DOMReference.java
+2
-2
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMRetrievalMethod.java
...ses/org/jcp/xml/dsig/internal/dom/DOMRetrievalMethod.java
+2
-2
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSignatureProperties.java
...org/jcp/xml/dsig/internal/dom/DOMSignatureProperties.java
+2
-2
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSignatureProperty.java
...s/org/jcp/xml/dsig/internal/dom/DOMSignatureProperty.java
+2
-2
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSignedInfo.java
.../classes/org/jcp/xml/dsig/internal/dom/DOMSignedInfo.java
+1
-1
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSubTreeData.java
...classes/org/jcp/xml/dsig/internal/dom/DOMSubTreeData.java
+2
-2
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMX509Data.java
...re/classes/org/jcp/xml/dsig/internal/dom/DOMX509Data.java
+2
-2
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMXMLObject.java
...e/classes/org/jcp/xml/dsig/internal/dom/DOMXMLObject.java
+2
-2
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMXMLSignature.java
...lasses/org/jcp/xml/dsig/internal/dom/DOMXMLSignature.java
+4
-3
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMXMLSignatureFactory.java
...org/jcp/xml/dsig/internal/dom/DOMXMLSignatureFactory.java
+11
-11
未找到文件。
src/share/classes/org/jcp/xml/dsig/internal/dom/ApacheNodeSetData.java
浏览文件 @
16184010
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* under the License.
* under the License.
*/
*/
/*
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
*/
*/
/*
/*
* $Id: ApacheNodeSetData.java 1203890 2011-11-18 22:47:56Z mullan $
* $Id: ApacheNodeSetData.java 1203890 2011-11-18 22:47:56Z mullan $
...
@@ -47,7 +47,7 @@ public class ApacheNodeSetData implements ApacheData, NodeSetData {
...
@@ -47,7 +47,7 @@ public class ApacheNodeSetData implements ApacheData, NodeSetData {
this
.
xi
=
xi
;
this
.
xi
=
xi
;
}
}
public
Iterator
iterator
()
{
public
Iterator
<
Node
>
iterator
()
{
// If nodefilters are set, must execute them first to create node-set
// If nodefilters are set, must execute them first to create node-set
if
(
xi
.
getNodeFilters
()
!=
null
&&
!
xi
.
getNodeFilters
().
isEmpty
())
{
if
(
xi
.
getNodeFilters
()
!=
null
&&
!
xi
.
getNodeFilters
().
isEmpty
())
{
return
Collections
.
unmodifiableSet
return
Collections
.
unmodifiableSet
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMKeyInfo.java
浏览文件 @
16184010
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* under the License.
* under the License.
*/
*/
/*
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
*/
*/
/*
/*
* $Id: DOMKeyInfo.java 1333869 2012-05-04 10:42:44Z coheigea $
* $Id: DOMKeyInfo.java 1333869 2012-05-04 10:42:44Z coheigea $
...
@@ -138,7 +138,7 @@ public final class DOMKeyInfo extends DOMStructure implements KeyInfo {
...
@@ -138,7 +138,7 @@ public final class DOMKeyInfo extends DOMStructure implements KeyInfo {
return
id
;
return
id
;
}
}
public
List
getContent
()
{
public
List
<
XMLStructure
>
getContent
()
{
return
keyInfoTypes
;
return
keyInfoTypes
;
}
}
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMKeyInfoFactory.java
浏览文件 @
16184010
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* under the License.
* under the License.
*/
*/
/*
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
*/
*/
/*
/*
* $Id: DOMKeyInfoFactory.java 1333869 2012-05-04 10:42:44Z coheigea $
* $Id: DOMKeyInfoFactory.java 1333869 2012-05-04 10:42:44Z coheigea $
...
@@ -48,11 +48,12 @@ public final class DOMKeyInfoFactory extends KeyInfoFactory {
...
@@ -48,11 +48,12 @@ public final class DOMKeyInfoFactory extends KeyInfoFactory {
public
DOMKeyInfoFactory
()
{
}
public
DOMKeyInfoFactory
()
{
}
@SuppressWarnings
(
"rawtypes"
)
public
KeyInfo
newKeyInfo
(
List
content
)
{
public
KeyInfo
newKeyInfo
(
List
content
)
{
return
newKeyInfo
(
content
,
null
);
return
newKeyInfo
(
content
,
null
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
KeyInfo
newKeyInfo
(
List
content
,
String
id
)
{
public
KeyInfo
newKeyInfo
(
List
content
,
String
id
)
{
return
new
DOMKeyInfo
(
content
,
id
);
return
new
DOMKeyInfo
(
content
,
id
);
}
}
...
@@ -78,12 +79,12 @@ public final class DOMKeyInfoFactory extends KeyInfoFactory {
...
@@ -78,12 +79,12 @@ public final class DOMKeyInfoFactory extends KeyInfoFactory {
return
newPGPData
(
keyId
,
null
,
null
);
return
newPGPData
(
keyId
,
null
,
null
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
PGPData
newPGPData
(
byte
[]
keyId
,
byte
[]
keyPacket
,
List
other
)
{
public
PGPData
newPGPData
(
byte
[]
keyId
,
byte
[]
keyPacket
,
List
other
)
{
return
new
DOMPGPData
(
keyId
,
keyPacket
,
other
);
return
new
DOMPGPData
(
keyId
,
keyPacket
,
other
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
PGPData
newPGPData
(
byte
[]
keyPacket
,
List
other
)
{
public
PGPData
newPGPData
(
byte
[]
keyPacket
,
List
other
)
{
return
new
DOMPGPData
(
keyPacket
,
other
);
return
new
DOMPGPData
(
keyPacket
,
other
);
}
}
...
@@ -92,7 +93,7 @@ public final class DOMKeyInfoFactory extends KeyInfoFactory {
...
@@ -92,7 +93,7 @@ public final class DOMKeyInfoFactory extends KeyInfoFactory {
return
newRetrievalMethod
(
uri
,
null
,
null
);
return
newRetrievalMethod
(
uri
,
null
,
null
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
RetrievalMethod
newRetrievalMethod
(
String
uri
,
String
type
,
public
RetrievalMethod
newRetrievalMethod
(
String
uri
,
String
type
,
List
transforms
)
{
List
transforms
)
{
if
(
uri
==
null
)
{
if
(
uri
==
null
)
{
...
@@ -101,7 +102,7 @@ public final class DOMKeyInfoFactory extends KeyInfoFactory {
...
@@ -101,7 +102,7 @@ public final class DOMKeyInfoFactory extends KeyInfoFactory {
return
new
DOMRetrievalMethod
(
uri
,
type
,
transforms
);
return
new
DOMRetrievalMethod
(
uri
,
type
,
transforms
);
}
}
@SuppressWarnings
(
"
unchecked
"
)
@SuppressWarnings
(
"
rawtypes
"
)
public
X509Data
newX509Data
(
List
content
)
{
public
X509Data
newX509Data
(
List
content
)
{
return
new
DOMX509Data
(
content
);
return
new
DOMX509Data
(
content
);
}
}
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMKeyValue.java
浏览文件 @
16184010
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* under the License.
* under the License.
*/
*/
/*
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
*/
*/
/*
/*
* $Id: DOMKeyValue.java 1333415 2012-05-03 12:03:51Z coheigea $
* $Id: DOMKeyValue.java 1333415 2012-05-03 12:03:51Z coheigea $
...
@@ -364,15 +364,16 @@ public abstract class DOMKeyValue extends DOMStructure implements KeyValue {
...
@@ -364,15 +364,16 @@ public abstract class DOMKeyValue extends DOMStructure implements KeyValue {
}
}
void
getMethods
()
throws
ClassNotFoundException
,
NoSuchMethodException
{
void
getMethods
()
throws
ClassNotFoundException
,
NoSuchMethodException
{
Class
c
=
Class
.
forName
(
"sun.security.ec.ECParameters"
);
Class
<?>
c
=
Class
.
forName
(
"sun.security.ec.ECParameters"
);
Class
[]
params
=
new
Class
[]
{
ECPoint
.
class
,
EllipticCurve
.
class
};
Class
<?>[]
params
=
new
Class
<?>[]
{
ECPoint
.
class
,
EllipticCurve
.
class
};
encodePoint
=
c
.
getMethod
(
"encodePoint"
,
params
);
encodePoint
=
c
.
getMethod
(
"encodePoint"
,
params
);
params
=
new
Class
[]
{
ECParameterSpec
.
class
};
params
=
new
Class
<?>
[]
{
ECParameterSpec
.
class
};
getCurveName
=
c
.
getMethod
(
"getCurveName"
,
params
);
getCurveName
=
c
.
getMethod
(
"getCurveName"
,
params
);
params
=
new
Class
[]
{
byte
[].
class
,
EllipticCurve
.
class
};
params
=
new
Class
<?>
[]
{
byte
[].
class
,
EllipticCurve
.
class
};
decodePoint
=
c
.
getMethod
(
"decodePoint"
,
params
);
decodePoint
=
c
.
getMethod
(
"decodePoint"
,
params
);
c
=
Class
.
forName
(
"sun.security.ec.NamedCurve"
);
c
=
Class
.
forName
(
"sun.security.ec.NamedCurve"
);
params
=
new
Class
[]
{
String
.
class
};
params
=
new
Class
<?>
[]
{
String
.
class
};
getECParameterSpec
=
c
.
getMethod
(
"getECParameterSpec"
,
params
);
getECParameterSpec
=
c
.
getMethod
(
"getECParameterSpec"
,
params
);
}
}
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMManifest.java
浏览文件 @
16184010
...
@@ -128,7 +128,12 @@ public final class DOMManifest extends DOMStructure implements Manifest {
...
@@ -128,7 +128,12 @@ public final class DOMManifest extends DOMStructure implements Manifest {
return
id
;
return
id
;
}
}
public
List
getReferences
()
{
@SuppressWarnings
(
"unchecked"
)
static
List
<
Reference
>
getManifestReferences
(
Manifest
mf
)
{
return
mf
.
getReferences
();
}
public
List
<
Reference
>
getReferences
()
{
return
references
;
return
references
;
}
}
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMPGPData.java
浏览文件 @
16184010
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* under the License.
* under the License.
*/
*/
/*
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
*/
*/
/*
/*
* $Id: DOMPGPData.java 1203846 2011-11-18 21:18:17Z mullan $
* $Id: DOMPGPData.java 1203846 2011-11-18 21:18:17Z mullan $
...
@@ -184,7 +184,7 @@ public final class DOMPGPData extends DOMStructure implements PGPData {
...
@@ -184,7 +184,7 @@ public final class DOMPGPData extends DOMStructure implements PGPData {
return
(
keyPacket
==
null
?
null
:
(
byte
[])
keyPacket
.
clone
());
return
(
keyPacket
==
null
?
null
:
(
byte
[])
keyPacket
.
clone
());
}
}
public
List
getExternalElements
()
{
public
List
<
XMLStructure
>
getExternalElements
()
{
return
externalElements
;
return
externalElements
;
}
}
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMReference.java
浏览文件 @
16184010
...
@@ -288,7 +288,7 @@ public final class DOMReference extends DOMStructure
...
@@ -288,7 +288,7 @@ public final class DOMReference extends DOMStructure
return
type
;
return
type
;
}
}
public
List
getTransforms
()
{
public
List
<
Transform
>
getTransforms
()
{
return
Collections
.
unmodifiableList
(
allTransforms
);
return
Collections
.
unmodifiableList
(
allTransforms
);
}
}
...
@@ -638,7 +638,7 @@ public final class DOMReference extends DOMStructure
...
@@ -638,7 +638,7 @@ public final class DOMReference extends DOMStructure
try
{
try
{
final
Set
<
Node
>
s
=
xsi
.
getNodeSet
();
final
Set
<
Node
>
s
=
xsi
.
getNodeSet
();
return
new
NodeSetData
()
{
return
new
NodeSetData
()
{
public
Iterator
iterator
()
{
return
s
.
iterator
();
}
public
Iterator
<
Node
>
iterator
()
{
return
s
.
iterator
();
}
};
};
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
// log a warning
// log a warning
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMRetrievalMethod.java
浏览文件 @
16184010
...
@@ -178,7 +178,7 @@ public final class DOMRetrievalMethod extends DOMStructure
...
@@ -178,7 +178,7 @@ public final class DOMRetrievalMethod extends DOMStructure
return
type
;
return
type
;
}
}
public
List
getTransforms
()
{
public
List
<
Transform
>
getTransforms
()
{
return
transforms
;
return
transforms
;
}
}
...
@@ -247,7 +247,7 @@ public final class DOMRetrievalMethod extends DOMStructure
...
@@ -247,7 +247,7 @@ public final class DOMRetrievalMethod extends DOMStructure
if
((
data
instanceof
NodeSetData
)
&&
Utils
.
secureValidation
(
context
)
if
((
data
instanceof
NodeSetData
)
&&
Utils
.
secureValidation
(
context
)
&&
Policy
.
restrictRetrievalMethodLoops
())
{
&&
Policy
.
restrictRetrievalMethodLoops
())
{
NodeSetData
nsd
=
(
NodeSetData
)
data
;
NodeSetData
nsd
=
(
NodeSetData
)
data
;
Iterator
i
=
nsd
.
iterator
();
Iterator
<?>
i
=
nsd
.
iterator
();
if
(
i
.
hasNext
())
{
if
(
i
.
hasNext
())
{
Node
root
=
(
Node
)
i
.
next
();
Node
root
=
(
Node
)
i
.
next
();
if
(
"RetrievalMethod"
.
equals
(
root
.
getLocalName
()))
{
if
(
"RetrievalMethod"
.
equals
(
root
.
getLocalName
()))
{
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSignatureProperties.java
浏览文件 @
16184010
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* under the License.
* under the License.
*/
*/
/*
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
*/
*/
/*
/*
* $Id: DOMSignatureProperties.java 1333415 2012-05-03 12:03:51Z coheigea $
* $Id: DOMSignatureProperties.java 1333415 2012-05-03 12:03:51Z coheigea $
...
@@ -125,7 +125,7 @@ public final class DOMSignatureProperties extends DOMStructure
...
@@ -125,7 +125,7 @@ public final class DOMSignatureProperties extends DOMStructure
}
}
}
}
public
List
getProperties
()
{
public
List
<
SignatureProperty
>
getProperties
()
{
return
properties
;
return
properties
;
}
}
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSignatureProperty.java
浏览文件 @
16184010
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* under the License.
* under the License.
*/
*/
/*
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
*/
*/
/*
/*
* $Id: DOMSignatureProperty.java 1333415 2012-05-03 12:03:51Z coheigea $
* $Id: DOMSignatureProperty.java 1333415 2012-05-03 12:03:51Z coheigea $
...
@@ -123,7 +123,7 @@ public final class DOMSignatureProperty extends DOMStructure
...
@@ -123,7 +123,7 @@ public final class DOMSignatureProperty extends DOMStructure
}
}
}
}
public
List
getContent
()
{
public
List
<
XMLStructure
>
getContent
()
{
return
content
;
return
content
;
}
}
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSignedInfo.java
浏览文件 @
16184010
...
@@ -193,7 +193,7 @@ public final class DOMSignedInfo extends DOMStructure implements SignedInfo {
...
@@ -193,7 +193,7 @@ public final class DOMSignedInfo extends DOMStructure implements SignedInfo {
return
id
;
return
id
;
}
}
public
List
getReferences
()
{
public
List
<
Reference
>
getReferences
()
{
return
references
;
return
references
;
}
}
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMSubTreeData.java
浏览文件 @
16184010
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* under the License.
* under the License.
*/
*/
/*
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
*/
*/
/*
/*
* $Id$
* $Id$
...
@@ -54,7 +54,7 @@ public class DOMSubTreeData implements NodeSetData {
...
@@ -54,7 +54,7 @@ public class DOMSubTreeData implements NodeSetData {
this
.
excludeComments
=
excludeComments
;
this
.
excludeComments
=
excludeComments
;
}
}
public
Iterator
iterator
()
{
public
Iterator
<
Node
>
iterator
()
{
return
new
DelayedNodeIterator
(
root
,
excludeComments
);
return
new
DelayedNodeIterator
(
root
,
excludeComments
);
}
}
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMX509Data.java
浏览文件 @
16184010
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* under the License.
* under the License.
*/
*/
/*
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
*/
*/
/*
/*
* $Id: DOMX509Data.java 1333415 2012-05-03 12:03:51Z coheigea $
* $Id: DOMX509Data.java 1333415 2012-05-03 12:03:51Z coheigea $
...
@@ -135,7 +135,7 @@ public final class DOMX509Data extends DOMStructure implements X509Data {
...
@@ -135,7 +135,7 @@ public final class DOMX509Data extends DOMStructure implements X509Data {
this
.
content
=
Collections
.
unmodifiableList
(
content
);
this
.
content
=
Collections
.
unmodifiableList
(
content
);
}
}
public
List
getContent
()
{
public
List
<
Object
>
getContent
()
{
return
content
;
return
content
;
}
}
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMXMLObject.java
浏览文件 @
16184010
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* under the License.
* under the License.
*/
*/
/*
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
*/
*/
/*
/*
* $Id: DOMXMLObject.java 1333415 2012-05-03 12:03:51Z coheigea $
* $Id: DOMXMLObject.java 1333415 2012-05-03 12:03:51Z coheigea $
...
@@ -139,7 +139,7 @@ public final class DOMXMLObject extends DOMStructure implements XMLObject {
...
@@ -139,7 +139,7 @@ public final class DOMXMLObject extends DOMStructure implements XMLObject {
this
.
objectElem
=
objElem
;
this
.
objectElem
=
objElem
;
}
}
public
List
getContent
()
{
public
List
<
XMLStructure
>
getContent
()
{
return
content
;
return
content
;
}
}
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMXMLSignature.java
浏览文件 @
16184010
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* under the License.
* under the License.
*/
*/
/*
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
*/
*/
/*
/*
* ===========================================================================
* ===========================================================================
...
@@ -188,7 +188,7 @@ public final class DOMXMLSignature extends DOMStructure
...
@@ -188,7 +188,7 @@ public final class DOMXMLSignature extends DOMStructure
return
si
;
return
si
;
}
}
public
List
getObjects
()
{
public
List
<
XMLObject
>
getObjects
()
{
return
objects
;
return
objects
;
}
}
...
@@ -471,7 +471,8 @@ public final class DOMXMLSignature extends DOMStructure
...
@@ -471,7 +471,8 @@ public final class DOMXMLSignature extends DOMStructure
digestReference
((
DOMReference
)
xs
,
signContext
);
digestReference
((
DOMReference
)
xs
,
signContext
);
}
else
if
(
xs
instanceof
Manifest
)
{
}
else
if
(
xs
instanceof
Manifest
)
{
Manifest
man
=
(
Manifest
)
xs
;
Manifest
man
=
(
Manifest
)
xs
;
List
manRefs
=
man
.
getReferences
();
List
<
Reference
>
manRefs
=
DOMManifest
.
getManifestReferences
(
man
);
for
(
int
i
=
0
,
size
=
manRefs
.
size
();
i
<
size
;
i
++)
{
for
(
int
i
=
0
,
size
=
manRefs
.
size
();
i
<
size
;
i
++)
{
digestReference
((
DOMReference
)
manRefs
.
get
(
i
),
digestReference
((
DOMReference
)
manRefs
.
get
(
i
),
signContext
);
signContext
);
...
...
src/share/classes/org/jcp/xml/dsig/internal/dom/DOMXMLSignatureFactory.java
浏览文件 @
16184010
...
@@ -58,7 +58,7 @@ public final class DOMXMLSignatureFactory extends XMLSignatureFactory {
...
@@ -58,7 +58,7 @@ public final class DOMXMLSignatureFactory extends XMLSignatureFactory {
return
new
DOMXMLSignature
(
si
,
ki
,
null
,
null
,
null
);
return
new
DOMXMLSignature
(
si
,
ki
,
null
,
null
,
null
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
XMLSignature
newXMLSignature
(
SignedInfo
si
,
KeyInfo
ki
,
public
XMLSignature
newXMLSignature
(
SignedInfo
si
,
KeyInfo
ki
,
List
objects
,
String
id
,
String
signatureValueId
)
{
List
objects
,
String
id
,
String
signatureValueId
)
{
return
new
DOMXMLSignature
(
si
,
ki
,
objects
,
id
,
signatureValueId
);
return
new
DOMXMLSignature
(
si
,
ki
,
objects
,
id
,
signatureValueId
);
...
@@ -68,13 +68,13 @@ public final class DOMXMLSignatureFactory extends XMLSignatureFactory {
...
@@ -68,13 +68,13 @@ public final class DOMXMLSignatureFactory extends XMLSignatureFactory {
return
newReference
(
uri
,
dm
,
null
,
null
,
null
);
return
newReference
(
uri
,
dm
,
null
,
null
,
null
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
Reference
newReference
(
String
uri
,
DigestMethod
dm
,
List
transforms
,
public
Reference
newReference
(
String
uri
,
DigestMethod
dm
,
List
transforms
,
String
type
,
String
id
)
{
String
type
,
String
id
)
{
return
new
DOMReference
(
uri
,
type
,
dm
,
transforms
,
id
,
getProvider
());
return
new
DOMReference
(
uri
,
type
,
dm
,
transforms
,
id
,
getProvider
());
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
Reference
newReference
(
String
uri
,
DigestMethod
dm
,
public
Reference
newReference
(
String
uri
,
DigestMethod
dm
,
List
appliedTransforms
,
Data
result
,
List
transforms
,
String
type
,
List
appliedTransforms
,
Data
result
,
List
transforms
,
String
type
,
String
id
)
{
String
id
)
{
...
@@ -91,7 +91,7 @@ public final class DOMXMLSignatureFactory extends XMLSignatureFactory {
...
@@ -91,7 +91,7 @@ public final class DOMXMLSignatureFactory extends XMLSignatureFactory {
(
uri
,
type
,
dm
,
appliedTransforms
,
result
,
transforms
,
id
,
getProvider
());
(
uri
,
type
,
dm
,
appliedTransforms
,
result
,
transforms
,
id
,
getProvider
());
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
Reference
newReference
(
String
uri
,
DigestMethod
dm
,
List
transforms
,
public
Reference
newReference
(
String
uri
,
DigestMethod
dm
,
List
transforms
,
String
type
,
String
id
,
byte
[]
digestValue
)
{
String
type
,
String
id
,
byte
[]
digestValue
)
{
if
(
digestValue
==
null
)
{
if
(
digestValue
==
null
)
{
...
@@ -101,41 +101,41 @@ public final class DOMXMLSignatureFactory extends XMLSignatureFactory {
...
@@ -101,41 +101,41 @@ public final class DOMXMLSignatureFactory extends XMLSignatureFactory {
(
uri
,
type
,
dm
,
null
,
null
,
transforms
,
id
,
digestValue
,
getProvider
());
(
uri
,
type
,
dm
,
null
,
null
,
transforms
,
id
,
digestValue
,
getProvider
());
}
}
@SuppressWarnings
(
"
unchecked
"
)
@SuppressWarnings
(
"
rawtypes
"
)
public
SignedInfo
newSignedInfo
(
CanonicalizationMethod
cm
,
public
SignedInfo
newSignedInfo
(
CanonicalizationMethod
cm
,
SignatureMethod
sm
,
List
references
)
{
SignatureMethod
sm
,
List
references
)
{
return
newSignedInfo
(
cm
,
sm
,
references
,
null
);
return
newSignedInfo
(
cm
,
sm
,
references
,
null
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
SignedInfo
newSignedInfo
(
CanonicalizationMethod
cm
,
public
SignedInfo
newSignedInfo
(
CanonicalizationMethod
cm
,
SignatureMethod
sm
,
List
references
,
String
id
)
{
SignatureMethod
sm
,
List
references
,
String
id
)
{
return
new
DOMSignedInfo
(
cm
,
sm
,
references
,
id
);
return
new
DOMSignedInfo
(
cm
,
sm
,
references
,
id
);
}
}
// Object factory methods
// Object factory methods
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
XMLObject
newXMLObject
(
List
content
,
String
id
,
String
mimeType
,
public
XMLObject
newXMLObject
(
List
content
,
String
id
,
String
mimeType
,
String
encoding
)
{
String
encoding
)
{
return
new
DOMXMLObject
(
content
,
id
,
mimeType
,
encoding
);
return
new
DOMXMLObject
(
content
,
id
,
mimeType
,
encoding
);
}
}
@SuppressWarnings
(
"
unchecked
"
)
@SuppressWarnings
(
"
rawtypes
"
)
public
Manifest
newManifest
(
List
references
)
{
public
Manifest
newManifest
(
List
references
)
{
return
newManifest
(
references
,
null
);
return
newManifest
(
references
,
null
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
Manifest
newManifest
(
List
references
,
String
id
)
{
public
Manifest
newManifest
(
List
references
,
String
id
)
{
return
new
DOMManifest
(
references
,
id
);
return
new
DOMManifest
(
references
,
id
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
SignatureProperties
newSignatureProperties
(
List
props
,
String
id
)
{
public
SignatureProperties
newSignatureProperties
(
List
props
,
String
id
)
{
return
new
DOMSignatureProperties
(
props
,
id
);
return
new
DOMSignatureProperties
(
props
,
id
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
public
SignatureProperty
newSignatureProperty
public
SignatureProperty
newSignatureProperty
(
List
info
,
String
target
,
String
id
)
{
(
List
info
,
String
target
,
String
id
)
{
return
new
DOMSignatureProperty
(
info
,
target
,
id
);
return
new
DOMSignatureProperty
(
info
,
target
,
id
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录