Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
e07ad74e
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看板
提交
e07ad74e
编写于
11月 06, 2010
作者:
W
weijun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6997740: ktab entry related test compilation error
Reviewed-by: valeriep
上级
347b5be3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
10 deletion
+10
-10
test/sun/security/krb5/auto/MoreKvno.java
test/sun/security/krb5/auto/MoreKvno.java
+4
-4
test/sun/security/krb5/auto/SSL.java
test/sun/security/krb5/auto/SSL.java
+3
-3
test/sun/security/krb5/auto/W83.java
test/sun/security/krb5/auto/W83.java
+1
-1
test/sun/security/krb5/ktab/KeyTabIndex.java
test/sun/security/krb5/ktab/KeyTabIndex.java
+2
-2
未找到文件。
test/sun/security/krb5/auto/MoreKvno.java
浏览文件 @
e07ad74e
/*
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009,
2010,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -48,9 +48,9 @@ public class MoreKvno {
KeyTab
ktab
=
KeyTab
.
create
(
OneKDC
.
KTAB
);
p
=
new
PrincipalName
(
OneKDC
.
SERVER
+
"@"
+
OneKDC
.
REALM
,
PrincipalName
.
KRB_NT_SRV_HST
);
ktab
.
addEntry
(
p
,
"pass1"
.
toCharArray
(),
1
);
ktab
.
addEntry
(
p
,
"pass3"
.
toCharArray
(),
3
);
ktab
.
addEntry
(
p
,
"pass2"
.
toCharArray
(),
2
);
ktab
.
addEntry
(
p
,
"pass1"
.
toCharArray
(),
1
,
true
);
ktab
.
addEntry
(
p
,
"pass3"
.
toCharArray
(),
3
,
true
);
ktab
.
addEntry
(
p
,
"pass2"
.
toCharArray
(),
2
,
true
);
ktab
.
save
();
char
[]
pass
=
"pass2"
.
toCharArray
();
...
...
test/sun/security/krb5/auto/SSL.java
浏览文件 @
e07ad74e
...
...
@@ -74,9 +74,9 @@ public class SSL {
KeyTab
ktab
=
KeyTab
.
create
(
OneKDC
.
KTAB
);
PrincipalName
service
=
new
PrincipalName
(
"host/"
+
server
,
PrincipalName
.
KRB_NT_SRV_HST
);
ktab
.
addEntry
(
service
,
"pass1"
.
toCharArray
(),
1
);
ktab
.
addEntry
(
service
,
"pass2"
.
toCharArray
(),
2
);
ktab
.
addEntry
(
service
,
"pass3"
.
toCharArray
(),
3
);
ktab
.
addEntry
(
service
,
"pass1"
.
toCharArray
(),
1
,
true
);
ktab
.
addEntry
(
service
,
"pass2"
.
toCharArray
(),
2
,
true
);
ktab
.
addEntry
(
service
,
"pass3"
.
toCharArray
(),
3
,
true
);
ktab
.
save
();
// and use the middle one as the real key
...
...
test/sun/security/krb5/auto/W83.java
浏览文件 @
e07ad74e
...
...
@@ -56,7 +56,7 @@ public class W83 {
KeyTab
ktab
=
KeyTab
.
getInstance
(
OneKDC
.
KTAB
);
for
(
int
etype:
EType
.
getBuiltInDefaults
())
{
if
(
etype
!=
EncryptedData
.
ETYPE_ARCFOUR_HMAC
)
{
ktab
.
deleteEntr
y
(
new
PrincipalName
(
OneKDC
.
USER
),
etype
);
ktab
.
deleteEntr
ies
(
new
PrincipalName
(
OneKDC
.
USER
),
etype
,
-
1
);
}
}
ktab
.
save
();
...
...
test/sun/security/krb5/ktab/KeyTabIndex.java
浏览文件 @
e07ad74e
...
...
@@ -35,8 +35,8 @@ public class KeyTabIndex {
// observice the abnormal change of "index" field.
kt
.
addEntry
(
new
PrincipalName
(
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@A"
),
"x"
.
toCharArray
(),
1
);
kt
.
addEntry
(
new
PrincipalName
(
"a@A"
),
"x"
.
toCharArray
(),
1
);
"x"
.
toCharArray
(),
1
,
true
);
kt
.
addEntry
(
new
PrincipalName
(
"a@A"
),
"x"
.
toCharArray
(),
1
,
true
);
kt
.
save
();
Runnable
t
=
new
Runnable
()
{
@Override
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录