Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
64410463
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看板
提交
64410463
编写于
5月 01, 2013
作者:
L
lana
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
442c804d
9dd3acc1
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
74 addition
and
21 deletion
+74
-21
.hgtags
.hgtags
+1
-0
src/share/classes/sun/security/provider/certpath/CertPathHelper.java
...lasses/sun/security/provider/certpath/CertPathHelper.java
+1
-1
src/share/classes/sun/security/provider/certpath/DistributionPointFetcher.java
.../security/provider/certpath/DistributionPointFetcher.java
+9
-8
src/share/classes/sun/security/provider/certpath/OCSP.java
src/share/classes/sun/security/provider/certpath/OCSP.java
+4
-5
src/share/classes/sun/security/provider/certpath/OCSPResponse.java
.../classes/sun/security/provider/certpath/OCSPResponse.java
+27
-4
src/share/classes/sun/security/provider/certpath/URICertStore.java
.../classes/sun/security/provider/certpath/URICertStore.java
+30
-1
test/java/lang/Runtime/exec/WinCommand.java
test/java/lang/Runtime/exec/WinCommand.java
+1
-1
test/java/lang/reflect/Method/DefaultMethodModeling.java
test/java/lang/reflect/Method/DefaultMethodModeling.java
+1
-1
未找到文件。
.hgtags
浏览文件 @
64410463
...
@@ -208,3 +208,4 @@ ac519af51769e92c51b597a730974e8607357709 jdk8-b83
...
@@ -208,3 +208,4 @@ ac519af51769e92c51b597a730974e8607357709 jdk8-b83
7b4721e4edb4e1c65e9c839a70d7cc67f81c7632 jdk8-b84
7b4721e4edb4e1c65e9c839a70d7cc67f81c7632 jdk8-b84
296676d534c52888c36e305a2bf7f345c4ca70f8 jdk8-b85
296676d534c52888c36e305a2bf7f345c4ca70f8 jdk8-b85
7989cd0cc3a9149864589438ee2c949015d8aa9a jdk8-b86
7989cd0cc3a9149864589438ee2c949015d8aa9a jdk8-b86
d5228e624826a10ccc5b05f30ad8d839b58fe48d jdk8-b87
src/share/classes/sun/security/provider/certpath/CertPathHelper.java
浏览文件 @
64410463
...
@@ -64,7 +64,7 @@ public abstract class CertPathHelper {
...
@@ -64,7 +64,7 @@ public abstract class CertPathHelper {
instance
.
implSetPathToNames
(
sel
,
names
);
instance
.
implSetPathToNames
(
sel
,
names
);
}
}
static
void
setDateAndTime
(
X509CRLSelector
sel
,
Date
date
,
long
skew
)
{
public
static
void
setDateAndTime
(
X509CRLSelector
sel
,
Date
date
,
long
skew
)
{
instance
.
implSetDateAndTime
(
sel
,
date
,
skew
);
instance
.
implSetDateAndTime
(
sel
,
date
,
skew
);
}
}
}
}
src/share/classes/sun/security/provider/certpath/DistributionPointFetcher.java
浏览文件 @
64410463
...
@@ -50,7 +50,7 @@ import sun.security.x509.*;
...
@@ -50,7 +50,7 @@ import sun.security.x509.*;
* @author Sean Mullan
* @author Sean Mullan
* @since 1.4.2
* @since 1.4.2
*/
*/
class
DistributionPointFetcher
{
public
class
DistributionPointFetcher
{
private
static
final
Debug
debug
=
Debug
.
getInstance
(
"certpath"
);
private
static
final
Debug
debug
=
Debug
.
getInstance
(
"certpath"
);
...
@@ -66,13 +66,14 @@ class DistributionPointFetcher {
...
@@ -66,13 +66,14 @@ class DistributionPointFetcher {
* Return the X509CRLs matching this selector. The selector must be
* Return the X509CRLs matching this selector. The selector must be
* an X509CRLSelector with certificateChecking set.
* an X509CRLSelector with certificateChecking set.
*/
*/
static
Collection
<
X509CRL
>
getCRLs
(
X509CRLSelector
selector
,
public
static
Collection
<
X509CRL
>
getCRLs
(
X509CRLSelector
selector
,
boolean
signFlag
,
PublicKey
prevKey
,
boolean
signFlag
,
String
provider
,
PublicKey
prevKey
,
List
<
CertStore
>
certStores
,
String
provider
,
boolean
[]
reasonsMask
,
List
<
CertStore
>
certStores
,
Set
<
TrustAnchor
>
trustAnchors
,
boolean
[]
reasonsMask
,
Date
validity
)
Set
<
TrustAnchor
>
trustAnchors
,
Date
validity
)
throws
CertStoreException
throws
CertStoreException
{
{
X509Certificate
cert
=
selector
.
getCertificateChecking
();
X509Certificate
cert
=
selector
.
getCertificateChecking
();
...
...
src/share/classes/sun/security/provider/certpath/OCSP.java
浏览文件 @
64410463
/*
/*
* Copyright (c) 2009, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -85,10 +85,9 @@ public final class OCSP {
...
@@ -85,10 +85,9 @@ public final class OCSP {
* value is negative, set the timeout length to the default.
* value is negative, set the timeout length to the default.
*/
*/
private
static
int
initializeTimeout
()
{
private
static
int
initializeTimeout
()
{
int
tmp
=
java
.
security
.
AccessController
.
doPrivileged
(
Integer
tmp
=
java
.
security
.
AccessController
.
doPrivileged
(
new
GetIntegerAction
(
"com.sun.security.ocsp.timeout"
,
new
GetIntegerAction
(
"com.sun.security.ocsp.timeout"
));
DEFAULT_CONNECT_TIMEOUT
));
if
(
tmp
==
null
||
tmp
<
0
)
{
if
(
tmp
<
0
)
{
return
DEFAULT_CONNECT_TIMEOUT
;
return
DEFAULT_CONNECT_TIMEOUT
;
}
}
// Convert to milliseconds, as the system property will be
// Convert to milliseconds, as the system property will be
...
...
src/share/classes/sun/security/provider/certpath/OCSPResponse.java
浏览文件 @
64410463
/*
/*
* Copyright (c) 2003, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -43,6 +43,7 @@ import java.util.Map;
...
@@ -43,6 +43,7 @@ import java.util.Map;
import
javax.security.auth.x500.X500Principal
;
import
javax.security.auth.x500.X500Principal
;
import
sun.misc.HexDumpEncoder
;
import
sun.misc.HexDumpEncoder
;
import
sun.security.action.GetIntegerAction
;
import
sun.security.x509.*
;
import
sun.security.x509.*
;
import
sun.security.util.*
;
import
sun.security.util.*
;
...
@@ -144,9 +145,31 @@ public final class OCSPResponse {
...
@@ -144,9 +145,31 @@ public final class OCSPResponse {
// Object identifier for the OCSPSigning key purpose
// Object identifier for the OCSPSigning key purpose
private
static
final
String
KP_OCSP_SIGNING_OID
=
"1.3.6.1.5.5.7.3.9"
;
private
static
final
String
KP_OCSP_SIGNING_OID
=
"1.3.6.1.5.5.7.3.9"
;
// Maximum clock skew in milliseconds (15 minutes) allowed when checking
// Default maximum clock skew in milliseconds (15 minutes)
// validity of OCSP responses
// allowed when checking validity of OCSP responses
private
static
final
long
MAX_CLOCK_SKEW
=
900000
;
private
static
final
int
DEFAULT_MAX_CLOCK_SKEW
=
900000
;
/**
* Integer value indicating the maximum allowable clock skew, in seconds,
* to be used for the OCSP check.
*/
private
static
final
int
MAX_CLOCK_SKEW
=
initializeClockSkew
();
/**
* Initialize the maximum allowable clock skew by getting the OCSP
* clock skew system property. If the property has not been set, or if its
* value is negative, set the skew to the default.
*/
private
static
int
initializeClockSkew
()
{
Integer
tmp
=
java
.
security
.
AccessController
.
doPrivileged
(
new
GetIntegerAction
(
"com.sun.security.ocsp.clockSkew"
));
if
(
tmp
==
null
||
tmp
<
0
)
{
return
DEFAULT_MAX_CLOCK_SKEW
;
}
// Convert to milliseconds, as the system property will be
// specified in seconds
return
tmp
*
1000
;
}
// an array of all of the CRLReasons (used in SingleResponse)
// an array of all of the CRLReasons (used in SingleResponse)
private
static
CRLReason
[]
values
=
CRLReason
.
values
();
private
static
CRLReason
[]
values
=
CRLReason
.
values
();
...
...
src/share/classes/sun/security/provider/certpath/URICertStore.java
浏览文件 @
64410463
/*
/*
* Copyright (c) 2006, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -51,6 +51,7 @@ import java.util.Collection;
...
@@ -51,6 +51,7 @@ import java.util.Collection;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Locale
;
import
java.util.Locale
;
import
sun.security.action.GetIntegerAction
;
import
sun.security.x509.AccessDescription
;
import
sun.security.x509.AccessDescription
;
import
sun.security.x509.GeneralNameInterface
;
import
sun.security.x509.GeneralNameInterface
;
import
sun.security.x509.URIName
;
import
sun.security.x509.URIName
;
...
@@ -121,6 +122,33 @@ class URICertStore extends CertStoreSpi {
...
@@ -121,6 +122,33 @@ class URICertStore extends CertStoreSpi {
private
CertStore
ldapCertStore
;
private
CertStore
ldapCertStore
;
private
String
ldapPath
;
private
String
ldapPath
;
// Default maximum connect timeout in milliseconds (15 seconds)
// allowed when downloading CRLs
private
static
final
int
DEFAULT_CRL_CONNECT_TIMEOUT
=
15000
;
/**
* Integer value indicating the connect timeout, in seconds, to be
* used for the CRL download. A timeout of zero is interpreted as
* an infinite timeout.
*/
private
static
final
int
CRL_CONNECT_TIMEOUT
=
initializeTimeout
();
/**
* Initialize the timeout length by getting the CRL timeout
* system property. If the property has not been set, or if its
* value is negative, set the timeout length to the default.
*/
private
static
int
initializeTimeout
()
{
Integer
tmp
=
java
.
security
.
AccessController
.
doPrivileged
(
new
GetIntegerAction
(
"com.sun.security.crl.timeout"
));
if
(
tmp
==
null
||
tmp
<
0
)
{
return
DEFAULT_CRL_CONNECT_TIMEOUT
;
}
// Convert to milliseconds, as the system property will be
// specified in seconds
return
tmp
*
1000
;
}
/**
/**
* Creates a URICertStore.
* Creates a URICertStore.
*
*
...
@@ -364,6 +392,7 @@ class URICertStore extends CertStoreSpi {
...
@@ -364,6 +392,7 @@ class URICertStore extends CertStoreSpi {
connection
.
setIfModifiedSince
(
lastModified
);
connection
.
setIfModifiedSince
(
lastModified
);
}
}
long
oldLastModified
=
lastModified
;
long
oldLastModified
=
lastModified
;
connection
.
setConnectTimeout
(
CRL_CONNECT_TIMEOUT
);
try
(
InputStream
in
=
connection
.
getInputStream
())
{
try
(
InputStream
in
=
connection
.
getInputStream
())
{
lastModified
=
connection
.
getLastModified
();
lastModified
=
connection
.
getLastModified
();
if
(
oldLastModified
!=
0
)
{
if
(
oldLastModified
!=
0
)
{
...
...
test/java/lang/Runtime/exec/WinCommand.java
浏览文件 @
64410463
/*
/*
* Copyright (c) 2004, 2013 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2013
,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
...
test/java/lang/reflect/Method/DefaultMethodModeling.java
浏览文件 @
64410463
/*
/*
* Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013
,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录