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