Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
322b3029
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看板
提交
322b3029
编写于
12月 12, 2012
作者:
M
mullan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8004064: Downgrade normative references to ${java.home}/lib/security/java.security
Reviewed-by: alanb, vinnie, xuelei
上级
e01da2eb
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
124 addition
and
166 deletion
+124
-166
src/share/classes/com/sun/net/ssl/KeyManagerFactory.java
src/share/classes/com/sun/net/ssl/KeyManagerFactory.java
+7
-6
src/share/classes/com/sun/net/ssl/TrustManagerFactory.java
src/share/classes/com/sun/net/ssl/TrustManagerFactory.java
+7
-6
src/share/classes/com/sun/security/auth/PolicyFile.java
src/share/classes/com/sun/security/auth/PolicyFile.java
+4
-7
src/share/classes/com/sun/security/auth/login/ConfigFile.java
...share/classes/com/sun/security/auth/login/ConfigFile.java
+4
-7
src/share/classes/java/net/doc-files/net-properties.html
src/share/classes/java/net/doc-files/net-properties.html
+2
-2
src/share/classes/java/security/KeyStore.java
src/share/classes/java/security/KeyStore.java
+8
-12
src/share/classes/java/security/Policy.java
src/share/classes/java/security/Policy.java
+4
-7
src/share/classes/java/security/Security.java
src/share/classes/java/security/Security.java
+5
-1
src/share/classes/java/security/cert/CertPathBuilder.java
src/share/classes/java/security/cert/CertPathBuilder.java
+12
-14
src/share/classes/java/security/cert/CertPathValidator.java
src/share/classes/java/security/cert/CertPathValidator.java
+12
-14
src/share/classes/java/security/cert/CertStore.java
src/share/classes/java/security/cert/CertStore.java
+15
-17
src/share/classes/javax/net/ssl/KeyManagerFactory.java
src/share/classes/javax/net/ssl/KeyManagerFactory.java
+7
-11
src/share/classes/javax/net/ssl/TrustManagerFactory.java
src/share/classes/javax/net/ssl/TrustManagerFactory.java
+8
-9
src/share/classes/javax/security/auth/Policy.java
src/share/classes/javax/security/auth/Policy.java
+5
-10
src/share/classes/javax/security/auth/callback/CallbackHandler.java
...classes/javax/security/auth/callback/CallbackHandler.java
+5
-8
src/share/classes/javax/security/auth/login/Configuration.java
...hare/classes/javax/security/auth/login/Configuration.java
+4
-7
src/share/classes/javax/security/auth/login/LoginContext.java
...share/classes/javax/security/auth/login/LoginContext.java
+5
-13
src/share/classes/javax/security/cert/X509Certificate.java
src/share/classes/javax/security/cert/X509Certificate.java
+10
-15
未找到文件。
src/share/classes/com/sun/net/ssl/KeyManagerFactory.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 2000, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 20
12
, 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
...
@@ -53,12 +53,13 @@ public class KeyManagerFactory {
...
@@ -53,12 +53,13 @@ public class KeyManagerFactory {
/**
/**
* <p>The default KeyManager can be changed by setting the value of the
* <p>The default KeyManager can be changed by setting the value of the
* "sun.ssl.keymanager.type" security property (in the Java security
* {@code sun.ssl.keymanager.type} security property to the desired name.
* properties file) to the desired name.
*
*
* @return the default type as specified in the
* @return the default type as specified by the
* Java security properties file, or an implementation-specific default
* {@code sun.ssl.keymanager.type} security property, or an
* if no such property exists.
* implementation-specific default if no such property exists.
*
* @see java.security.Security security properties
*/
*/
public
final
static
String
getDefaultAlgorithm
()
{
public
final
static
String
getDefaultAlgorithm
()
{
String
type
;
String
type
;
...
...
src/share/classes/com/sun/net/ssl/TrustManagerFactory.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 2000, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 20
12
, 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
...
@@ -53,12 +53,13 @@ public class TrustManagerFactory {
...
@@ -53,12 +53,13 @@ public class TrustManagerFactory {
/**
/**
* <p>The default TrustManager can be changed by setting the value of the
* <p>The default TrustManager can be changed by setting the value of the
* "sun.ssl.trustmanager.type" security property
* {@code sun.ssl.trustmanager.type} security property to the desired name.
* (in the Java security properties file) to the desired name.
*
*
* @return the default type as specified in the
* @return the default type as specified by the
* Java security properties file, or an implementation-specific default
* {@code sun.ssl.trustmanager.type} security property, or an
* if no such property exists.
* implementation-specific default if no such property exists.
*
* @see java.security.Security security properties
*/
*/
public
final
static
String
getDefaultAlgorithm
()
{
public
final
static
String
getDefaultAlgorithm
()
{
String
type
;
String
type
;
...
...
src/share/classes/com/sun/security/auth/PolicyFile.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 1999, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
2
, 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
...
@@ -59,13 +59,9 @@ import sun.security.util.PropertyExpander;
...
@@ -59,13 +59,9 @@ import sun.security.util.PropertyExpander;
*
*
* <ol>
* <ol>
* <li>
* <li>
* Loop through the
<code>java.security.Security</code>
properties,
* Loop through the
security
properties,
* <i>auth.policy.url.1</i>, <i>auth.policy.url.2</i>, ...,
* <i>auth.policy.url.1</i>, <i>auth.policy.url.2</i>, ...,
* <i>auth.policy.url.X</i>". These properties are set
* <i>auth.policy.url.X</i>".
* in the Java security properties file, which is located in the file named
* <JAVA_HOME>/lib/security/java.security.
* <JAVA_HOME> refers to the value of the java.home system property,
* and specifies the directory where the JRE is installed.
* Each property value specifies a <code>URL</code> pointing to a
* Each property value specifies a <code>URL</code> pointing to a
* policy file to be loaded. Read in and load each policy.
* policy file to be loaded. Read in and load each policy.
*
*
...
@@ -235,6 +231,7 @@ import sun.security.util.PropertyExpander;
...
@@ -235,6 +231,7 @@ import sun.security.util.PropertyExpander;
* @see java.security.CodeSource
* @see java.security.CodeSource
* @see java.security.Permissions
* @see java.security.Permissions
* @see java.security.ProtectionDomain
* @see java.security.ProtectionDomain
* @see java.security.Security security properties
*/
*/
@Deprecated
@Deprecated
public
class
PolicyFile
extends
javax
.
security
.
auth
.
Policy
{
public
class
PolicyFile
extends
javax
.
security
.
auth
.
Policy
{
...
...
src/share/classes/com/sun/security/auth/login/ConfigFile.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
2
, 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
...
@@ -49,13 +49,9 @@ import sun.security.util.PropertyExpander;
...
@@ -49,13 +49,9 @@ import sun.security.util.PropertyExpander;
*
*
* <ol>
* <ol>
* <li>
* <li>
* Loop through the
<code>java.security.Security</code>
properties,
* Loop through the
security
properties,
* <i>login.config.url.1</i>, <i>login.config.url.2</i>, ...,
* <i>login.config.url.1</i>, <i>login.config.url.2</i>, ...,
* <i>login.config.url.X</i>. These properties are set
* <i>login.config.url.X</i>.
* in the Java security properties file, which is located in the file named
* <JAVA_HOME>/lib/security/java.security.
* <JAVA_HOME> refers to the value of the java.home system property,
* and specifies the directory where the JRE is installed.
* Each property value specifies a <code>URL</code> pointing to a
* Each property value specifies a <code>URL</code> pointing to a
* login configuration file to be loaded. Read in and load
* login configuration file to be loaded. Read in and load
* each configuration.
* each configuration.
...
@@ -87,6 +83,7 @@ import sun.security.util.PropertyExpander;
...
@@ -87,6 +83,7 @@ import sun.security.util.PropertyExpander;
* <code>javax.security.auth.login.Configuration</code> class.
* <code>javax.security.auth.login.Configuration</code> class.
*
*
* @see javax.security.auth.login.LoginContext
* @see javax.security.auth.login.LoginContext
* @see java.security.Security security properties
*/
*/
public
class
ConfigFile
extends
javax
.
security
.
auth
.
login
.
Configuration
{
public
class
ConfigFile
extends
javax
.
security
.
auth
.
login
.
Configuration
{
...
...
src/share/classes/java/net/doc-files/net-properties.html
浏览文件 @
322b3029
<!--
<!--
Copyright (c) 1998, 201
1
, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 1998, 201
2
, 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
...
@@ -237,6 +237,6 @@ tuning on how the cache is operating.</P>
...
@@ -237,6 +237,6 @@ tuning on how the cache is operating.</P>
</UL>
</UL>
<P>
Since these 2 properties are part of the security policy, they are
<P>
Since these 2 properties are part of the security policy, they are
not set by either the -D option or the System.setProperty() API,
not set by either the -D option or the System.setProperty() API,
instead they are set
in the JRE security policy file
<code>
lib/security/java.security
</code>
.
</P>
instead they are set
as security properties
.
</P>
</BODY>
</BODY>
</HTML>
</HTML>
src/share/classes/java/security/KeyStore.java
浏览文件 @
322b3029
...
@@ -695,27 +695,23 @@ public class KeyStore {
...
@@ -695,27 +695,23 @@ public class KeyStore {
}
}
/**
/**
* Returns the default keystore type as specified
in the Java security
* Returns the default keystore type as specified
by the
*
properties file
, or the string
*
{@code keystore.type} security property
, or the string
*
"jks" (acronym for "Java keystore"
)
*
{@literal "jks"} (acronym for {@literal "Java keystore"}
)
* if no such property exists.
* if no such property exists.
* The Java security properties file is located in the file named
* <JAVA_HOME>/lib/security/java.security.
* <JAVA_HOME> refers to the value of the java.home system property,
* and specifies the directory where the JRE is installed.
*
*
* <p>The default keystore type can be used by applications that do not
* <p>The default keystore type can be used by applications that do not
* want to use a hard-coded keystore type when calling one of the
* want to use a hard-coded keystore type when calling one of the
*
<code>getInstance</code>
methods, and want to provide a default keystore
*
{@code getInstance}
methods, and want to provide a default keystore
* type in case a user does not specify its own.
* type in case a user does not specify its own.
*
*
* <p>The default keystore type can be changed by setting the value of the
* <p>The default keystore type can be changed by setting the value of the
* "keystore.type" security property (in the Java security properties
* {@code keystore.type} security property to the desired keystore type.
* file) to the desired keystore type.
*
*
* @return the default keystore type as specified
in
the
* @return the default keystore type as specified
by
the
*
Java security properties file, or the string "jks"
*
{@code keystore.type} security property, or the string {@literal "jks"}
* if no such property exists.
* if no such property exists.
* @see java.security.Security security properties
*/
*/
public
final
static
String
getDefaultType
()
{
public
final
static
String
getDefaultType
()
{
String
kstype
;
String
kstype
;
...
...
src/share/classes/java/security/Policy.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
2
, 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
...
@@ -48,12 +48,8 @@ import sun.security.util.SecurityConstants;
...
@@ -48,12 +48,8 @@ import sun.security.util.SecurityConstants;
* <code>getPolicy</code> installs an instance of the default Policy
* <code>getPolicy</code> installs an instance of the default Policy
* implementation (a default subclass implementation of this abstract class).
* implementation (a default subclass implementation of this abstract class).
* The default Policy implementation can be changed by setting the value
* The default Policy implementation can be changed by setting the value
* of the "policy.provider" security property (in the Java security properties
* of the {@code policy.provider} security property to the fully qualified
* file) to the fully qualified name of the desired Policy subclass
* name of the desired Policy subclass implementation.
* implementation. The Java security properties file is located in the
* file named <JAVA_HOME>/lib/security/java.security.
* <JAVA_HOME> refers to the value of the java.home system property,
* and specifies the directory where the JRE is installed.
*
*
* <p> Application code can directly subclass Policy to provide a custom
* <p> Application code can directly subclass Policy to provide a custom
* implementation. In addition, an instance of a Policy object can be
* implementation. In addition, an instance of a Policy object can be
...
@@ -84,6 +80,7 @@ import sun.security.util.SecurityConstants;
...
@@ -84,6 +80,7 @@ import sun.security.util.SecurityConstants;
* @see java.security.Provider
* @see java.security.Provider
* @see java.security.ProtectionDomain
* @see java.security.ProtectionDomain
* @see java.security.Permission
* @see java.security.Permission
* @see java.security.Security security properties
*/
*/
public
abstract
class
Policy
{
public
abstract
class
Policy
{
...
...
src/share/classes/java/security/Security.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 1996, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
2
, 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
...
@@ -39,6 +39,10 @@ import sun.security.jca.*;
...
@@ -39,6 +39,10 @@ import sun.security.jca.*;
* <p>This class centralizes all security properties and common security
* <p>This class centralizes all security properties and common security
* methods. One of its primary uses is to manage providers.
* methods. One of its primary uses is to manage providers.
*
*
* <p>The default values of security properties are read from an
* implementation-specific location, which is typically the properties file
* {@code lib/security/java.security} in the Java installation directory.
*
* @author Benjamin Renaud
* @author Benjamin Renaud
*/
*/
...
...
src/share/classes/java/security/cert/CertPathBuilder.java
浏览文件 @
322b3029
...
@@ -281,25 +281,23 @@ public class CertPathBuilder {
...
@@ -281,25 +281,23 @@ public class CertPathBuilder {
}
}
/**
/**
* Returns the default <code>CertPathBuilder</code> type as specified in
* Returns the default {@code CertPathBuilder} type as specified by
* the Java security properties file, or the string "PKIX"
* the {@code certpathbuilder.type} security property, or the string
* if no such property exists. The Java security properties file is
* {@literal "PKIX"} if no such property exists.
* located in the file named <JAVA_HOME>/lib/security/java.security.
* <JAVA_HOME> refers to the value of the java.home system property,
* and specifies the directory where the JRE is installed.
*
*
* <p>The default
<code>CertPathBuilder</code>
type can be used by
* <p>The default
{@code CertPathBuilder}
type can be used by
* applications that do not want to use a hard-coded type when calling one
* applications that do not want to use a hard-coded type when calling one
* of the
<code>getInstance</code>
methods, and want to provide a default
* of the
{@code getInstance}
methods, and want to provide a default
* type in case a user does not specify its own.
* type in case a user does not specify its own.
*
*
* <p>The default
<code>CertPathBuilder</code>
type can be changed by
* <p>The default
{@code CertPathBuilder}
type can be changed by
* setting the value of the
"certpathbuilder.type"
security property
* setting the value of the
{@code certpathbuilder.type}
security property
*
(in the Java security properties file)
to the desired type.
* to the desired type.
*
*
* @return the default <code>CertPathBuilder</code> type as specified
* @see java.security.Security security properties
* in the Java security properties file, or the string "PKIX"
* @return the default {@code CertPathBuilder} type as specified
* if no such property exists.
* by the {@code certpathbuilder.type} security property, or the string
* {@literal "PKIX"} if no such property exists.
*/
*/
public
final
static
String
getDefaultType
()
{
public
final
static
String
getDefaultType
()
{
String
cpbtype
=
String
cpbtype
=
...
...
src/share/classes/java/security/cert/CertPathValidator.java
浏览文件 @
322b3029
...
@@ -293,25 +293,23 @@ public class CertPathValidator {
...
@@ -293,25 +293,23 @@ public class CertPathValidator {
}
}
/**
/**
* Returns the default <code>CertPathValidator</code> type as specified in
* Returns the default {@code CertPathValidator} type as specified by
* the Java security properties file, or the string "PKIX"
* the {@code certpathvalidator.type} security property, or the string
* if no such property exists. The Java security properties file is
* {@literal "PKIX"} if no such property exists.
* located in the file named <JAVA_HOME>/lib/security/java.security.
* <JAVA_HOME> refers to the value of the java.home system property,
* and specifies the directory where the JRE is installed.
*
*
* <p>The default
<code>CertPathValidator</code>
type can be used by
* <p>The default
{@code CertPathValidator}
type can be used by
* applications that do not want to use a hard-coded type when calling one
* applications that do not want to use a hard-coded type when calling one
* of the
<code>getInstance</code>
methods, and want to provide a default
* of the
{@code getInstance}
methods, and want to provide a default
* type in case a user does not specify its own.
* type in case a user does not specify its own.
*
*
* <p>The default
<code>CertPathValidator</code>
type can be changed by
* <p>The default
{@code CertPathValidator}
type can be changed by
* setting the value of the
"certpathvalidator.type" security proper
ty
* setting the value of the
{@code certpathvalidator.type} securi
ty
*
(in the Java security properties file)
to the desired type.
*
property
to the desired type.
*
*
* @return the default <code>CertPathValidator</code> type as specified
* @see java.security.Security security properties
* in the Java security properties file, or the string "PKIX"
* @return the default {@code CertPathValidator} type as specified
* if no such property exists.
* by the {@code certpathvalidator.type} security property, or the string
* {@literal "PKIX"} if no such property exists.
*/
*/
public
final
static
String
getDefaultType
()
{
public
final
static
String
getDefaultType
()
{
String
cpvtype
=
String
cpvtype
=
...
...
src/share/classes/java/security/cert/CertStore.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
2
, 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
...
@@ -389,25 +389,23 @@ public class CertStore {
...
@@ -389,25 +389,23 @@ public class CertStore {
}
}
/**
/**
* Returns the default <code>CertStore</code> type as specified in the
* Returns the default {@code CertStore} type as specified by the
* Java security properties file, or the string "LDAP" if no
* {@code certstore.type} security property, or the string
* such property exists. The Java security properties file is located in
* {@literal "LDAP"} if no such property exists.
* the file named <JAVA_HOME>/lib/security/java.security.
*
* <JAVA_HOME> refers to the value of the java.home system property,
* <p>The default {@code CertStore} type can be used by applications
* and specifies the directory where the JRE is installed.
*
* <p>The default <code>CertStore</code> type can be used by applications
* that do not want to use a hard-coded type when calling one of the
* that do not want to use a hard-coded type when calling one of the
*
<code>getInstance</code>
methods, and want to provide a default
*
{@code getInstance}
methods, and want to provide a default
*
<code>CertStore</code>
type in case a user does not specify its own.
*
{@code CertStore}
type in case a user does not specify its own.
*
*
* <p>The default
<code>CertStore</code>
type can be changed by setting
* <p>The default
{@code CertStore}
type can be changed by setting
* the value of the
"certstore.type" security property (in the Java
* the value of the
{@code certstore.type} security property to the
*
security properties file) to the
desired type.
* desired type.
*
*
* @return the default <code>CertStore</code> type as specified in the
* @see java.security.Security security properties
* Java security properties file, or the string "LDAP"
* @return the default {@code CertStore} type as specified by the
* if no such property exists.
* {@code certstore.type} security property, or the string
* {@literal "LDAP"} if no such property exists.
*/
*/
public
final
static
String
getDefaultType
()
{
public
final
static
String
getDefaultType
()
{
String
cstype
;
String
cstype
;
...
...
src/share/classes/javax/net/ssl/KeyManagerFactory.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 1999, 20
07
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
12
, 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
...
@@ -53,17 +53,13 @@ public class KeyManagerFactory {
...
@@ -53,17 +53,13 @@ public class KeyManagerFactory {
* Obtains the default KeyManagerFactory algorithm name.
* Obtains the default KeyManagerFactory algorithm name.
*
*
* <p>The default algorithm can be changed at runtime by setting
* <p>The default algorithm can be changed at runtime by setting
* the value of the "ssl.KeyManagerFactory.algorithm" security
* the value of the {@code ssl.KeyManagerFactory.algorithm}
* property (set in the Java security properties file or by calling
* security property to the desired algorithm name.
* {@link java.security.Security#setProperty(java.lang.String,
* java.lang.String)})
* to the desired algorithm name.
*
*
* @see java.security.Security#setProperty(java.lang.String,
* @see java.security.Security security properties
* java.lang.String)
* @return the default algorithm name as specified by the
* @return the default algorithm name as specified in the
* {@code ssl.KeyManagerFactory.algorithm} security property, or an
* Java security properties, or an implementation-specific
* implementation-specific default if no such property exists.
* default if no such property exists.
*/
*/
public
final
static
String
getDefaultAlgorithm
()
{
public
final
static
String
getDefaultAlgorithm
()
{
String
type
;
String
type
;
...
...
src/share/classes/javax/net/ssl/TrustManagerFactory.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 1999, 20
08
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
12
, 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
...
@@ -53,14 +53,13 @@ public class TrustManagerFactory {
...
@@ -53,14 +53,13 @@ public class TrustManagerFactory {
* Obtains the default TrustManagerFactory algorithm name.
* Obtains the default TrustManagerFactory algorithm name.
*
*
* <p>The default TrustManager can be changed at runtime by setting
* <p>The default TrustManager can be changed at runtime by setting
* the value of the "ssl.TrustManagerFactory.algorithm" security
* the value of the {@code ssl.TrustManagerFactory.algorithm}
* property (set in the Java security properties file or by calling
* security property to the desired algorithm name.
* {@link java.security.Security#setProperty(String, String) })
*
* to the desired algorithm name.
* @see java.security.Security security properties
*
* @return the default algorithm name as specified by the
* @return the default algorithm name as specified in the
* {@code ssl.TrustManagerFactory.algorithm} security property, or an
* Java security properties, or an implementation-specific default
* implementation-specific default if no such property exists.
* if no such property exists.
*/
*/
public
final
static
String
getDefaultAlgorithm
()
{
public
final
static
String
getDefaultAlgorithm
()
{
String
type
;
String
type
;
...
...
src/share/classes/javax/security/auth/Policy.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 1998, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 201
2
, 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
...
@@ -126,14 +126,9 @@ import sun.security.util.Debug;
...
@@ -126,14 +126,9 @@ import sun.security.util.Debug;
* are rejected. Such permission must be listed in the
* are rejected. Such permission must be listed in the
* <code>java.security.Policy</code>.
* <code>java.security.Policy</code>.
*
*
* <p> The default <code>Policy</code> implementation can be changed by
* <p> The default {@code Policy} implementation can be changed by
* setting the value of the "auth.policy.provider" security property
* setting the value of the {@code auth.policy.provider} security property to
* (in the Java security properties file) to the fully qualified name of
* the fully qualified name of the desired {@code Policy} implementation class.
* the desired <code>Policy</code> implementation class.
* The Java security properties file is located in the file named
* <JAVA_HOME>/lib/security/java.security.
* <JAVA_HOME> refers to the value of the java.home system property,
* and specifies the directory where the JRE is installed.
*
*
* @deprecated as of JDK version 1.4 -- Replaced by java.security.Policy.
* @deprecated as of JDK version 1.4 -- Replaced by java.security.Policy.
* java.security.Policy has a method:
* java.security.Policy has a method:
...
@@ -154,7 +149,7 @@ import sun.security.util.Debug;
...
@@ -154,7 +149,7 @@ import sun.security.util.Debug;
* These two APIs provide callers the means to query the
* These two APIs provide callers the means to query the
* Policy for Principal-based Permission entries.
* Policy for Principal-based Permission entries.
*
*
*
*
@see java.security.Security security properties
*/
*/
@Deprecated
@Deprecated
public
abstract
class
Policy
{
public
abstract
class
Policy
{
...
...
src/share/classes/javax/security/auth/callback/CallbackHandler.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 1999, 20
05
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
12
, 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
...
@@ -49,13 +49,9 @@ package javax.security.auth.callback;
...
@@ -49,13 +49,9 @@ package javax.security.auth.callback;
* can then choose to prompt for a username and password serially,
* can then choose to prompt for a username and password serially,
* or to prompt for both in a single window.
* or to prompt for both in a single window.
*
*
* <p> A default <code>CallbackHandler</code> class implementation
* <p> A default {@code CallbackHandler} class implementation
* may be specified in the <i>auth.login.defaultCallbackHandler</i>
* may be specified by setting the value of the
* security property. The security property can be set
* {@code auth.login.defaultCallbackHandler} security property.
* in the Java security properties file located in the file named
* <JAVA_HOME>/lib/security/java.security.
* <JAVA_HOME> refers to the value of the java.home system property,
* and specifies the directory where the JRE is installed.
*
*
* <p> If the security property is set to the fully qualified name of a
* <p> If the security property is set to the fully qualified name of a
* <code>CallbackHandler</code> implementation class,
* <code>CallbackHandler</code> implementation class,
...
@@ -67,6 +63,7 @@ package javax.security.auth.callback;
...
@@ -67,6 +63,7 @@ package javax.security.auth.callback;
* <p> All default handler implementations must provide a public
* <p> All default handler implementations must provide a public
* zero-argument constructor.
* zero-argument constructor.
*
*
* @see java.security.Security security properties
*/
*/
public
interface
CallbackHandler
{
public
interface
CallbackHandler
{
...
...
src/share/classes/javax/security/auth/login/Configuration.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 1998, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 201
2
, 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
...
@@ -173,12 +173,8 @@ import sun.security.jca.GetInstance;
...
@@ -173,12 +173,8 @@ import sun.security.jca.GetInstance;
* Configuration implementation (a default subclass implementation of this
* Configuration implementation (a default subclass implementation of this
* abstract class).
* abstract class).
* The default Configuration implementation can be changed by setting the value
* The default Configuration implementation can be changed by setting the value
* of the "login.configuration.provider" security property (in the Java
* of the {@code login.configuration.provider} security property to the fully
* security properties file) to the fully qualified name of the desired
* qualified name of the desired Configuration subclass implementation.
* Configuration subclass implementation. The Java security properties file
* is located in the file named <JAVA_HOME>/lib/security/java.security.
* <JAVA_HOME> refers to the value of the java.home system property,
* and specifies the directory where the JRE is installed.
*
*
* <p> Application code can directly subclass Configuration to provide a custom
* <p> Application code can directly subclass Configuration to provide a custom
* implementation. In addition, an instance of a Configuration object can be
* implementation. In addition, an instance of a Configuration object can be
...
@@ -190,6 +186,7 @@ import sun.security.jca.GetInstance;
...
@@ -190,6 +186,7 @@ import sun.security.jca.GetInstance;
* for a list of standard Configuration types.
* for a list of standard Configuration types.
*
*
* @see javax.security.auth.login.LoginContext
* @see javax.security.auth.login.LoginContext
* @see java.security.Security security properties
*/
*/
public
abstract
class
Configuration
{
public
abstract
class
Configuration
{
...
...
src/share/classes/javax/security/auth/login/LoginContext.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 1998, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 201
2
, 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
...
@@ -163,9 +163,9 @@ import sun.security.util.ResourcesMgr;
...
@@ -163,9 +163,9 @@ import sun.security.util.ResourcesMgr;
* input parameter, or if the caller specifies a <code>null</code>
* input parameter, or if the caller specifies a <code>null</code>
* CallbackHandler object (and a <code>null</code> value is permitted),
* CallbackHandler object (and a <code>null</code> value is permitted),
* the LoginContext queries the
* the LoginContext queries the
*
<i>auth.login.defaultCallbackHandler</i> security property
*
{@code auth.login.defaultCallbackHandler} security property for the
* f
or the fully qualified class name of a default handler implementation.
* f
ully qualified class name of a default handler
* If the security property is not set,
*
implementation.
If the security property is not set,
* then the underlying modules will not have a
* then the underlying modules will not have a
* CallbackHandler for use in communicating
* CallbackHandler for use in communicating
* with users. The caller thus assumes that the configured
* with users. The caller thus assumes that the configured
...
@@ -184,21 +184,13 @@ import sun.security.util.ResourcesMgr;
...
@@ -184,21 +184,13 @@ import sun.security.util.ResourcesMgr;
* </ul>
* </ul>
* </ol>
* </ol>
*
*
* <p> Note that Security Properties
* (such as <code>auth.login.defaultCallbackHandler</code>)
* can be set programmatically via the
* <code>java.security.Security</code> class,
* or statically in the Java security properties file located in the
* file named <JAVA_HOME>/lib/security/java.security.
* <JAVA_HOME> refers to the value of the java.home system property,
* and specifies the directory where the JRE is installed.
*
* @see java.security.Security
* @see java.security.Security
* @see javax.security.auth.AuthPermission
* @see javax.security.auth.AuthPermission
* @see javax.security.auth.Subject
* @see javax.security.auth.Subject
* @see javax.security.auth.callback.CallbackHandler
* @see javax.security.auth.callback.CallbackHandler
* @see javax.security.auth.login.Configuration
* @see javax.security.auth.login.Configuration
* @see javax.security.auth.spi.LoginModule
* @see javax.security.auth.spi.LoginModule
* @see java.security.Security security properties
*/
*/
public
class
LoginContext
{
public
class
LoginContext
{
...
...
src/share/classes/javax/security/cert/X509Certificate.java
浏览文件 @
322b3029
/*
/*
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
2
, 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
...
@@ -96,21 +96,17 @@ import java.util.Date;
...
@@ -96,21 +96,17 @@ import java.util.Date;
* </pre>
* </pre>
* <p>
* <p>
* In either case, the code that instantiates an X.509 certificate
* In either case, the code that instantiates an X.509 certificate
* consults the
Java security properties file to locate the actual
* consults the
value of the {@code cert.provider.x509v1} security property
* implementation or instantiates a default implementation.
*
to locate the actual
implementation or instantiates a default implementation.
* <p>
* <p>
* The Java security properties file is located in the file named
* The {@code cert.provider.x509v1} property is set to a default
* <JAVA_HOME>/lib/security/java.security.
* implementation for X.509 such as:
* <JAVA_HOME> refers to the value of the java.home system property,
* and specifies the directory where the JRE is installed.
* In the Security properties file, a default implementation
* for X.509 v1 may be given such as:
* <pre>
* <pre>
* cert.provider.x509v1=com.sun.security.cert.internal.x509.X509V1CertImpl
* cert.provider.x509v1=com.sun.security.cert.internal.x509.X509V1CertImpl
* </pre>
* </pre>
* <p>
* <p>
* The value of this
<code>cert.provider.x509v1</code>
property has to be
* The value of this
{@code cert.provider.x509v1}
property has to be
* changed to instatiate another implementation. If this security
* changed to insta
n
tiate another implementation. If this security
* property is not set, a default implementation will be used.
* property is not set, a default implementation will be used.
* Currently, due to possible security restrictions on access to
* Currently, due to possible security restrictions on access to
* Security properties, this value is looked up and cached at class
* Security properties, this value is looked up and cached at class
...
@@ -127,6 +123,7 @@ import java.util.Date;
...
@@ -127,6 +123,7 @@ import java.util.Date;
* @since 1.4
* @since 1.4
* @see Certificate
* @see Certificate
* @see java.security.cert.X509Extension
* @see java.security.cert.X509Extension
* @see java.security.Security security properties
*/
*/
public
abstract
class
X509Certificate
extends
Certificate
{
public
abstract
class
X509Certificate
extends
Certificate
{
...
@@ -156,8 +153,7 @@ public abstract class X509Certificate extends Certificate {
...
@@ -156,8 +153,7 @@ public abstract class X509Certificate extends Certificate {
* the data read from the input stream <code>inStream</code>.
* the data read from the input stream <code>inStream</code>.
* The implementation (X509Certificate is an abstract class) is
* The implementation (X509Certificate is an abstract class) is
* provided by the class specified as the value of the
* provided by the class specified as the value of the
* <code>cert.provider.x509v1</code>
* {@code cert.provider.x509v1} security property.
* property in the security properties file.
*
*
* <p>Note: Only one DER-encoded
* <p>Note: Only one DER-encoded
* certificate is expected to be in the input stream.
* certificate is expected to be in the input stream.
...
@@ -184,8 +180,7 @@ public abstract class X509Certificate extends Certificate {
...
@@ -184,8 +180,7 @@ public abstract class X509Certificate extends Certificate {
* the specified byte array.
* the specified byte array.
* The implementation (X509Certificate is an abstract class) is
* The implementation (X509Certificate is an abstract class) is
* provided by the class specified as the value of the
* provided by the class specified as the value of the
* <code>cert.provider.x509v1</code>
* {@code cert.provider.x509v1} security property.
* property in the security properties file.
*
*
* <p>Note: All X509Certificate
* <p>Note: All X509Certificate
* subclasses must provide a constructor of the form:
* subclasses must provide a constructor of the form:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录