java.security-linux revision 6030
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# This is the "master security properties file".
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# In this file, various security properties are set for use by
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# java.security classes. This is where users can statically register
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# Cryptography Package Providers ("providers" for short). The term
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# "provider" refers to a package or set of packages that supply a
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# concrete implementation of a subset of the cryptography aspects of
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# the Java Security API. A provider may, for example, implement one or
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# more digital signature algorithms or message digest algorithms.
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# Each provider must implement a subclass of the Provider class.
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# To register a provider in this master security properties file,
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# specify the Provider subclass name and priority in the format
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# This declares a provider, and specifies its preference
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# order n. The preference order is the order in which providers are
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# searched for requested algorithms (when no specific provider is
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# requested). The order is 1-based; 1 is the most preferred, followed
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# by 2, and so on.
65e99be301d5a19db33f25841f671756e8dbb9b5ludovicp# <className> must specify the subclass of the Provider class whose
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# constructor sets the values of various properties that are required
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# for the Java Security API to look up the algorithms or other
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# facilities implemented by the provider.
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# There must be at least one provider specification in java.security.
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# There is a default provider that comes standard with the JDK. It
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# is called the "SUN" provider, and its Provider subclass
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# named Sun appears in the sun.security.provider package. Thus, the
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# "SUN" provider is registered via the following:
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# (The number 1 is used for the default provider.)
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# Note: Providers can be dynamically registered instead by calls to
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# either the addProvider or insertProviderAt method in the Security
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# List of providers and their preference orders (see above):
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergarasecurity.provider.4=com.sun.net.ssl.internal.ssl.Provider
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergarasecurity.provider.8=org.jcp.xml.dsig.internal.dom.XMLDSigRI
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergarasecurity.provider.9=sun.security.smartcardio.SunPCSC
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# Select the source of seed data for SecureRandom. By default an
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# attempt is made to use the entropy gathering device specified by
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# the securerandom.source property. If an exception occurs when
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# accessing the URL then the traditional system/thread activity
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# algorithm is used.
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# On Solaris and Linux systems, if file:/dev/urandom is specified and it
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# exists, a special SecureRandom implementation is activated by default.
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# This "NativePRNG" reads random bytes directly from /dev/urandom.
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# On Windows systems, the URLs file:/dev/random and file:/dev/urandom
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# enables use of the Microsoft CryptoAPI seed functionality.
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# The entropy gathering device is described as a URL and can also
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# be specified with the system property "java.security.egd". For example,
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# Specifying this system property will override the securerandom.source
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# Class to instantiate as the javax.security.auth.login.Configuration
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergaralogin.configuration.provider=com.sun.security.auth.login.ConfigFile
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# Default login configuration file
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara#login.config.url.1=file:${user.home}/.java.login.config
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# Class to instantiate as the system Policy. This is the name of the class
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# that will be used as the Policy object.
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# The default is to have a single system-wide policy file,
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# and a policy file in the user's home directory.
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergarapolicy.url.1=file:${java.home}/lib/security/java.policy
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# whether or not we expand properties in the policy file
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# if this is set to false, properties (${...}) will not be expanded in policy
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# whether or not we allow an extra policy to be passed on the command line
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# with -Djava.security.policy=somefile. Comment out this line to disable
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# this feature.
cd43bd05ce6da5cb1dff1d9a5ad2abf200f6257djvergara# whether or not we look into the IdentityScope for trusted Identities
keystore.type=jks
package.access=sun.,\
package.definition=sun.,\
# or overridden on the command line via -Djava.security.properties
# the javax.net.ssl package.
ssl.KeyManagerFactory.algorithm=SunX509
# ocsp.enable=true
# then both the "ocsp.responderCertIssuerName" and
# "ocsp.responderCertSerialNumber" properties must be used instead. When this
# ocsp.responderCertSubjectName="CN=OCSP Responder, O=XYZ Corp"
# property is set then the "ocsp.responderCertSerialNumber" property must also
# be set. When the "ocsp.responderCertSubjectName" property is set then this
# ocsp.responderCertIssuerName="CN=Enterprise CA, O=XYZ Corp"
# validation. When this property is set then the "ocsp.responderCertIssuerName"
# property must also be set. When the "ocsp.responderCertSubjectName" property
# ocsp.responderCertSerialNumber=2A:FF:00
# more than what is defined in krb5.conf, it will be ignored.
# The blacklist is reset when krb5.conf is reloaded. You can add
# refreshKrb5Config=true to a JAAS configuration file so that krb5.conf is
# krb5.kdc.bad.policy = tryLast
# krb5.kdc.bad.policy = tryLess:2,2000
krb5.kdc.bad.policy = tryLast
# and/or key length. This includes algorithms used in certificates, as well
# jdk.certpath.disabledAlgorithms=MD2, DSA, RSA keySize < 2048
jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024
# Algorithm restrictions for Secure Socket Layer/Transport Layer Security
# (SSL/TLS) processing
# when using SSL/TLS. This section describes the mechanism for disabling
# algorithms during SSL/TLS security parameters negotiation, including cipher
# This is in addition to the jdk.certpath.disabledAlgorithms property above.
# See the specification of "jdk.certpath.disabledAlgorithms" for the
# jdk.tls.disabledAlgorithms=MD5, SHA1, DSA, RSA keySize < 2048