Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
35a679eb
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
3
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
35a679eb
编写于
3月 25, 2014
作者:
M
mullan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8037258: AIOB while parsing CRL for revoked certificate
Reviewed-by: mullan Contributed-by: rajan.halade@oracle.com
上级
3d417773
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
37 deletion
+5
-37
src/share/classes/sun/security/x509/CRLReasonCodeExtension.java
...are/classes/sun/security/x509/CRLReasonCodeExtension.java
+5
-37
未找到文件。
src/share/classes/sun/security/x509/CRLReasonCodeExtension.java
浏览文件 @
35a679eb
/*
/*
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
4
, 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
...
@@ -34,29 +34,9 @@ import sun.security.util.*;
...
@@ -34,29 +34,9 @@ import sun.security.util.*;
/**
/**
* The reasonCode is a non-critical CRL entry extension that identifies
* The reasonCode is a non-critical CRL entry extension that identifies
* the reason for the certificate revocation. CAs are strongly
* the reason for the certificate revocation.
* encouraged to include reason codes in CRL entries; however, the
* reason code CRL entry extension should be absent instead of using the
* unspecified (0) reasonCode value.
* <p>The ASN.1 syntax for this is:
* <pre>
* id-ce-cRLReason OBJECT IDENTIFIER ::= { id-ce 21 }
*
* -- reasonCode ::= { CRLReason }
*
* CRLReason ::= ENUMERATED {
* unspecified (0),
* keyCompromise (1),
* cACompromise (2),
* affiliationChanged (3),
* superseded (4),
* cessationOfOperation (5),
* certificateHold (6),
* removeFromCRL (8),
* privilegeWithdrawn (9),
* aACompromise (10) }
* </pre>
* @author Hemma Prafullchandra
* @author Hemma Prafullchandra
* @see java.security.cert.CRLReason
* @see Extension
* @see Extension
* @see CertAttrSet
* @see CertAttrSet
*/
*/
...
@@ -64,23 +44,11 @@ public class CRLReasonCodeExtension extends Extension
...
@@ -64,23 +44,11 @@ public class CRLReasonCodeExtension extends Extension
implements
CertAttrSet
<
String
>
{
implements
CertAttrSet
<
String
>
{
/**
/**
* Attribute name
and Reason codes
* Attribute name
*/
*/
public
static
final
String
NAME
=
"CRLReasonCode"
;
public
static
final
String
NAME
=
"CRLReasonCode"
;
public
static
final
String
REASON
=
"reason"
;
public
static
final
String
REASON
=
"reason"
;
public
static
final
int
UNSPECIFIED
=
0
;
public
static
final
int
KEY_COMPROMISE
=
1
;
public
static
final
int
CA_COMPROMISE
=
2
;
public
static
final
int
AFFLIATION_CHANGED
=
3
;
public
static
final
int
SUPERSEDED
=
4
;
public
static
final
int
CESSATION_OF_OPERATION
=
5
;
public
static
final
int
CERTIFICATE_HOLD
=
6
;
// note 7 missing in syntax
public
static
final
int
REMOVE_FROM_CRL
=
8
;
public
static
final
int
PRIVILEGE_WITHDRAWN
=
9
;
public
static
final
int
AA_COMPROMISE
=
10
;
private
static
CRLReason
[]
values
=
CRLReason
.
values
();
private
static
CRLReason
[]
values
=
CRLReason
.
values
();
private
int
reasonCode
=
0
;
private
int
reasonCode
=
0
;
...
@@ -181,7 +149,7 @@ public class CRLReasonCodeExtension extends Extension
...
@@ -181,7 +149,7 @@ public class CRLReasonCodeExtension extends Extension
* Returns a printable representation of the Reason code.
* Returns a printable representation of the Reason code.
*/
*/
public
String
toString
()
{
public
String
toString
()
{
return
super
.
toString
()
+
" Reason Code: "
+
values
[
reasonCode
]
;
return
super
.
toString
()
+
" Reason Code: "
+
getReasonCode
()
;
}
}
/**
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录