Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
e47ffa50
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看板
提交
e47ffa50
编写于
11月 19, 2013
作者:
V
vinnie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8028377: test/sun/security/provider/KeyStore/DKSTest.sh attempts to write to ${test.src}
Reviewed-by: alanb, weijun
上级
857f0893
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
19 deletion
+7
-19
test/sun/security/provider/KeyStore/DKSTest.java
test/sun/security/provider/KeyStore/DKSTest.java
+2
-14
test/sun/security/provider/KeyStore/domains.cfg
test/sun/security/provider/KeyStore/domains.cfg
+5
-5
未找到文件。
test/sun/security/provider/KeyStore/DKSTest.java
浏览文件 @
e47ffa50
...
...
@@ -38,6 +38,7 @@ import java.util.*;
public
class
DKSTest
{
private
static
final
String
TEST_SRC
=
System
.
getProperty
(
"test.src"
);
private
static
final
String
USER_DIR
=
System
.
getProperty
(
"user.dir"
);
private
static
final
String
CERT
=
TEST_SRC
+
"/../../pkcs12/trusted.pem"
;
private
static
final
String
CONFIG
=
"file://"
+
TEST_SRC
+
"/domains.cfg"
;
private
static
final
Map
<
String
,
KeyStore
.
ProtectionParameter
>
PASSWORDS
=
...
...
@@ -60,19 +61,6 @@ public class DKSTest {
}};
public
static
void
main
(
String
[]
args
)
throws
Exception
{
try
{
main0
();
}
finally
{
// cleanup
new
File
(
TEST_SRC
+
"/empty.jks"
).
delete
();
new
File
(
TEST_SRC
+
"/Alias.keystore_tmp"
).
delete
();
new
File
(
TEST_SRC
+
"/pw.jks_tmp"
).
delete
();
new
File
(
TEST_SRC
+
"/secp256r1server-secp384r1ca.p12_tmp"
).
delete
();
new
File
(
TEST_SRC
+
"/sect193r1server-rsa1024ca.p12_tmp"
).
delete
();
}
}
private
static
void
main0
()
throws
Exception
{
/*
* domain keystore: system
*/
...
...
@@ -120,7 +108,7 @@ public class DKSTest {
empty
.
load
(
null
,
null
);
try
(
OutputStream
outStream
=
new
FileOutputStream
(
TEST_SRC
+
"/empty.jks"
))
{
new
FileOutputStream
(
new
File
(
USER_DIR
,
"empty.jks"
)
))
{
empty
.
store
(
outStream
,
"passphrase"
.
toCharArray
());
}
config
=
new
URI
(
CONFIG
+
"#empty"
);
...
...
test/sun/security/provider/KeyStore/domains.cfg
浏览文件 @
e47ffa50
...
...
@@ -35,14 +35,14 @@ domain keystores_tmp
keystoreType="PKCS12" {
keystore policy_keystore
keystoreType="JKS"
keystoreURI="${
test.src
}/Alias.keystore_tmp";
keystoreURI="${
user.dir
}/Alias.keystore_tmp";
keystore pw_keystore
keystoreType="CaseExactJKS"
keystoreURI="${
test.src
}/pw.jks_tmp";
keystoreURI="${
user.dir
}/pw.jks_tmp";
keystore eckeystore1
keystoreURI="${
test.src
}/sect193r1server-rsa1024ca.p12_tmp";
keystoreURI="${
user.dir
}/sect193r1server-rsa1024ca.p12_tmp";
keystore eckeystore2
keystoreURI="${
test.src
}/secp256r1server-secp384r1ca.p12_tmp";
keystoreURI="${
user.dir
}/secp256r1server-secp384r1ca.p12_tmp";
};
// domain where passwords are supplied via environment variables
...
...
@@ -61,5 +61,5 @@ domain empty
keystoreType="JKS"
keystoreProviderName="SUN" {
keystore empty
keystoreURI="${
test.src
}/empty.jks";
keystoreURI="${
user.dir
}/empty.jks";
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录