java.security-windows revision 5974
0N/A#
0N/A# This is the "master security properties file".
0N/A#
0N/A# In this file, various security properties are set for use by
0N/A# java.security classes. This is where users can statically register
0N/A# Cryptography Package Providers ("providers" for short). The term
0N/A# "provider" refers to a package or set of packages that supply a
0N/A# concrete implementation of a subset of the cryptography aspects of
0N/A# the Java Security API. A provider may, for example, implement one or
0N/A# more digital signature algorithms or message digest algorithms.
0N/A#
0N/A# Each provider must implement a subclass of the Provider class.
0N/A# To register a provider in this master security properties file,
0N/A# specify the Provider subclass name and priority in the format
0N/A#
0N/A# security.provider.<n>=<className>
0N/A#
0N/A# This declares a provider, and specifies its preference
0N/A# order n. The preference order is the order in which providers are
0N/A# searched for requested algorithms (when no specific provider is
0N/A# requested). The order is 1-based; 1 is the most preferred, followed
0N/A# by 2, and so on.
0N/A#
0N/A# <className> must specify the subclass of the Provider class whose
0N/A# constructor sets the values of various properties that are required
0N/A# for the Java Security API to look up the algorithms or other
0N/A# facilities implemented by the provider.
0N/A#
0N/A# There must be at least one provider specification in java.security.
0N/A# There is a default provider that comes standard with the JDK. It
0N/A# is called the "SUN" provider, and its Provider subclass
0N/A# named Sun appears in the sun.security.provider package. Thus, the
0N/A# "SUN" provider is registered via the following:
0N/A#
0N/A# security.provider.1=sun.security.provider.Sun
0N/A#
0N/A# (The number 1 is used for the default provider.)
0N/A#
0N/A# Note: Providers can be dynamically registered instead by calls to
0N/A# either the addProvider or insertProviderAt method in the Security
0N/A# class.
0N/A
0N/A#
0N/A# List of providers and their preference orders (see above):
0N/A#
4597N/Asecurity.provider.1=sun.security.provider.Sun
4597N/Asecurity.provider.2=sun.security.rsa.SunRsaSign
4597N/Asecurity.provider.3=sun.security.ec.SunEC
4597N/Asecurity.provider.4=com.sun.net.ssl.internal.ssl.Provider
4597N/Asecurity.provider.5=com.sun.crypto.provider.SunJCE
4597N/Asecurity.provider.6=sun.security.jgss.SunProvider
4597N/Asecurity.provider.7=com.sun.security.sasl.Provider
4597N/Asecurity.provider.8=org.jcp.xml.dsig.internal.dom.XMLDSigRI
4597N/Asecurity.provider.9=sun.security.smartcardio.SunPCSC
4597N/Asecurity.provider.10=sun.security.mscapi.SunMSCAPI
4597N/A
0N/A#
0N/A# Select the source of seed data for SecureRandom. By default an
0N/A# attempt is made to use the entropy gathering device specified by
2999N/A# the securerandom.source property. If an exception occurs when
0N/A# accessing the URL then the traditional system/thread activity
2999N/A# algorithm is used.
2999N/A#
0N/A# On Solaris and Linux systems, if file:/dev/urandom is specified and it
0N/A# exists, a special SecureRandom implementation is activated by default.
0N/A# This "NativePRNG" reads random bytes directly from /dev/urandom.
0N/A#
0N/A# On Windows systems, the URLs file:/dev/random and file:/dev/urandom
0N/A# enables use of the Microsoft CryptoAPI seed functionality.
0N/A#
0N/Asecurerandom.source=file:/dev/urandom
0N/A#
0N/A# The entropy gathering device is described as a URL and can also
0N/A# be specified with the system property "java.security.egd". For example,
0N/A# -Djava.security.egd=file:/dev/urandom
0N/A# Specifying this system property will override the securerandom.source
2999N/A# setting.
0N/A
0N/A#
0N/A# Class to instantiate as the javax.security.auth.login.Configuration
0N/A# provider.
0N/A#
0N/Alogin.configuration.provider=com.sun.security.auth.login.ConfigFile
0N/A
0N/A#
0N/A# Default login configuration file
0N/A#
0N/A#login.config.url.1=file:${user.home}/.java.login.config
0N/A
0N/A#
0N/A# Class to instantiate as the system Policy. This is the name of the class
0N/A# that will be used as the Policy object.
0N/A#
0N/Apolicy.provider=sun.security.provider.PolicyFile
0N/A
0N/A# The default is to have a single system-wide policy file,
0N/A# and a policy file in the user's home directory.
0N/Apolicy.url.1=file:${java.home}/lib/security/java.policy
0N/Apolicy.url.2=file:${user.home}/.java.policy
0N/A
0N/A# whether or not we expand properties in the policy file
0N/A# if this is set to false, properties (${...}) will not be expanded in policy
0N/A# files.
0N/Apolicy.expandProperties=true
0N/A
0N/A# whether or not we allow an extra policy to be passed on the command line
0N/A# with -Djava.security.policy=somefile. Comment out this line to disable
0N/A# this feature.
0N/Apolicy.allowSystemProperty=true
0N/A
0N/A# whether or not we look into the IdentityScope for trusted Identities
0N/A# when encountering a 1.1 signed JAR file. If the identity is found
0N/A# and is trusted, we grant it AllPermission.
0N/Apolicy.ignoreIdentityScope=false
0N/A
0N/A#
0N/A# Default keystore type.
0N/A#
0N/Akeystore.type=jks
0N/A
0N/A#
0N/A# List of comma-separated packages that start with or equal this string
0N/A# will cause a security exception to be thrown when
0N/A# passed to checkPackageAccess unless the
0N/A# corresponding RuntimePermission ("accessClassInPackage."+package) has
0N/A# been granted.
0N/Apackage.access=sun.,\
5696N/A com.sun.xml.internal.,\
5696N/A com.sun.imageio.,\
5696N/A com.sun.istack.internal.,\
5724N/A com.sun.jmx.,\
5724N/A com.sun.proxy.,\
5724N/A com.sun.org.apache.bcel.internal.,\
5696N/A com.sun.org.apache.regexp.internal.,\
5696N/A com.sun.org.apache.xerces.internal.,\
5696N/A com.sun.org.apache.xpath.internal.,\
5696N/A com.sun.org.apache.xalan.internal.extensions.,\
0N/A com.sun.org.apache.xalan.internal.lib.,\
0N/A com.sun.org.apache.xalan.internal.res.,\
0N/A com.sun.org.apache.xalan.internal.templates.,\
0N/A com.sun.org.apache.xalan.internal.utils.,\
0N/A com.sun.org.apache.xalan.internal.xslt.,\
0N/A com.sun.org.apache.xalan.internal.xsltc.cmdline.,\
0N/A com.sun.org.apache.xalan.internal.xsltc.compiler.,\
0N/A com.sun.org.apache.xalan.internal.xsltc.trax.,\
5085N/A com.sun.org.apache.xalan.internal.xsltc.util.,\
5085N/A com.sun.org.apache.xml.internal.res.,\
0N/A com.sun.org.apache.xml.internal.serializer.utils.,\
5696N/A com.sun.org.apache.xml.internal.utils.,\
5696N/A com.sun.org.glassfish.,\
5696N/A com.sun.java.accessibility.
5724N/A
5724N/A#
5724N/A# List of comma-separated packages that start with or equal this string
5696N/A# will cause a security exception to be thrown when
5696N/A# passed to checkPackageDefinition unless the
5696N/A# corresponding RuntimePermission ("defineClassInPackage."+package) has
5696N/A# been granted.
0N/A#
0N/A# by default, none of the class loaders supplied with the JDK call
0N/A# checkPackageDefinition.
0N/A#
0N/Apackage.definition=sun.,\
0N/A com.sun.xml.internal.,\
0N/A com.sun.imageio.,\
0N/A com.sun.istack.internal.,\
2999N/A com.sun.jmx.,\
0N/A com.sun.proxy.,\
0N/A com.sun.org.apache.bcel.internal.,\
0N/A com.sun.org.apache.regexp.internal.,\
0N/A com.sun.org.apache.xerces.internal.,\
0N/A com.sun.org.apache.xpath.internal.,\
0N/A com.sun.org.apache.xalan.internal.extensions.,\
0N/A com.sun.org.apache.xalan.internal.lib.,\
0N/A com.sun.org.apache.xalan.internal.res.,\
0N/A com.sun.org.apache.xalan.internal.templates.,\
0N/A com.sun.org.apache.xalan.internal.utils.,\
0N/A com.sun.org.apache.xalan.internal.xslt.,\
0N/A com.sun.org.apache.xalan.internal.xsltc.cmdline.,\
0N/A com.sun.org.apache.xalan.internal.xsltc.compiler.,\
0N/A com.sun.org.apache.xalan.internal.xsltc.trax.,\
2999N/A com.sun.org.apache.xalan.internal.xsltc.util.,\
2999N/A com.sun.org.apache.xml.internal.res.,\
0N/A com.sun.org.apache.xml.internal.serializer.utils.,\
0N/A com.sun.org.apache.xml.internal.utils.,\
2999N/A com.sun.org.glassfish.,\
0N/A com.sun.java.accessibility.
0N/A
2999N/A#
0N/A# Determines whether this properties file can be appended to
0N/A# or overridden on the command line via -Djava.security.properties
0N/A#
0N/Asecurity.overridePropertiesFile=true
0N/A
0N/A#
0N/A# Determines the default key and trust manager factory algorithms for
0N/A# the javax.net.ssl package.
0N/A#
0N/Assl.KeyManagerFactory.algorithm=SunX509
0N/Assl.TrustManagerFactory.algorithm=PKIX
2999N/A
0N/A#
0N/A# The Java-level namelookup cache policy for successful lookups:
0N/A#
0N/A# any negative value: caching forever
0N/A# any positive value: the number of seconds to cache an address for
0N/A# zero: do not cache
0N/A#
0N/A# default value is forever (FOREVER). For security reasons, this
2999N/A# caching is made forever when a security manager is set. When a security
0N/A# manager is not set, the default behavior in this implementation
0N/A# is to cache for 30 seconds.
0N/A#
0N/A# NOTE: setting this to anything other than the default value can have
0N/A# serious security implications. Do not set it unless
0N/A# you are sure you are not exposed to DNS spoofing attack.
0N/A#
0N/A#networkaddress.cache.ttl=-1
2999N/A
0N/A# The Java-level namelookup cache policy for failed lookups:
0N/A#
0N/A# any negative value: cache forever
0N/A# any positive value: the number of seconds to cache negative lookup results
0N/A# zero: do not cache
0N/A#
0N/A# In some Microsoft Windows networking environments that employ
0N/A# the WINS name service in addition to DNS, name service lookups
0N/A# that fail may take a noticeably long time to return (approx. 5 seconds).
0N/A# For this reason the default caching policy is to maintain these
0N/A# results for 10 seconds.
2999N/A#
0N/A#
0N/Anetworkaddress.cache.negative.ttl=10
0N/A
0N/A#
0N/A# Properties to configure OCSP for certificate revocation checking
2999N/A#
2999N/A
2999N/A# Enable OCSP
0N/A#
0N/A# By default, OCSP is not used for certificate revocation checking.
0N/A# This property enables the use of OCSP when set to the value "true".
0N/A#
0N/A# NOTE: SocketPermission is required to connect to an OCSP responder.
0N/A#
0N/A# Example,
0N/A# ocsp.enable=true
0N/A
0N/A#
0N/A# Location of the OCSP responder
0N/A#
0N/A# By default, the location of the OCSP responder is determined implicitly
0N/A# from the certificate being validated. This property explicitly specifies
0N/A# the location of the OCSP responder. The property is used when the
2999N/A# Authority Information Access extension (defined in RFC 3280) is absent
2999N/A# from the certificate or when it requires overriding.
2999N/A#
0N/A# Example,
0N/A# ocsp.responderURL=http://ocsp.example.net:80
0N/A
0N/A#
2999N/A# Subject name of the OCSP responder's certificate
0N/A#
0N/A# By default, the certificate of the OCSP responder is that of the issuer
0N/A# of the certificate being validated. This property identifies the certificate
0N/A# of the OCSP responder when the default does not apply. Its value is a string
0N/A# distinguished name (defined in RFC 2253) which identifies a certificate in
0N/A# the set of certificates supplied during cert path validation. In cases where
0N/A# the subject name alone is not sufficient to uniquely identify the certificate
0N/A# then both the "ocsp.responderCertIssuerName" and
0N/A# "ocsp.responderCertSerialNumber" properties must be used instead. When this
0N/A# property is set then those two properties are ignored.
0N/A#
0N/A# Example,
0N/A# ocsp.responderCertSubjectName="CN=OCSP Responder, O=XYZ Corp"
0N/A
2999N/A#
2665N/A# Issuer name of the OCSP responder's certificate
2665N/A#
2665N/A# By default, the certificate of the OCSP responder is that of the issuer
2665N/A# of the certificate being validated. This property identifies the certificate
2665N/A# of the OCSP responder when the default does not apply. Its value is a string
2665N/A# distinguished name (defined in RFC 2253) which identifies a certificate in
2665N/A# the set of certificates supplied during cert path validation. When this
2665N/A# property is set then the "ocsp.responderCertSerialNumber" property must also
2665N/A# be set. When the "ocsp.responderCertSubjectName" property is set then this
2665N/A# property is ignored.
2665N/A#
2665N/A# Example,
2665N/A# ocsp.responderCertIssuerName="CN=Enterprise CA, O=XYZ Corp"
2665N/A
2665N/A#
2665N/A# Serial number of the OCSP responder's certificate
2665N/A#
2665N/A# By default, the certificate of the OCSP responder is that of the issuer
2665N/A# of the certificate being validated. This property identifies the certificate
2665N/A# of the OCSP responder when the default does not apply. Its value is a string
2665N/A# of hexadecimal digits (colon or space separators may be present) which
2665N/A# identifies a certificate in the set of certificates supplied during cert path
2665N/A# validation. When this property is set then the "ocsp.responderCertIssuerName"
2665N/A# property must also be set. When the "ocsp.responderCertSubjectName" property
2665N/A# is set then this property is ignored.
2665N/A#
2665N/A# Example,
2999N/A# ocsp.responderCertSerialNumber=2A:FF:00
2999N/A
2999N/A#
2999N/A# Policy for failed Kerberos KDC lookups:
2999N/A#
2999N/A# When a KDC is unavailable (network error, service failure, etc), it is
2999N/A# put inside a blacklist and accessed less often for future requests. The
2999N/A# value (case-insensitive) for this policy can be:
2999N/A#
2999N/A# tryLast
2999N/A# KDCs in the blacklist are always tried after those not on the list.
2999N/A#
2999N/A# tryLess[:max_retries,timeout]
2999N/A# KDCs in the blacklist are still tried by their order in the configuration,
2999N/A# but with smaller max_retries and timeout values. max_retries and timeout
2999N/A# are optional numerical parameters (default 1 and 5000, which means once
2999N/A# and 5 seconds). Please notes that if any of the values defined here is
2999N/A# more than what is defined in krb5.conf, it will be ignored.
2999N/A#
2999N/A# Whenever a KDC is detected as available, it is removed from the blacklist.
2999N/A# The blacklist is reset when krb5.conf is reloaded. You can add
2999N/A# refreshKrb5Config=true to a JAAS configuration file so that krb5.conf is
2999N/A# reloaded whenever a JAAS authentication is attempted.
2999N/A#
2999N/A# Example,
2999N/A# krb5.kdc.bad.policy = tryLast
2999N/A# krb5.kdc.bad.policy = tryLess:2,2000
2999N/Akrb5.kdc.bad.policy = tryLast
2999N/A
2999N/A# Algorithm restrictions for certification path (CertPath) processing
2999N/A#
2999N/A# In some environments, certain algorithms or key lengths may be undesirable
2999N/A# for certification path building and validation. For example, "MD2" is
2999N/A# generally no longer considered to be a secure hash algorithm. This section
2999N/A# describes the mechanism for disabling algorithms based on algorithm name
2999N/A# and/or key length. This includes algorithms used in certificates, as well
2999N/A# as revocation information such as CRLs and signed OCSP Responses.
2999N/A#
2999N/A# The syntax of the disabled algorithm string is described as this Java
2999N/A# BNF-style:
2999N/A# DisabledAlgorithms:
2999N/A# " DisabledAlgorithm { , DisabledAlgorithm } "
2999N/A#
2999N/A# DisabledAlgorithm:
2999N/A# AlgorithmName [Constraint]
2999N/A#
2999N/A# AlgorithmName:
2999N/A# (see below)
2999N/A#
2999N/A# Constraint:
2999N/A# KeySizeConstraint
2999N/A#
2999N/A# KeySizeConstraint:
2999N/A# keySize Operator DecimalInteger
2999N/A#
2999N/A# Operator:
2999N/A# <= | < | == | != | >= | >
2999N/A#
2999N/A# DecimalInteger:
2999N/A# DecimalDigits
2999N/A#
2999N/A# DecimalDigits:
2999N/A# DecimalDigit {DecimalDigit}
2999N/A#
2999N/A# DecimalDigit: one of
2999N/A# 1 2 3 4 5 6 7 8 9 0
2999N/A#
2999N/A# The "AlgorithmName" is the standard algorithm name of the disabled
2999N/A# algorithm. See "Java Cryptography Architecture Standard Algorithm Name
2999N/A# Documentation" for information about Standard Algorithm Names. Matching
2999N/A# is performed using a case-insensitive sub-element matching rule. (For
2999N/A# example, in "SHA1withECDSA" the sub-elements are "SHA1" for hashing and
2999N/A# "ECDSA" for signatures.) If the assertion "AlgorithmName" is a
2999N/A# sub-element of the certificate algorithm name, the algorithm will be
2999N/A# rejected during certification path building and validation. For example,
2999N/A# the assertion algorithm name "DSA" will disable all certificate algorithms
2999N/A# that rely on DSA, such as NONEwithDSA, SHA1withDSA. However, the assertion
2999N/A# will not disable algorithms related to "ECDSA".
2999N/A#
2999N/A# A "Constraint" provides further guidance for the algorithm being specified.
2999N/A# The "KeySizeConstraint" requires a key of a valid size range if the
2999N/A# "AlgorithmName" is of a key algorithm. The "DecimalInteger" indicates the
2999N/A# key size specified in number of bits. For example, "RSA keySize <= 1024"
2999N/A# indicates that any RSA key with key size less than or equal to 1024 bits
2999N/A# should be disabled, and "RSA keySize < 1024, RSA keySize > 2048" indicates
2999N/A# that any RSA key with key size less than 1024 or greater than 2048 should
2999N/A# be disabled. Note that the "KeySizeConstraint" only makes sense to key
2999N/A# algorithms.
2999N/A#
2999N/A# Note: This property is currently used by Oracle's PKIX implementation. It
2999N/A# is not guaranteed to be examined and used by other implementations.
3006N/A#
# Example:
# jdk.certpath.disabledAlgorithms=MD2, DSA, RSA keySize < 2048
#
#
jdk.certpath.disabledAlgorithms=MD2
# Algorithm restrictions for Secure Socket Layer/Transport Layer Security
# (SSL/TLS) processing
#
# In some environments, certain algorithms or key lengths may be undesirable
# when using SSL/TLS. This section describes the mechanism for disabling
# algorithms during SSL/TLS security parameters negotiation, including cipher
# suites selection, peer authentication and key exchange mechanisms.
#
# For PKI-based peer authentication and key exchange mechanisms, this list
# of disabled algorithms will also be checked during certification path
# building and validation, including algorithms used in certificates, as
# well as revocation information such as CRLs and signed OCSP Responses.
# This is in addition to the jdk.certpath.disabledAlgorithms property above.
#
# See the specification of "jdk.certpath.disabledAlgorithms" for the
# syntax of the disabled algorithm string.
#
# Note: This property is currently used by Oracle's JSSE implementation.
# It is not guaranteed to be examined and used by other implementations.
#
# Example:
# jdk.tls.disabledAlgorithms=MD5, SHA1, DSA, RSA keySize < 2048