java.security 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. #
  2. # This is the "master security properties file".
  3. #
  4. # An alternate java.security properties file may be specified
  5. # from the command line via the system property
  6. #
  7. # -Djava.security.properties=<URL>
  8. #
  9. # This properties file appends to the master security properties file.
  10. # If both properties files specify values for the same key, the value
  11. # from the command-line properties file is selected, as it is the last
  12. # one loaded.
  13. #
  14. # Also, if you specify
  15. #
  16. # -Djava.security.properties==<URL> (2 equals),
  17. #
  18. # then that properties file completely overrides the master security
  19. # properties file.
  20. #
  21. # To disable the ability to specify an additional properties file from
  22. # the command line, set the key security.overridePropertiesFile
  23. # to false in the master security properties file. It is set to true
  24. # by default.
  25. # In this file, various security properties are set for use by
  26. # java.security classes. This is where users can statically register
  27. # Cryptography Package Providers ("providers" for short). The term
  28. # "provider" refers to a package or set of packages that supply a
  29. # concrete implementation of a subset of the cryptography aspects of
  30. # the Java Security API. A provider may, for example, implement one or
  31. # more digital signature algorithms or message digest algorithms.
  32. #
  33. # Each provider must implement a subclass of the Provider class.
  34. # To register a provider in this master security properties file,
  35. # specify the Provider subclass name and priority in the format
  36. #
  37. # security.provider.<n>=<className>
  38. #
  39. # This declares a provider, and specifies its preference
  40. # order n. The preference order is the order in which providers are
  41. # searched for requested algorithms (when no specific provider is
  42. # requested). The order is 1-based; 1 is the most preferred, followed
  43. # by 2, and so on.
  44. #
  45. # <className> must specify the subclass of the Provider class whose
  46. # constructor sets the values of various properties that are required
  47. # for the Java Security API to look up the algorithms or other
  48. # facilities implemented by the provider.
  49. #
  50. # There must be at least one provider specification in java.security.
  51. # There is a default provider that comes standard with the JDK. It
  52. # is called the "SUN" provider, and its Provider subclass
  53. # named Sun appears in the sun.security.provider package. Thus, the
  54. # "SUN" provider is registered via the following:
  55. #
  56. # security.provider.1=sun.security.provider.Sun
  57. #
  58. # (The number 1 is used for the default provider.)
  59. #
  60. # Note: Providers can be dynamically registered instead by calls to
  61. # either the addProvider or insertProviderAt method in the Security
  62. # class.
  63. #
  64. # List of providers and their preference orders (see above):
  65. #
  66. security.provider.1=sun.security.provider.Sun
  67. security.provider.2=sun.security.rsa.SunRsaSign
  68. security.provider.3=sun.security.ec.SunEC
  69. security.provider.4=com.sun.net.ssl.internal.ssl.Provider
  70. security.provider.5=com.sun.crypto.provider.SunJCE
  71. security.provider.6=sun.security.jgss.SunProvider
  72. security.provider.7=com.sun.security.sasl.Provider
  73. security.provider.8=org.jcp.xml.dsig.internal.dom.XMLDSigRI
  74. security.provider.9=sun.security.smartcardio.SunPCSC
  75. security.provider.10=sun.security.mscapi.SunMSCAPI
  76. #
  77. # Sun Provider SecureRandom seed source.
  78. #
  79. # Select the primary source of seed data for the "SHA1PRNG" and
  80. # "NativePRNG" SecureRandom implementations in the "Sun" provider.
  81. # (Other SecureRandom implementations might also use this property.)
  82. #
  83. # On Unix-like systems (for example, Solaris/Linux/MacOS), the
  84. # "NativePRNG" and "SHA1PRNG" implementations obtains seed data from
  85. # special device files such as file:/dev/random.
  86. #
  87. # On Windows systems, specifying the URLs "file:/dev/random" or
  88. # "file:/dev/urandom" will enable the native Microsoft CryptoAPI seeding
  89. # mechanism for SHA1PRNG.
  90. #
  91. # By default, an attempt is made to use the entropy gathering device
  92. # specified by the "securerandom.source" Security property. If an
  93. # exception occurs while accessing the specified URL:
  94. #
  95. # SHA1PRNG:
  96. # the traditional system/thread activity algorithm will be used.
  97. #
  98. # NativePRNG:
  99. # a default value of /dev/random will be used. If neither
  100. # are available, the implementation will be disabled.
  101. # "file" is the only currently supported protocol type.
  102. #
  103. # The entropy gathering device can also be specified with the System
  104. # property "java.security.egd". For example:
  105. #
  106. # % java -Djava.security.egd=file:/dev/random MainClass
  107. #
  108. # Specifying this System property will override the
  109. # "securerandom.source" Security property.
  110. #
  111. # In addition, if "file:/dev/random" or "file:/dev/urandom" is
  112. # specified, the "NativePRNG" implementation will be more preferred than
  113. # SHA1PRNG in the Sun provider.
  114. #
  115. securerandom.source=file:/dev/random
  116. #
  117. # A list of known strong SecureRandom implementations.
  118. #
  119. # To help guide applications in selecting a suitable strong
  120. # java.security.SecureRandom implementation, Java distributions should
  121. # indicate a list of known strong implementations using the property.
  122. #
  123. # This is a comma-separated list of algorithm and/or algorithm:provider
  124. # entries.
  125. #
  126. securerandom.strongAlgorithms=Windows-PRNG:SunMSCAPI,SHA1PRNG:SUN
  127. #
  128. # Class to instantiate as the javax.security.auth.login.Configuration
  129. # provider.
  130. #
  131. login.configuration.provider=sun.security.provider.ConfigFile
  132. #
  133. # Default login configuration file
  134. #
  135. #login.config.url.1=file:${user.home}/.java.login.config
  136. #
  137. # Class to instantiate as the system Policy. This is the name of the class
  138. # that will be used as the Policy object.
  139. #
  140. policy.provider=sun.security.provider.PolicyFile
  141. # The default is to have a single system-wide policy file,
  142. # and a policy file in the user's home directory.
  143. policy.url.1=file:${java.home}/lib/security/java.policy
  144. policy.url.2=file:${user.home}/.java.policy
  145. # whether or not we expand properties in the policy file
  146. # if this is set to false, properties (${...}) will not be expanded in policy
  147. # files.
  148. policy.expandProperties=true
  149. # whether or not we allow an extra policy to be passed on the command line
  150. # with -Djava.security.policy=somefile. Comment out this line to disable
  151. # this feature.
  152. policy.allowSystemProperty=true
  153. # whether or not we look into the IdentityScope for trusted Identities
  154. # when encountering a 1.1 signed JAR file. If the identity is found
  155. # and is trusted, we grant it AllPermission.
  156. policy.ignoreIdentityScope=false
  157. #
  158. # Default keystore type.
  159. #
  160. keystore.type=jks
  161. #
  162. # Controls compatibility mode for the JKS keystore type.
  163. #
  164. # When set to 'true', the JKS keystore type supports loading
  165. # keystore files in either JKS or PKCS12 format. When set to 'false'
  166. # it supports loading only JKS keystore files.
  167. #
  168. keystore.type.compat=true
  169. #
  170. # List of comma-separated packages that start with or equal this string
  171. # will cause a security exception to be thrown when
  172. # passed to checkPackageAccess unless the
  173. # corresponding RuntimePermission ("accessClassInPackage."+package) has
  174. # been granted.
  175. package.access=sun.,\
  176. com.sun.xml.internal.,\
  177. com.sun.imageio.,\
  178. com.sun.istack.internal.,\
  179. com.sun.jmx.,\
  180. com.sun.media.sound.,\
  181. com.sun.naming.internal.,\
  182. com.sun.proxy.,\
  183. com.sun.corba.se.,\
  184. com.sun.org.apache.bcel.internal.,\
  185. com.sun.org.apache.regexp.internal.,\
  186. com.sun.org.apache.xerces.internal.,\
  187. com.sun.org.apache.xpath.internal.,\
  188. com.sun.org.apache.xalan.internal.extensions.,\
  189. com.sun.org.apache.xalan.internal.lib.,\
  190. com.sun.org.apache.xalan.internal.res.,\
  191. com.sun.org.apache.xalan.internal.templates.,\
  192. com.sun.org.apache.xalan.internal.utils.,\
  193. com.sun.org.apache.xalan.internal.xslt.,\
  194. com.sun.org.apache.xalan.internal.xsltc.cmdline.,\
  195. com.sun.org.apache.xalan.internal.xsltc.compiler.,\
  196. com.sun.org.apache.xalan.internal.xsltc.trax.,\
  197. com.sun.org.apache.xalan.internal.xsltc.util.,\
  198. com.sun.org.apache.xml.internal.res.,\
  199. com.sun.org.apache.xml.internal.security.,\
  200. com.sun.org.apache.xml.internal.serializer.utils.,\
  201. com.sun.org.apache.xml.internal.utils.,\
  202. com.sun.org.glassfish.,\
  203. com.oracle.xmlns.internal.,\
  204. com.oracle.webservices.internal.,\
  205. oracle.jrockit.jfr.,\
  206. org.jcp.xml.dsig.internal.,\
  207. jdk.internal.,\
  208. jdk.nashorn.internal.,\
  209. jdk.nashorn.tools.,\
  210. com.sun.activation.registries.,\
  211. com.sun.java.accessibility.,\
  212. com.sun.browser.,\
  213. com.sun.glass.,\
  214. com.sun.javafx.,\
  215. com.sun.media.,\
  216. com.sun.openpisces.,\
  217. com.sun.prism.,\
  218. com.sun.scenario.,\
  219. com.sun.t2k.,\
  220. com.sun.pisces.,\
  221. com.sun.webkit.,\
  222. jdk.management.resource.internal.
  223. #
  224. # List of comma-separated packages that start with or equal this string
  225. # will cause a security exception to be thrown when
  226. # passed to checkPackageDefinition unless the
  227. # corresponding RuntimePermission ("defineClassInPackage."+package) has
  228. # been granted.
  229. #
  230. # by default, none of the class loaders supplied with the JDK call
  231. # checkPackageDefinition.
  232. #
  233. package.definition=sun.,\
  234. com.sun.xml.internal.,\
  235. com.sun.imageio.,\
  236. com.sun.istack.internal.,\
  237. com.sun.jmx.,\
  238. com.sun.media.sound.,\
  239. com.sun.naming.internal.,\
  240. com.sun.proxy.,\
  241. com.sun.corba.se.,\
  242. com.sun.org.apache.bcel.internal.,\
  243. com.sun.org.apache.regexp.internal.,\
  244. com.sun.org.apache.xerces.internal.,\
  245. com.sun.org.apache.xpath.internal.,\
  246. com.sun.org.apache.xalan.internal.extensions.,\
  247. com.sun.org.apache.xalan.internal.lib.,\
  248. com.sun.org.apache.xalan.internal.res.,\
  249. com.sun.org.apache.xalan.internal.templates.,\
  250. com.sun.org.apache.xalan.internal.utils.,\
  251. com.sun.org.apache.xalan.internal.xslt.,\
  252. com.sun.org.apache.xalan.internal.xsltc.cmdline.,\
  253. com.sun.org.apache.xalan.internal.xsltc.compiler.,\
  254. com.sun.org.apache.xalan.internal.xsltc.trax.,\
  255. com.sun.org.apache.xalan.internal.xsltc.util.,\
  256. com.sun.org.apache.xml.internal.res.,\
  257. com.sun.org.apache.xml.internal.security.,\
  258. com.sun.org.apache.xml.internal.serializer.utils.,\
  259. com.sun.org.apache.xml.internal.utils.,\
  260. com.sun.org.glassfish.,\
  261. com.oracle.xmlns.internal.,\
  262. com.oracle.webservices.internal.,\
  263. oracle.jrockit.jfr.,\
  264. org.jcp.xml.dsig.internal.,\
  265. jdk.internal.,\
  266. jdk.nashorn.internal.,\
  267. jdk.nashorn.tools.,\
  268. com.sun.activation.registries.,\
  269. com.sun.java.accessibility.,\
  270. com.sun.browser.,\
  271. com.sun.glass.,\
  272. com.sun.javafx.,\
  273. com.sun.media.,\
  274. com.sun.openpisces.,\
  275. com.sun.prism.,\
  276. com.sun.scenario.,\
  277. com.sun.t2k.,\
  278. com.sun.pisces.,\
  279. com.sun.webkit.,\
  280. jdk.management.resource.internal.
  281. #
  282. # Determines whether this properties file can be appended to
  283. # or overridden on the command line via -Djava.security.properties
  284. #
  285. security.overridePropertiesFile=true
  286. #
  287. # Determines the default key and trust manager factory algorithms for
  288. # the javax.net.ssl package.
  289. #
  290. ssl.KeyManagerFactory.algorithm=SunX509
  291. ssl.TrustManagerFactory.algorithm=PKIX
  292. #
  293. # The Java-level namelookup cache policy for successful lookups:
  294. #
  295. # any negative value: caching forever
  296. # any positive value: the number of seconds to cache an address for
  297. # zero: do not cache
  298. #
  299. # default value is forever (FOREVER). For security reasons, this
  300. # caching is made forever when a security manager is set. When a security
  301. # manager is not set, the default behavior in this implementation
  302. # is to cache for 30 seconds.
  303. #
  304. # NOTE: setting this to anything other than the default value can have
  305. # serious security implications. Do not set it unless
  306. # you are sure you are not exposed to DNS spoofing attack.
  307. #
  308. #networkaddress.cache.ttl=-1
  309. # The Java-level namelookup cache policy for failed lookups:
  310. #
  311. # any negative value: cache forever
  312. # any positive value: the number of seconds to cache negative lookup results
  313. # zero: do not cache
  314. #
  315. # In some Microsoft Windows networking environments that employ
  316. # the WINS name service in addition to DNS, name service lookups
  317. # that fail may take a noticeably long time to return (approx. 5 seconds).
  318. # For this reason the default caching policy is to maintain these
  319. # results for 10 seconds.
  320. #
  321. #
  322. networkaddress.cache.negative.ttl=10
  323. #
  324. # Properties to configure OCSP for certificate revocation checking
  325. #
  326. # Enable OCSP
  327. #
  328. # By default, OCSP is not used for certificate revocation checking.
  329. # This property enables the use of OCSP when set to the value "true".
  330. #
  331. # NOTE: SocketPermission is required to connect to an OCSP responder.
  332. #
  333. # Example,
  334. # ocsp.enable=true
  335. #
  336. # Location of the OCSP responder
  337. #
  338. # By default, the location of the OCSP responder is determined implicitly
  339. # from the certificate being validated. This property explicitly specifies
  340. # the location of the OCSP responder. The property is used when the
  341. # Authority Information Access extension (defined in RFC 3280) is absent
  342. # from the certificate or when it requires overriding.
  343. #
  344. # Example,
  345. # ocsp.responderURL=http://ocsp.example.net:80
  346. #
  347. # Subject name of the OCSP responder's certificate
  348. #
  349. # By default, the certificate of the OCSP responder is that of the issuer
  350. # of the certificate being validated. This property identifies the certificate
  351. # of the OCSP responder when the default does not apply. Its value is a string
  352. # distinguished name (defined in RFC 2253) which identifies a certificate in
  353. # the set of certificates supplied during cert path validation. In cases where
  354. # the subject name alone is not sufficient to uniquely identify the certificate
  355. # then both the "ocsp.responderCertIssuerName" and
  356. # "ocsp.responderCertSerialNumber" properties must be used instead. When this
  357. # property is set then those two properties are ignored.
  358. #
  359. # Example,
  360. # ocsp.responderCertSubjectName="CN=OCSP Responder, O=XYZ Corp"
  361. #
  362. # Issuer name of the OCSP responder's certificate
  363. #
  364. # By default, the certificate of the OCSP responder is that of the issuer
  365. # of the certificate being validated. This property identifies the certificate
  366. # of the OCSP responder when the default does not apply. Its value is a string
  367. # distinguished name (defined in RFC 2253) which identifies a certificate in
  368. # the set of certificates supplied during cert path validation. When this
  369. # property is set then the "ocsp.responderCertSerialNumber" property must also
  370. # be set. When the "ocsp.responderCertSubjectName" property is set then this
  371. # property is ignored.
  372. #
  373. # Example,
  374. # ocsp.responderCertIssuerName="CN=Enterprise CA, O=XYZ Corp"
  375. #
  376. # Serial number of the OCSP responder's certificate
  377. #
  378. # By default, the certificate of the OCSP responder is that of the issuer
  379. # of the certificate being validated. This property identifies the certificate
  380. # of the OCSP responder when the default does not apply. Its value is a string
  381. # of hexadecimal digits (colon or space separators may be present) which
  382. # identifies a certificate in the set of certificates supplied during cert path
  383. # validation. When this property is set then the "ocsp.responderCertIssuerName"
  384. # property must also be set. When the "ocsp.responderCertSubjectName" property
  385. # is set then this property is ignored.
  386. #
  387. # Example,
  388. # ocsp.responderCertSerialNumber=2A:FF:00
  389. #
  390. # Policy for failed Kerberos KDC lookups:
  391. #
  392. # When a KDC is unavailable (network error, service failure, etc), it is
  393. # put inside a blacklist and accessed less often for future requests. The
  394. # value (case-insensitive) for this policy can be:
  395. #
  396. # tryLast
  397. # KDCs in the blacklist are always tried after those not on the list.
  398. #
  399. # tryLess[:max_retries,timeout]
  400. # KDCs in the blacklist are still tried by their order in the configuration,
  401. # but with smaller max_retries and timeout values. max_retries and timeout
  402. # are optional numerical parameters (default 1 and 5000, which means once
  403. # and 5 seconds). Please notes that if any of the values defined here is
  404. # more than what is defined in krb5.conf, it will be ignored.
  405. #
  406. # Whenever a KDC is detected as available, it is removed from the blacklist.
  407. # The blacklist is reset when krb5.conf is reloaded. You can add
  408. # refreshKrb5Config=true to a JAAS configuration file so that krb5.conf is
  409. # reloaded whenever a JAAS authentication is attempted.
  410. #
  411. # Example,
  412. # krb5.kdc.bad.policy = tryLast
  413. # krb5.kdc.bad.policy = tryLess:2,2000
  414. krb5.kdc.bad.policy = tryLast
  415. # Algorithm restrictions for certification path (CertPath) processing
  416. #
  417. # In some environments, certain algorithms or key lengths may be undesirable
  418. # for certification path building and validation. For example, "MD2" is
  419. # generally no longer considered to be a secure hash algorithm. This section
  420. # describes the mechanism for disabling algorithms based on algorithm name
  421. # and/or key length. This includes algorithms used in certificates, as well
  422. # as revocation information such as CRLs and signed OCSP Responses.
  423. #
  424. # The syntax of the disabled algorithm string is described as this Java
  425. # BNF-style:
  426. # DisabledAlgorithms:
  427. # " DisabledAlgorithm { , DisabledAlgorithm } "
  428. #
  429. # DisabledAlgorithm:
  430. # AlgorithmName [Constraint] { '&' Constraint }
  431. #
  432. # AlgorithmName:
  433. # (see below)
  434. #
  435. # Constraint:
  436. # KeySizeConstraint, CertConstraint
  437. #
  438. # KeySizeConstraint:
  439. # keySize Operator DecimalInteger
  440. #
  441. # Operator:
  442. # <= | < | == | != | >= | >
  443. #
  444. # DecimalInteger:
  445. # DecimalDigits
  446. #
  447. # DecimalDigits:
  448. # DecimalDigit {DecimalDigit}
  449. #
  450. # DecimalDigit: one of
  451. # 1 2 3 4 5 6 7 8 9 0
  452. #
  453. # CertConstraint
  454. # jdkCA
  455. #
  456. # The "AlgorithmName" is the standard algorithm name of the disabled
  457. # algorithm. See "Java Cryptography Architecture Standard Algorithm Name
  458. # Documentation" for information about Standard Algorithm Names. Matching
  459. # is performed using a case-insensitive sub-element matching rule. (For
  460. # example, in "SHA1withECDSA" the sub-elements are "SHA1" for hashing and
  461. # "ECDSA" for signatures.) If the assertion "AlgorithmName" is a
  462. # sub-element of the certificate algorithm name, the algorithm will be
  463. # rejected during certification path building and validation. For example,
  464. # the assertion algorithm name "DSA" will disable all certificate algorithms
  465. # that rely on DSA, such as NONEwithDSA, SHA1withDSA. However, the assertion
  466. # will not disable algorithms related to "ECDSA".
  467. #
  468. # A "Constraint" provides further guidance for the algorithm being specified.
  469. # The "KeySizeConstraint" requires a key of a valid size range if the
  470. # "AlgorithmName" is of a key algorithm. The "DecimalInteger" indicates the
  471. # key size specified in number of bits. For example, "RSA keySize <= 1024"
  472. # indicates that any RSA key with key size less than or equal to 1024 bits
  473. # should be disabled, and "RSA keySize < 1024, RSA keySize > 2048" indicates
  474. # that any RSA key with key size less than 1024 or greater than 2048 should
  475. # be disabled. Note that the "KeySizeConstraint" only makes sense to key
  476. # algorithms.
  477. #
  478. # "CertConstraint" specifies additional constraints for
  479. # certificates that contain algorithms that are restricted:
  480. #
  481. # "jdkCA" prohibits the specified algorithm only if the algorithm is used
  482. # in a certificate chain that terminates at a marked trust anchor in the
  483. # lib/security/cacerts keystore. All other chains are not affected.
  484. # If the jdkCA constraint is not set, then all chains using the
  485. # specified algorithm are restricted. jdkCA may only be used once in
  486. # a DisabledAlgorithm expression.
  487. # Example: To apply this constraint to SHA-1 certificates, include
  488. # the following: "SHA1 jdkCA"
  489. #
  490. # When an algorithm must satisfy more than one constraint, it must be
  491. # delimited by an ampersand '&'. For example, to restrict certificates in a
  492. # chain that terminate at a distribution provided trust anchor and contain
  493. # RSA keys that are less than or equal to 1024 bits, add the following
  494. # constraint: "RSA keySize <= 1024 & jdkCA".
  495. #
  496. # All DisabledAlgorithms expressions are processed in the order defined in the
  497. # property. This requires lower keysize constraints to be specified
  498. # before larger keysize constraints of the same algorithm. For example:
  499. # "RSA keySize < 1024 & jdkCA, RSA keySize < 2048".
  500. #
  501. # Note: This property is currently used by Oracle's PKIX implementation. It
  502. # is not guaranteed to be examined and used by other implementations.
  503. #
  504. # Example:
  505. # jdk.certpath.disabledAlgorithms=MD2, DSA, RSA keySize < 2048
  506. #
  507. #
  508. jdk.certpath.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, \
  509. DSA keySize < 1024, EC keySize < 224
  510. # Algorithm restrictions for signed JAR files
  511. #
  512. # In some environments, certain algorithms or key lengths may be undesirable
  513. # for signed JAR validation. For example, "MD2" is generally no longer
  514. # considered to be a secure hash algorithm. This section describes the
  515. # mechanism for disabling algorithms based on algorithm name and/or key length.
  516. # JARs signed with any of the disabled algorithms or key sizes will be treated
  517. # as unsigned.
  518. #
  519. # The syntax of the disabled algorithm string is described as follows:
  520. # DisabledAlgorithms:
  521. # " DisabledAlgorithm { , DisabledAlgorithm } "
  522. #
  523. # DisabledAlgorithm:
  524. # AlgorithmName [Constraint]
  525. #
  526. # AlgorithmName:
  527. # (see below)
  528. #
  529. # Constraint:
  530. # KeySizeConstraint
  531. #
  532. # KeySizeConstraint:
  533. # keySize Operator KeyLength
  534. #
  535. # Operator:
  536. # <= | < | == | != | >= | >
  537. #
  538. # KeyLength:
  539. # Integer value of the algorithm's key length in bits
  540. #
  541. # Note: This property is currently used by the JDK Reference
  542. # implementation. It is not guaranteed to be examined and used by other
  543. # implementations.
  544. #
  545. jdk.jar.disabledAlgorithms=MD2, RSA keySize < 1024
  546. # Algorithm restrictions for Secure Socket Layer/Transport Layer Security
  547. # (SSL/TLS) processing
  548. #
  549. # In some environments, certain algorithms or key lengths may be undesirable
  550. # when using SSL/TLS. This section describes the mechanism for disabling
  551. # algorithms during SSL/TLS security parameters negotiation, including
  552. # protocol version negotiation, cipher suites selection, peer authentication
  553. # and key exchange mechanisms.
  554. #
  555. # Disabled algorithms will not be negotiated for SSL/TLS connections, even
  556. # if they are enabled explicitly in an application.
  557. #
  558. # For PKI-based peer authentication and key exchange mechanisms, this list
  559. # of disabled algorithms will also be checked during certification path
  560. # building and validation, including algorithms used in certificates, as
  561. # well as revocation information such as CRLs and signed OCSP Responses.
  562. # This is in addition to the jdk.certpath.disabledAlgorithms property above.
  563. #
  564. # See the specification of "jdk.certpath.disabledAlgorithms" for the
  565. # syntax of the disabled algorithm string.
  566. #
  567. # Note: This property is currently used by the JDK Reference implementation.
  568. # It is not guaranteed to be examined and used by other implementations.
  569. #
  570. # Example:
  571. # jdk.tls.disabledAlgorithms=MD5, SSLv3, DSA, RSA keySize < 2048
  572. jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 768, \
  573. EC keySize < 224
  574. # Legacy algorithms for Secure Socket Layer/Transport Layer Security (SSL/TLS)
  575. # processing in JSSE implementation.
  576. #
  577. # In some environments, a certain algorithm may be undesirable but it
  578. # cannot be disabled because of its use in legacy applications. Legacy
  579. # algorithms may still be supported, but applications should not use them
  580. # as the security strength of legacy algorithms are usually not strong enough
  581. # in practice.
  582. #
  583. # During SSL/TLS security parameters negotiation, legacy algorithms will
  584. # not be negotiated unless there are no other candidates.
  585. #
  586. # The syntax of the legacy algorithms string is described as this Java
  587. # BNF-style:
  588. # LegacyAlgorithms:
  589. # " LegacyAlgorithm { , LegacyAlgorithm } "
  590. #
  591. # LegacyAlgorithm:
  592. # AlgorithmName (standard JSSE algorithm name)
  593. #
  594. # See the specification of security property "jdk.certpath.disabledAlgorithms"
  595. # for the syntax and description of the "AlgorithmName" notation.
  596. #
  597. # Per SSL/TLS specifications, cipher suites have the form:
  598. # SSL_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  599. # or
  600. # TLS_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  601. #
  602. # For example, the cipher suite TLS_RSA_WITH_AES_128_CBC_SHA uses RSA as the
  603. # key exchange algorithm, AES_128_CBC (128 bits AES cipher algorithm in CBC
  604. # mode) as the cipher (encryption) algorithm, and SHA-1 as the message digest
  605. # algorithm for HMAC.
  606. #
  607. # The LegacyAlgorithm can be one of the following standard algorithm names:
  608. # 1. JSSE cipher suite name, e.g., TLS_RSA_WITH_AES_128_CBC_SHA
  609. # 2. JSSE key exchange algorithm name, e.g., RSA
  610. # 3. JSSE cipher (encryption) algorithm name, e.g., AES_128_CBC
  611. # 4. JSSE message digest algorithm name, e.g., SHA
  612. #
  613. # See SSL/TLS specifications and "Java Cryptography Architecture Standard
  614. # Algorithm Name Documentation" for information about the algorithm names.
  615. #
  616. # Note: This property is currently used by the JDK Reference implementation.
  617. # It is not guaranteed to be examined and used by other implementations.
  618. # There is no guarantee the property will continue to exist or be of the
  619. # same syntax in future releases.
  620. #
  621. # Example:
  622. # jdk.tls.legacyAlgorithms=DH_anon, DES_CBC, SSL_RSA_WITH_RC4_128_MD5
  623. #
  624. jdk.tls.legacyAlgorithms= \
  625. K_NULL, C_NULL, M_NULL, \
  626. DHE_DSS_EXPORT, DHE_RSA_EXPORT, DH_anon_EXPORT, DH_DSS_EXPORT, \
  627. DH_RSA_EXPORT, RSA_EXPORT, \
  628. DH_anon, ECDH_anon, \
  629. RC4_128, RC4_40, DES_CBC, DES40_CBC, \
  630. 3DES_EDE_CBC
  631. # The pre-defined default finite field Diffie-Hellman ephemeral (DHE)
  632. # parameters for Transport Layer Security (SSL/TLS/DTLS) processing.
  633. #
  634. # In traditional SSL/TLS/DTLS connections where finite field DHE parameters
  635. # negotiation mechanism is not used, the server offers the client group
  636. # parameters, base generator g and prime modulus p, for DHE key exchange.
  637. # It is recommended to use dynamic group parameters. This property defines
  638. # a mechanism that allows you to specify custom group parameters.
  639. #
  640. # The syntax of this property string is described as this Java BNF-style:
  641. # DefaultDHEParameters:
  642. # DefinedDHEParameters { , DefinedDHEParameters }
  643. #
  644. # DefinedDHEParameters:
  645. # "{" DHEPrimeModulus , DHEBaseGenerator "}"
  646. #
  647. # DHEPrimeModulus:
  648. # HexadecimalDigits
  649. #
  650. # DHEBaseGenerator:
  651. # HexadecimalDigits
  652. #
  653. # HexadecimalDigits:
  654. # HexadecimalDigit { HexadecimalDigit }
  655. #
  656. # HexadecimalDigit: one of
  657. # 0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f
  658. #
  659. # Whitespace characters are ignored.
  660. #
  661. # The "DefinedDHEParameters" defines the custom group parameters, prime
  662. # modulus p and base generator g, for a particular size of prime modulus p.
  663. # The "DHEPrimeModulus" defines the hexadecimal prime modulus p, and the
  664. # "DHEBaseGenerator" defines the hexadecimal base generator g of a group
  665. # parameter. It is recommended to use safe primes for the custom group
  666. # parameters.
  667. #
  668. # If this property is not defined or the value is empty, the underlying JSSE
  669. # provider's default group parameter is used for each connection.
  670. #
  671. # If the property value does not follow the grammar, or a particular group
  672. # parameter is not valid, the connection will fall back and use the
  673. # underlying JSSE provider's default group parameter.
  674. #
  675. # Note: This property is currently used by OpenJDK's JSSE implementation. It
  676. # is not guaranteed to be examined and used by other implementations.
  677. #
  678. # Example:
  679. # jdk.tls.server.defaultDHEParameters=
  680. # { \
  681. # FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 \
  682. # 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD \
  683. # EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245 \
  684. # E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED \
  685. # EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381 \
  686. # FFFFFFFF FFFFFFFF, 2}
  687. #
  688. # The policy for the XML Signature secure validation mode. The mode is
  689. # enabled by setting the property "org.jcp.xml.dsig.secureValidation" to
  690. # true with the javax.xml.crypto.XMLCryptoContext.setProperty() method,
  691. # or by running the code with a SecurityManager.
  692. #
  693. # Policy:
  694. # Constraint {"," Constraint }
  695. # Constraint:
  696. # AlgConstraint | MaxTransformsConstraint | MaxReferencesConstraint |
  697. # ReferenceUriSchemeConstraint | KeySizeConstraint | OtherConstraint
  698. # AlgConstraint
  699. # "disallowAlg" Uri
  700. # MaxTransformsConstraint:
  701. # "maxTransforms" Integer
  702. # MaxReferencesConstraint:
  703. # "maxReferences" Integer
  704. # ReferenceUriSchemeConstraint:
  705. # "disallowReferenceUriSchemes" String { String }
  706. # KeySizeConstraint:
  707. # "minKeySize" KeyAlg Integer
  708. # OtherConstraint:
  709. # "noDuplicateIds" | "noRetrievalMethodLoops"
  710. #
  711. # For AlgConstraint, Uri is the algorithm URI String that is not allowed.
  712. # See the XML Signature Recommendation for more information on algorithm
  713. # URI Identifiers. For KeySizeConstraint, KeyAlg is the standard algorithm
  714. # name of the key type (ex: "RSA"). If the MaxTransformsConstraint,
  715. # MaxReferencesConstraint or KeySizeConstraint (for the same key type) is
  716. # specified more than once, only the last entry is enforced.
  717. #
  718. # Note: This property is currently used by the JDK Reference implementation. It
  719. # is not guaranteed to be examined and used by other implementations.
  720. #
  721. jdk.xml.dsig.secureValidationPolicy=\
  722. disallowAlg http://www.w3.org/TR/1999/REC-xslt-19991116,\
  723. disallowAlg http://www.w3.org/2001/04/xmldsig-more#rsa-md5,\
  724. disallowAlg http://www.w3.org/2001/04/xmldsig-more#hmac-md5,\
  725. disallowAlg http://www.w3.org/2001/04/xmldsig-more#md5,\
  726. maxTransforms 5,\
  727. maxReferences 30,\
  728. disallowReferenceUriSchemes file http https,\
  729. minKeySize RSA 1024,\
  730. minKeySize DSA 1024,\
  731. noDuplicateIds,\
  732. noRetrievalMethodLoops
  733. #
  734. # Serialization process-wide filter
  735. #
  736. # A filter, if configured, is used by java.io.ObjectInputStream during
  737. # deserialization to check the contents of the stream.
  738. # A filter is configured as a sequence of patterns, each pattern is either
  739. # matched against the name of a class in the stream or defines a limit.
  740. # Patterns are separated by ";" (semicolon).
  741. # Whitespace is significant and is considered part of the pattern.
  742. #
  743. # If a pattern includes a "=", it sets a limit.
  744. # If a limit appears more than once the last value is used.
  745. # Limits are checked before classes regardless of the order in the sequence of patterns.
  746. # If any of the limits are exceeded, the filter status is REJECTED.
  747. #
  748. # maxdepth=value - the maximum depth of a graph
  749. # maxrefs=value - the maximum number of internal references
  750. # maxbytes=value - the maximum number of bytes in the input stream
  751. # maxarray=value - the maximum array length allowed
  752. #
  753. # Other patterns, from left to right, match the class or package name as
  754. # returned from Class.getName.
  755. # If the class is an array type, the class or package to be matched is the element type.
  756. # Arrays of any number of dimensions are treated the same as the element type.
  757. # For example, a pattern of "!example.Foo", rejects creation of any instance or
  758. # array of example.Foo.
  759. #
  760. # If the pattern starts with "!", the status is REJECTED if the remaining pattern
  761. # is matched; otherwise the status is ALLOWED if the pattern matches.
  762. # If the pattern ends with ".**" it matches any class in the package and all subpackages.
  763. # If the pattern ends with ".*" it matches any class in the package.
  764. # If the pattern ends with "*", it matches any class with the pattern as a prefix.
  765. # If the pattern is equal to the class name, it matches.
  766. # Otherwise, the status is UNDECIDED.
  767. #
  768. #jdk.serialFilter=pattern;pattern
  769. #
  770. # RMI Registry Serial Filter
  771. #
  772. # The filter pattern uses the same format as jdk.serialFilter.
  773. # This filter can override the builtin filter if additional types need to be
  774. # allowed or rejected from the RMI Registry.
  775. #
  776. #sun.rmi.registry.registryFilter=pattern;pattern
  777. #
  778. # RMI Distributed Garbage Collector (DGC) Serial Filter
  779. #
  780. # The filter pattern uses the same format as jdk.serialFilter.
  781. # This filter can override the builtin filter if additional types need to be
  782. # allowed or rejected from the RMI DGC.
  783. #
  784. # The builtin DGC filter can approximately be represented as the filter pattern:
  785. #
  786. #sun.rmi.transport.dgcFilter=\
  787. # java.rmi.server.ObjID;\
  788. # java.rmi.server.UID;\
  789. # java.rmi.dgc.VMID;\
  790. # java.rmi.dgc.Lease;\
  791. # maxdepth=5;maxarray=10000