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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -53,12 +53,13 @@ public class KeyManagerFactory {
/**
* <p>The default KeyManager can be changed by setting the value of the
* "sun.ssl.keymanager.type" security property (in the Java security
* properties file) to the desired name.
* {@code sun.ssl.keymanager.type} security property to the desired name.
*
* @return the default type as specified in the
* Java security properties file, or an implementation-specific default
* if no such property exists.
* @return the default type as specified by the
* {@code sun.ssl.keymanager.type} security property, or an
* implementation-specific default if no such property exists.
*
* @see java.security.Security security properties
*/
public
final
static
String
getDefaultAlgorithm
()
{
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -53,12 +53,13 @@ public class TrustManagerFactory {
/**
* <p>The default TrustManager can be changed by setting the value of the
* "sun.ssl.trustmanager.type" security property
* (in the Java security properties file) to the desired name.
* {@code sun.ssl.trustmanager.type} security property to the desired name.
*
* @return the default type as specified in the
* Java security properties file, or an implementation-specific default
* if no such property exists.
* @return the default type as specified by the
* {@code sun.ssl.trustmanager.type} security property, or an
* implementation-specific default if no such property exists.
*
* @see java.security.Security security properties
*/
public
final
static
String
getDefaultAlgorithm
()
{
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -59,13 +59,9 @@ import sun.security.util.PropertyExpander;
*
* <ol>
* <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.X</i>". These properties are set
* 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.
* <i>auth.policy.url.X</i>".
* Each property value specifies a <code>URL</code> pointing to a
* policy file to be loaded. Read in and load each policy.
*
...
...
@@ -235,6 +231,7 @@ import sun.security.util.PropertyExpander;
* @see java.security.CodeSource
* @see java.security.Permissions
* @see java.security.ProtectionDomain
* @see java.security.Security security properties
*/
@Deprecated
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -49,13 +49,9 @@ import sun.security.util.PropertyExpander;
*
* <ol>
* <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.X</i>. These properties are set
* 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.
* <i>login.config.url.X</i>.
* Each property value specifies a <code>URL</code> pointing to a
* login configuration file to be loaded. Read in and load
* each configuration.
...
...
@@ -87,6 +83,7 @@ import sun.security.util.PropertyExpander;
* <code>javax.security.auth.login.Configuration</code> class.
*
* @see javax.security.auth.login.LoginContext
* @see java.security.Security security properties
*/
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.
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>
</UL>
<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,
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>
</HTML>
src/share/classes/java/security/KeyStore.java
浏览文件 @
322b3029
...
...
@@ -695,27 +695,23 @@ public class KeyStore {
}
/**
* Returns the default keystore type as specified
in the Java security
*
properties file
, or the string
*
"jks" (acronym for "Java keystore"
)
* Returns the default keystore type as specified
by the
*
{@code keystore.type} security property
, or the string
*
{@literal "jks"} (acronym for {@literal "Java keystore"}
)
* 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
* 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.
*
* <p>The default keystore type can be changed by setting the value of the
* "keystore.type" security property (in the Java security properties
* file) to the desired keystore type.
* {@code keystore.type} security property to the desired keystore type.
*
* @return the default keystore type as specified
in
the
*
Java security properties file, or the string "jks"
* @return the default keystore type as specified
by
the
*
{@code keystore.type} security property, or the string {@literal "jks"}
* if no such property exists.
* @see java.security.Security security properties
*/
public
final
static
String
getDefaultType
()
{
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -48,12 +48,8 @@ import sun.security.util.SecurityConstants;
* <code>getPolicy</code> installs an instance of the default Policy
* implementation (a default subclass implementation of this abstract class).
* The default Policy implementation can be changed by setting the value
* of the "policy.provider" security property (in the Java security properties
* file) to the fully qualified name of the desired Policy 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.
* of the {@code policy.provider} security property to the fully qualified
* name of the desired Policy subclass implementation.
*
* <p> Application code can directly subclass Policy to provide a custom
* implementation. In addition, an instance of a Policy object can be
...
...
@@ -84,6 +80,7 @@ import sun.security.util.SecurityConstants;
* @see java.security.Provider
* @see java.security.ProtectionDomain
* @see java.security.Permission
* @see java.security.Security security properties
*/
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -39,6 +39,10 @@ import sun.security.jca.*;
* <p>This class centralizes all security properties and common security
* 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
*/
...
...
src/share/classes/java/security/cert/CertPathBuilder.java
浏览文件 @
322b3029
...
...
@@ -281,25 +281,23 @@ public class CertPathBuilder {
}
/**
* Returns the default <code>CertPathBuilder</code> type as specified in
* the Java security properties file, or the string "PKIX"
* 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.
* Returns the default {@code CertPathBuilder} type as specified by
* the {@code certpathbuilder.type} security property, or the string
* {@literal "PKIX"} if no such property exists.
*
* <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
* 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.
*
* <p>The default
<code>CertPathBuilder</code>
type can be changed by
* setting the value of the
"certpathbuilder.type"
security property
*
(in the Java security properties file)
to the desired type.
* <p>The default
{@code CertPathBuilder}
type can be changed by
* setting the value of the
{@code certpathbuilder.type}
security property
* to the desired type.
*
* @return the default <code>CertPathBuilder</code> type as specified
* in the Java security properties file, or the string "PKIX"
* if no such property exists.
* @see java.security.Security security properties
* @return the default {@code CertPathBuilder} type as specified
* by the {@code certpathbuilder.type} security property, or the string
* {@literal "PKIX"} if no such property exists.
*/
public
final
static
String
getDefaultType
()
{
String
cpbtype
=
...
...
src/share/classes/java/security/cert/CertPathValidator.java
浏览文件 @
322b3029
...
...
@@ -293,25 +293,23 @@ public class CertPathValidator {
}
/**
* Returns the default <code>CertPathValidator</code> type as specified in
* the Java security properties file, or the string "PKIX"
* 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.
* Returns the default {@code CertPathValidator} type as specified by
* the {@code certpathvalidator.type} security property, or the string
* {@literal "PKIX"} if no such property exists.
*
* <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
* 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.
*
* <p>The default
<code>CertPathValidator</code>
type can be changed by
* setting the value of the
"certpathvalidator.type" security proper
ty
*
(in the Java security properties file)
to the desired type.
* <p>The default
{@code CertPathValidator}
type can be changed by
* setting the value of the
{@code certpathvalidator.type} securi
ty
*
property
to the desired type.
*
* @return the default <code>CertPathValidator</code> type as specified
* in the Java security properties file, or the string "PKIX"
* if no such property exists.
* @see java.security.Security security properties
* @return the default {@code CertPathValidator} type as specified
* by the {@code certpathvalidator.type} security property, or the string
* {@literal "PKIX"} if no such property exists.
*/
public
final
static
String
getDefaultType
()
{
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -389,25 +389,23 @@ public class CertStore {
}
/**
* Returns the default <code>CertStore</code> type as specified in the
* Java security properties file, or the string "LDAP" 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 <code>CertStore</code> type can be used by applications
* Returns the default {@code CertStore} type as specified by the
* {@code certstore.type} security property, or the string
* {@literal "LDAP"} if no such property exists.
*
* <p>The default {@code CertStore} type can be used by 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
*
<code>CertStore</code>
type in case a user does not specify its own.
*
{@code getInstance}
methods, and want to provide a default
*
{@code CertStore}
type in case a user does not specify its own.
*
* <p>The default
<code>CertStore</code>
type can be changed by setting
* the value of the
"certstore.type" security property (in the Java
*
security properties file) to the
desired type.
* <p>The default
{@code CertStore}
type can be changed by setting
* the value of the
{@code certstore.type} security property to the
* desired type.
*
* @return the default <code>CertStore</code> type as specified in the
* Java security properties file, or the string "LDAP"
* if no such property exists.
* @see java.security.Security security properties
* @return the default {@code CertStore} type as specified by the
* {@code certstore.type} security property, or the string
* {@literal "LDAP"} if no such property exists.
*/
public
final
static
String
getDefaultType
()
{
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -53,17 +53,13 @@ public class KeyManagerFactory {
* Obtains the default KeyManagerFactory algorithm name.
*
* <p>The default algorithm can be changed at runtime by setting
* the value of the "ssl.KeyManagerFactory.algorithm" security
* property (set in the Java security properties file or by calling
* {@link java.security.Security#setProperty(java.lang.String,
* java.lang.String)})
* to the desired algorithm name.
* the value of the {@code ssl.KeyManagerFactory.algorithm}
* security property to the desired algorithm name.
*
* @see java.security.Security#setProperty(java.lang.String,
* java.lang.String)
* @return the default algorithm name as specified in the
* Java security properties, or an implementation-specific
* default if no such property exists.
* @see java.security.Security security properties
* @return the default algorithm name as specified by the
* {@code ssl.KeyManagerFactory.algorithm} security property, or an
* implementation-specific default if no such property exists.
*/
public
final
static
String
getDefaultAlgorithm
()
{
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -53,14 +53,13 @@ public class TrustManagerFactory {
* Obtains the default TrustManagerFactory algorithm name.
*
* <p>The default TrustManager can be changed at runtime by setting
* the value of the "ssl.TrustManagerFactory.algorithm" security
* property (set in the Java security properties file or by calling
* {@link java.security.Security#setProperty(String, String) })
* to the desired algorithm name.
*
* @return the default algorithm name as specified in the
* Java security properties, or an implementation-specific default
* if no such property exists.
* the value of the {@code ssl.TrustManagerFactory.algorithm}
* security property to the desired algorithm name.
*
* @see java.security.Security security properties
* @return the default algorithm name as specified by the
* {@code ssl.TrustManagerFactory.algorithm} security property, or an
* implementation-specific default if no such property exists.
*/
public
final
static
String
getDefaultAlgorithm
()
{
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -126,14 +126,9 @@ import sun.security.util.Debug;
* are rejected. Such permission must be listed in the
* <code>java.security.Policy</code>.
*
* <p> The default <code>Policy</code> implementation can be changed by
* setting the value of the "auth.policy.provider" security property
* (in the Java security properties file) to the fully qualified name of
* 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.
* <p> The default {@code Policy} implementation can be changed by
* setting the value of the {@code auth.policy.provider} security property to
* the fully qualified name of the desired {@code Policy} implementation class.
*
* @deprecated as of JDK version 1.4 -- Replaced by java.security.Policy.
* java.security.Policy has a method:
...
...
@@ -154,7 +149,7 @@ import sun.security.util.Debug;
* These two APIs provide callers the means to query the
* Policy for Principal-based Permission entries.
*
*
*
@see java.security.Security security properties
*/
@Deprecated
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -49,13 +49,9 @@ package javax.security.auth.callback;
* can then choose to prompt for a username and password serially,
* or to prompt for both in a single window.
*
* <p> A default <code>CallbackHandler</code> class implementation
* may be specified in the <i>auth.login.defaultCallbackHandler</i>
* security property. The security property can be set
* 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> A default {@code CallbackHandler} class implementation
* may be specified by setting the value of the
* {@code auth.login.defaultCallbackHandler} security property.
*
* <p> If the security property is set to the fully qualified name of a
* <code>CallbackHandler</code> implementation class,
...
...
@@ -67,6 +63,7 @@ package javax.security.auth.callback;
* <p> All default handler implementations must provide a public
* zero-argument constructor.
*
* @see java.security.Security security properties
*/
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -173,12 +173,8 @@ import sun.security.jca.GetInstance;
* Configuration implementation (a default subclass implementation of this
* abstract class).
* The default Configuration implementation can be changed by setting the value
* of the "login.configuration.provider" security property (in the Java
* security properties file) to the fully qualified name of the desired
* 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.
* of the {@code login.configuration.provider} security property to the fully
* qualified name of the desired Configuration subclass implementation.
*
* <p> Application code can directly subclass Configuration to provide a custom
* implementation. In addition, an instance of a Configuration object can be
...
...
@@ -190,6 +186,7 @@ import sun.security.jca.GetInstance;
* for a list of standard Configuration types.
*
* @see javax.security.auth.login.LoginContext
* @see java.security.Security security properties
*/
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -163,9 +163,9 @@ import sun.security.util.ResourcesMgr;
* input parameter, or if the caller specifies a <code>null</code>
* CallbackHandler object (and a <code>null</code> value is permitted),
* the LoginContext queries the
*
<i>auth.login.defaultCallbackHandler</i> security property
* f
or the fully qualified class name of a default handler implementation.
* If the security property is not set,
*
{@code auth.login.defaultCallbackHandler} security property for the
* f
ully qualified class name of a default handler
*
implementation.
If the security property is not set,
* then the underlying modules will not have a
* CallbackHandler for use in communicating
* with users. The caller thus assumes that the configured
...
...
@@ -184,21 +184,13 @@ import sun.security.util.ResourcesMgr;
* </ul>
* </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 javax.security.auth.AuthPermission
* @see javax.security.auth.Subject
* @see javax.security.auth.callback.CallbackHandler
* @see javax.security.auth.login.Configuration
* @see javax.security.auth.spi.LoginModule
* @see java.security.Security security properties
*/
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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -96,21 +96,17 @@ import java.util.Date;
* </pre>
* <p>
* In either case, the code that instantiates an X.509 certificate
* consults the
Java security properties file to locate the actual
* implementation or instantiates a default implementation.
* consults the
value of the {@code cert.provider.x509v1} security property
*
to locate the actual
implementation or instantiates a default implementation.
* <p>
* 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.
* In the Security properties file, a default implementation
* for X.509 v1 may be given such as:
* The {@code cert.provider.x509v1} property is set to a default
* implementation for X.509 such as:
* <pre>
* cert.provider.x509v1=com.sun.security.cert.internal.x509.X509V1CertImpl
* </pre>
* <p>
* The value of this
<code>cert.provider.x509v1</code>
property has to be
* changed to instatiate another implementation. If this security
* The value of this
{@code cert.provider.x509v1}
property has to be
* changed to insta
n
tiate another implementation. If this security
* property is not set, a default implementation will be used.
* Currently, due to possible security restrictions on access to
* Security properties, this value is looked up and cached at class
...
...
@@ -127,6 +123,7 @@ import java.util.Date;
* @since 1.4
* @see Certificate
* @see java.security.cert.X509Extension
* @see java.security.Security security properties
*/
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 implementation (X509Certificate is an abstract class) is
* provided by the class specified as the value of the
* <code>cert.provider.x509v1</code>
* property in the security properties file.
* {@code cert.provider.x509v1} security property.
*
* <p>Note: Only one DER-encoded
* certificate is expected to be in the input stream.
...
...
@@ -184,8 +180,7 @@ public abstract class X509Certificate extends Certificate {
* the specified byte array.
* The implementation (X509Certificate is an abstract class) is
* provided by the class specified as the value of the
* <code>cert.provider.x509v1</code>
* property in the security properties file.
* {@code cert.provider.x509v1} security property.
*
* <p>Note: All X509Certificate
* 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录