java.security-solaris revision 4597
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# This is the "master security properties file".
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# In this file, various security properties are set for use by
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# java.security classes. This is where users can statically register
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Cryptography Package Providers ("providers" for short). The term
12178c86525332bb0ab66155feb61fbf32eca6acEvan Hunt# "provider" refers to a package or set of packages that supply a
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# concrete implementation of a subset of the cryptography aspects of
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# the Java Security API. A provider may, for example, implement one or
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# more digital signature algorithms or message digest algorithms.
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# Each provider must implement a subclass of the Provider class.
e13d04fda918c0c14c2247475bb99e0760d9a6a4Evan Hunt# To register a provider in this master security properties file,
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# specify the Provider subclass name and priority in the format
dab4aac006fadcaf3c5a9ccd983188b37ead08eeMark Andrews# This declares a provider, and specifies its preference
d1ca4caece46d1687e24ef4cdaf23d958f666da7Mark Andrews# order n. The preference order is the order in which providers are
d1ca4caece46d1687e24ef4cdaf23d958f666da7Mark Andrews# searched for requested algorithms (when no specific provider is
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecicki# requested). The order is 1-based; 1 is the most preferred, followed
447dfe4f115b17274eabf1087f035634e1129bb9Mark Andrews# by 2, and so on.
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# <className> must specify the subclass of the Provider class whose
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecicki# constructor sets the values of various properties that are required
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# for the Java Security API to look up the algorithms or other
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# facilities implemented by the provider.
0e40083fdd5445703bd30e46e5bfe7d047bced12Brian Wellington# There must be at least one provider specification in java.security.
b493dfe8bce94b05efc0f161238d32f1234c5670Brian Wellington# There is a default provider that comes standard with the JDK. It
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# is called the "SUN" provider, and its Provider subclass
a27fe4c990f96bd792f2a07ca4d38c78d5b9df2cTatuya JINMEI 神明達哉# named Sun appears in the sun.security.provider package. Thus, the
3cac42f8db0eaf7c600424cca919e83740852f7eAndreas Gustafsson# "SUN" provider is registered via the following:
81dcbe87a7d6ae6fe3228bc183a8b726853dc87cBrian Wellington# security.provider.1=sun.security.provider.Sun
b493dfe8bce94b05efc0f161238d32f1234c5670Brian Wellington# (The number 1 is used for the default provider.)
3cac42f8db0eaf7c600424cca919e83740852f7eAndreas Gustafsson# Note: Providers can be dynamically registered instead by calls to
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# either the addProvider or insertProviderAt method in the Security
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# List of providers and their preference orders (see above):
a27fe4c990f96bd792f2a07ca4d38c78d5b9df2cTatuya JINMEI 神明達哉security.provider.1=com.oracle.security.ucrypto.UcryptoProvider ${java.home}/lib/security/ucrypto-solaris.cfg
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrencesecurity.provider.2=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/sunpkcs11-solaris.cfg
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyersecurity.provider.6=com.sun.net.ssl.internal.ssl.Provider
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyersecurity.provider.7=com.sun.crypto.provider.SunJCE
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrencesecurity.provider.8=sun.security.jgss.SunProvider
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyersecurity.provider.9=com.sun.security.sasl.Provider
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyersecurity.provider.10=org.jcp.xml.dsig.internal.dom.XMLDSigRI
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyersecurity.provider.11=sun.security.smartcardio.SunPCSC
803b50652fd6ad81d04d18fc04332c8a94f8fe9aAndreas Gustafsson# Select the source of seed data for SecureRandom. By default an
803b50652fd6ad81d04d18fc04332c8a94f8fe9aAndreas Gustafsson# attempt is made to use the entropy gathering device specified by
803b50652fd6ad81d04d18fc04332c8a94f8fe9aAndreas Gustafsson# the securerandom.source property. If an exception occurs when
803b50652fd6ad81d04d18fc04332c8a94f8fe9aAndreas Gustafsson# accessing the URL then the traditional system/thread activity
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# algorithm is used.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# On Solaris and Linux systems, if file:/dev/urandom is specified and it
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# exists, a special SecureRandom implementation is activated by default.
08f860f800d32007a0c9bf456f6c35fbb2ecbc81Evan Hunt# This "NativePRNG" reads random bytes directly from /dev/urandom.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# On Windows systems, the URLs file:/dev/random and file:/dev/urandom
f4cbe536b11da614fe05aeaeff41e324854cda7bMark Andrews# enables use of the Microsoft CryptoAPI seed functionality.
803b50652fd6ad81d04d18fc04332c8a94f8fe9aAndreas Gustafsson# The entropy gathering device is described as a URL and can also
803b50652fd6ad81d04d18fc04332c8a94f8fe9aAndreas Gustafsson# be specified with the system property "java.security.egd". For example,
803b50652fd6ad81d04d18fc04332c8a94f8fe9aAndreas Gustafsson# Specifying this system property will override the securerandom.source
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# Class to instantiate as the javax.security.auth.login.Configuration
a8f6b2aa46f882c7c680b7bdab1dfb78a76787eaMark Andrewslogin.configuration.provider=com.sun.security.auth.login.ConfigFile
74cb99072c4b0ebd2ccafcfa284288fa760f7a1aMark Andrews# Default login configuration file
8a5809527e6c85e39699901712a455d5480907c1Evan Hunt#login.config.url.1=file:${user.home}/.java.login.config
8a5809527e6c85e39699901712a455d5480907c1Evan Hunt# Class to instantiate as the system Policy. This is the name of the class
# with -Djava.security.policy=somefile. Comment out this line to disable
keystore.type=jks
# 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
# 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