jw项目windows环境软件安装
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1116 lines
45 KiB

1 year ago
  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.resolver.helpers.,\
  200. com.sun.org.apache.xml.internal.resolver.readers.,\
  201. com.sun.org.apache.xml.internal.security.,\
  202. com.sun.org.apache.xml.internal.serializer.utils.,\
  203. com.sun.org.apache.xml.internal.utils.,\
  204. com.sun.org.glassfish.,\
  205. com.oracle.xmlns.internal.,\
  206. com.oracle.webservices.internal.,\
  207. oracle.jrockit.jfr.,\
  208. org.jcp.xml.dsig.internal.,\
  209. jdk.internal.,\
  210. jdk.nashorn.internal.,\
  211. jdk.nashorn.tools.,\
  212. jdk.xml.internal.,\
  213. com.sun.activation.registries.,\
  214. com.sun.java.accessibility.,\
  215. com.sun.browser.,\
  216. com.sun.glass.,\
  217. com.sun.javafx.,\
  218. com.sun.media.,\
  219. com.sun.openpisces.,\
  220. com.sun.prism.,\
  221. com.sun.scenario.,\
  222. com.sun.t2k.,\
  223. com.sun.pisces.,\
  224. com.sun.webkit.,\
  225. jdk.management.resource.internal.
  226. #
  227. # List of comma-separated packages that start with or equal this string
  228. # will cause a security exception to be thrown when
  229. # passed to checkPackageDefinition unless the
  230. # corresponding RuntimePermission ("defineClassInPackage."+package) has
  231. # been granted.
  232. #
  233. # by default, none of the class loaders supplied with the JDK call
  234. # checkPackageDefinition.
  235. #
  236. package.definition=sun.,\
  237. com.sun.xml.internal.,\
  238. com.sun.imageio.,\
  239. com.sun.istack.internal.,\
  240. com.sun.jmx.,\
  241. com.sun.media.sound.,\
  242. com.sun.naming.internal.,\
  243. com.sun.proxy.,\
  244. com.sun.corba.se.,\
  245. com.sun.org.apache.bcel.internal.,\
  246. com.sun.org.apache.regexp.internal.,\
  247. com.sun.org.apache.xerces.internal.,\
  248. com.sun.org.apache.xpath.internal.,\
  249. com.sun.org.apache.xalan.internal.extensions.,\
  250. com.sun.org.apache.xalan.internal.lib.,\
  251. com.sun.org.apache.xalan.internal.res.,\
  252. com.sun.org.apache.xalan.internal.templates.,\
  253. com.sun.org.apache.xalan.internal.utils.,\
  254. com.sun.org.apache.xalan.internal.xslt.,\
  255. com.sun.org.apache.xalan.internal.xsltc.cmdline.,\
  256. com.sun.org.apache.xalan.internal.xsltc.compiler.,\
  257. com.sun.org.apache.xalan.internal.xsltc.trax.,\
  258. com.sun.org.apache.xalan.internal.xsltc.util.,\
  259. com.sun.org.apache.xml.internal.res.,\
  260. com.sun.org.apache.xml.internal.resolver.helpers.,\
  261. com.sun.org.apache.xml.internal.resolver.readers.,\
  262. com.sun.org.apache.xml.internal.security.,\
  263. com.sun.org.apache.xml.internal.serializer.utils.,\
  264. com.sun.org.apache.xml.internal.utils.,\
  265. com.sun.org.glassfish.,\
  266. com.oracle.xmlns.internal.,\
  267. com.oracle.webservices.internal.,\
  268. oracle.jrockit.jfr.,\
  269. org.jcp.xml.dsig.internal.,\
  270. jdk.internal.,\
  271. jdk.nashorn.internal.,\
  272. jdk.nashorn.tools.,\
  273. jdk.xml.internal.,\
  274. com.sun.activation.registries.,\
  275. com.sun.java.accessibility.,\
  276. com.sun.browser.,\
  277. com.sun.glass.,\
  278. com.sun.javafx.,\
  279. com.sun.media.,\
  280. com.sun.openpisces.,\
  281. com.sun.prism.,\
  282. com.sun.scenario.,\
  283. com.sun.t2k.,\
  284. com.sun.pisces.,\
  285. com.sun.webkit.,\
  286. jdk.management.resource.internal.
  287. #
  288. # Determines whether this properties file can be appended to
  289. # or overridden on the command line via -Djava.security.properties
  290. #
  291. security.overridePropertiesFile=true
  292. #
  293. # Determines the default key and trust manager factory algorithms for
  294. # the javax.net.ssl package.
  295. #
  296. ssl.KeyManagerFactory.algorithm=SunX509
  297. ssl.TrustManagerFactory.algorithm=PKIX
  298. #
  299. # The Java-level namelookup cache policy for successful lookups:
  300. #
  301. # any negative value: caching forever
  302. # any positive value: the number of seconds to cache an address for
  303. # zero: do not cache
  304. #
  305. # default value is forever (FOREVER). For security reasons, this
  306. # caching is made forever when a security manager is set. When a security
  307. # manager is not set, the default behavior in this implementation
  308. # is to cache for 30 seconds.
  309. #
  310. # NOTE: setting this to anything other than the default value can have
  311. # serious security implications. Do not set it unless
  312. # you are sure you are not exposed to DNS spoofing attack.
  313. #
  314. #networkaddress.cache.ttl=-1
  315. # The Java-level namelookup cache policy for failed lookups:
  316. #
  317. # any negative value: cache forever
  318. # any positive value: the number of seconds to cache negative lookup results
  319. # zero: do not cache
  320. #
  321. # In some Microsoft Windows networking environments that employ
  322. # the WINS name service in addition to DNS, name service lookups
  323. # that fail may take a noticeably long time to return (approx. 5 seconds).
  324. # For this reason the default caching policy is to maintain these
  325. # results for 10 seconds.
  326. #
  327. #
  328. networkaddress.cache.negative.ttl=10
  329. #
  330. # Properties to configure OCSP for certificate revocation checking
  331. #
  332. # Enable OCSP
  333. #
  334. # By default, OCSP is not used for certificate revocation checking.
  335. # This property enables the use of OCSP when set to the value "true".
  336. #
  337. # NOTE: SocketPermission is required to connect to an OCSP responder.
  338. #
  339. # Example,
  340. # ocsp.enable=true
  341. #
  342. # Location of the OCSP responder
  343. #
  344. # By default, the location of the OCSP responder is determined implicitly
  345. # from the certificate being validated. This property explicitly specifies
  346. # the location of the OCSP responder. The property is used when the
  347. # Authority Information Access extension (defined in RFC 3280) is absent
  348. # from the certificate or when it requires overriding.
  349. #
  350. # Example,
  351. # ocsp.responderURL=http://ocsp.example.net:80
  352. #
  353. # Subject name of the OCSP responder's certificate
  354. #
  355. # By default, the certificate of the OCSP responder is that of the issuer
  356. # of the certificate being validated. This property identifies the certificate
  357. # of the OCSP responder when the default does not apply. Its value is a string
  358. # distinguished name (defined in RFC 2253) which identifies a certificate in
  359. # the set of certificates supplied during cert path validation. In cases where
  360. # the subject name alone is not sufficient to uniquely identify the certificate
  361. # then both the "ocsp.responderCertIssuerName" and
  362. # "ocsp.responderCertSerialNumber" properties must be used instead. When this
  363. # property is set then those two properties are ignored.
  364. #
  365. # Example,
  366. # ocsp.responderCertSubjectName="CN=OCSP Responder, O=XYZ Corp"
  367. #
  368. # Issuer name of the OCSP responder's certificate
  369. #
  370. # By default, the certificate of the OCSP responder is that of the issuer
  371. # of the certificate being validated. This property identifies the certificate
  372. # of the OCSP responder when the default does not apply. Its value is a string
  373. # distinguished name (defined in RFC 2253) which identifies a certificate in
  374. # the set of certificates supplied during cert path validation. When this
  375. # property is set then the "ocsp.responderCertSerialNumber" property must also
  376. # be set. When the "ocsp.responderCertSubjectName" property is set then this
  377. # property is ignored.
  378. #
  379. # Example,
  380. # ocsp.responderCertIssuerName="CN=Enterprise CA, O=XYZ Corp"
  381. #
  382. # Serial number of the OCSP responder's certificate
  383. #
  384. # By default, the certificate of the OCSP responder is that of the issuer
  385. # of the certificate being validated. This property identifies the certificate
  386. # of the OCSP responder when the default does not apply. Its value is a string
  387. # of hexadecimal digits (colon or space separators may be present) which
  388. # identifies a certificate in the set of certificates supplied during cert path
  389. # validation. When this property is set then the "ocsp.responderCertIssuerName"
  390. # property must also be set. When the "ocsp.responderCertSubjectName" property
  391. # is set then this property is ignored.
  392. #
  393. # Example,
  394. # ocsp.responderCertSerialNumber=2A:FF:00
  395. #
  396. # Policy for failed Kerberos KDC lookups:
  397. #
  398. # When a KDC is unavailable (network error, service failure, etc), it is
  399. # put inside a blacklist and accessed less often for future requests. The
  400. # value (case-insensitive) for this policy can be:
  401. #
  402. # tryLast
  403. # KDCs in the blacklist are always tried after those not on the list.
  404. #
  405. # tryLess[:max_retries,timeout]
  406. # KDCs in the blacklist are still tried by their order in the configuration,
  407. # but with smaller max_retries and timeout values. max_retries and timeout
  408. # are optional numerical parameters (default 1 and 5000, which means once
  409. # and 5 seconds). Please notes that if any of the values defined here is
  410. # more than what is defined in krb5.conf, it will be ignored.
  411. #
  412. # Whenever a KDC is detected as available, it is removed from the blacklist.
  413. # The blacklist is reset when krb5.conf is reloaded. You can add
  414. # refreshKrb5Config=true to a JAAS configuration file so that krb5.conf is
  415. # reloaded whenever a JAAS authentication is attempted.
  416. #
  417. # Example,
  418. # krb5.kdc.bad.policy = tryLast
  419. # krb5.kdc.bad.policy = tryLess:2,2000
  420. krb5.kdc.bad.policy = tryLast
  421. # Algorithm restrictions for certification path (CertPath) processing
  422. #
  423. # In some environments, certain algorithms or key lengths may be undesirable
  424. # for certification path building and validation. For example, "MD2" is
  425. # generally no longer considered to be a secure hash algorithm. This section
  426. # describes the mechanism for disabling algorithms based on algorithm name
  427. # and/or key length. This includes algorithms used in certificates, as well
  428. # as revocation information such as CRLs and signed OCSP Responses.
  429. # The syntax of the disabled algorithm string is described as follows:
  430. # DisabledAlgorithms:
  431. # " DisabledAlgorithm { , DisabledAlgorithm } "
  432. #
  433. # DisabledAlgorithm:
  434. # AlgorithmName [Constraint] { '&' Constraint }
  435. #
  436. # AlgorithmName:
  437. # (see below)
  438. #
  439. # Constraint:
  440. # KeySizeConstraint | CAConstraint | DenyAfterConstraint |
  441. # UsageConstraint
  442. #
  443. # KeySizeConstraint:
  444. # keySize Operator KeyLength
  445. #
  446. # Operator:
  447. # <= | < | == | != | >= | >
  448. #
  449. # KeyLength:
  450. # Integer value of the algorithm's key length in bits
  451. #
  452. # CAConstraint:
  453. # jdkCA
  454. #
  455. # DenyAfterConstraint:
  456. # denyAfter YYYY-MM-DD
  457. #
  458. # UsageConstraint:
  459. # usage [TLSServer] [TLSClient] [SignedJAR]
  460. #
  461. # The "AlgorithmName" is the standard algorithm name of the disabled
  462. # algorithm. See "Java Cryptography Architecture Standard Algorithm Name
  463. # Documentation" for information about Standard Algorithm Names. Matching
  464. # is performed using a case-insensitive sub-element matching rule. (For
  465. # example, in "SHA1withECDSA" the sub-elements are "SHA1" for hashing and
  466. # "ECDSA" for signatures.) If the assertion "AlgorithmName" is a
  467. # sub-element of the certificate algorithm name, the algorithm will be
  468. # rejected during certification path building and validation. For example,
  469. # the assertion algorithm name "DSA" will disable all certificate algorithms
  470. # that rely on DSA, such as NONEwithDSA, SHA1withDSA. However, the assertion
  471. # will not disable algorithms related to "ECDSA".
  472. #
  473. # A "Constraint" defines restrictions on the keys and/or certificates for
  474. # a specified AlgorithmName:
  475. #
  476. # KeySizeConstraint:
  477. # keySize Operator KeyLength
  478. # The constraint requires a key of a valid size range if the
  479. # "AlgorithmName" is of a key algorithm. The "KeyLength" indicates
  480. # the key size specified in number of bits. For example,
  481. # "RSA keySize <= 1024" indicates that any RSA key with key size less
  482. # than or equal to 1024 bits should be disabled, and
  483. # "RSA keySize < 1024, RSA keySize > 2048" indicates that any RSA key
  484. # with key size less than 1024 or greater than 2048 should be disabled.
  485. # This constraint is only used on algorithms that have a key size.
  486. #
  487. # CAConstraint:
  488. # jdkCA
  489. # This constraint prohibits the specified algorithm only if the
  490. # algorithm is used in a certificate chain that terminates at a marked
  491. # trust anchor in the lib/security/cacerts keystore. If the jdkCA
  492. # constraint is not set, then all chains using the specified algorithm
  493. # are restricted. jdkCA may only be used once in a DisabledAlgorithm
  494. # expression.
  495. # Example: To apply this constraint to SHA-1 certificates, include
  496. # the following: "SHA1 jdkCA"
  497. #
  498. # DenyAfterConstraint:
  499. # denyAfter YYYY-MM-DD
  500. # This constraint prohibits a certificate with the specified algorithm
  501. # from being used after the date regardless of the certificate's
  502. # validity. JAR files that are signed and timestamped before the
  503. # constraint date with certificates containing the disabled algorithm
  504. # will not be restricted. The date is processed in the UTC timezone.
  505. # This constraint can only be used once in a DisabledAlgorithm
  506. # expression.
  507. # Example: To deny usage of RSA 2048 bit certificates after Feb 3 2020,
  508. # use the following: "RSA keySize == 2048 & denyAfter 2020-02-03"
  509. #
  510. # UsageConstraint:
  511. # usage [TLSServer] [TLSClient] [SignedJAR]
  512. # This constraint prohibits the specified algorithm for
  513. # a specified usage. This should be used when disabling an algorithm
  514. # for all usages is not practical. 'TLSServer' restricts the algorithm
  515. # in TLS server certificate chains when server authentication is
  516. # performed. 'TLSClient' restricts the algorithm in TLS client
  517. # certificate chains when client authentication is performed.
  518. # 'SignedJAR' constrains use of certificates in signed jar files.
  519. # The usage type follows the keyword and more than one usage type can
  520. # be specified with a whitespace delimiter.
  521. # Example: "SHA1 usage TLSServer TLSClient"
  522. #
  523. # When an algorithm must satisfy more than one constraint, it must be
  524. # delimited by an ampersand '&'. For example, to restrict certificates in a
  525. # chain that terminate at a distribution provided trust anchor and contain
  526. # RSA keys that are less than or equal to 1024 bits, add the following
  527. # constraint: "RSA keySize <= 1024 & jdkCA".
  528. #
  529. # All DisabledAlgorithms expressions are processed in the order defined in the
  530. # property. This requires lower keysize constraints to be specified
  531. # before larger keysize constraints of the same algorithm. For example:
  532. # "RSA keySize < 1024 & jdkCA, RSA keySize < 2048".
  533. #
  534. # Note: The algorithm restrictions do not apply to trust anchors or
  535. # self-signed certificates.
  536. #
  537. # Note: This property is currently used by Oracle's PKIX implementation. It
  538. # is not guaranteed to be examined and used by other implementations.
  539. #
  540. # Example:
  541. # jdk.certpath.disabledAlgorithms=MD2, DSA, RSA keySize < 2048
  542. #
  543. #
  544. jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
  545. RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224
  546. #
  547. # Algorithm restrictions for signed JAR files
  548. #
  549. # In some environments, certain algorithms or key lengths may be undesirable
  550. # for signed JAR validation. For example, "MD2" is generally no longer
  551. # considered to be a secure hash algorithm. This section describes the
  552. # mechanism for disabling algorithms based on algorithm name and/or key length.
  553. # JARs signed with any of the disabled algorithms or key sizes will be treated
  554. # as unsigned.
  555. #
  556. # The syntax of the disabled algorithm string is described as follows:
  557. # DisabledAlgorithms:
  558. # " DisabledAlgorithm { , DisabledAlgorithm } "
  559. #
  560. # DisabledAlgorithm:
  561. # AlgorithmName [Constraint] { '&' Constraint }
  562. #
  563. # AlgorithmName:
  564. # (see below)
  565. #
  566. # Constraint:
  567. # KeySizeConstraint | DenyAfterConstraint
  568. #
  569. # KeySizeConstraint:
  570. # keySize Operator KeyLength
  571. #
  572. # DenyAfterConstraint:
  573. # denyAfter YYYY-MM-DD
  574. #
  575. # Operator:
  576. # <= | < | == | != | >= | >
  577. #
  578. # KeyLength:
  579. # Integer value of the algorithm's key length in bits
  580. #
  581. # Note: This property is currently used by the JDK Reference
  582. # implementation. It is not guaranteed to be examined and used by other
  583. # implementations.
  584. #
  585. # See "jdk.certpath.disabledAlgorithms" for syntax descriptions.
  586. #
  587. jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, DSA keySize < 1024
  588. #
  589. # Algorithm restrictions for Secure Socket Layer/Transport Layer Security
  590. # (SSL/TLS) processing
  591. #
  592. # In some environments, certain algorithms or key lengths may be undesirable
  593. # when using SSL/TLS. This section describes the mechanism for disabling
  594. # algorithms during SSL/TLS security parameters negotiation, including
  595. # protocol version negotiation, cipher suites selection, peer authentication
  596. # and key exchange mechanisms.
  597. #
  598. # Disabled algorithms will not be negotiated for SSL/TLS connections, even
  599. # if they are enabled explicitly in an application.
  600. #
  601. # For PKI-based peer authentication and key exchange mechanisms, this list
  602. # of disabled algorithms will also be checked during certification path
  603. # building and validation, including algorithms used in certificates, as
  604. # well as revocation information such as CRLs and signed OCSP Responses.
  605. # This is in addition to the jdk.certpath.disabledAlgorithms property above.
  606. #
  607. # See the specification of "jdk.certpath.disabledAlgorithms" for the
  608. # syntax of the disabled algorithm string.
  609. #
  610. # Note: The algorithm restrictions do not apply to trust anchors or
  611. # self-signed certificates.
  612. #
  613. # Note: This property is currently used by the JDK Reference implementation.
  614. # It is not guaranteed to be examined and used by other implementations.
  615. #
  616. # Example:
  617. # jdk.tls.disabledAlgorithms=MD5, SSLv3, DSA, RSA keySize < 2048
  618. jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, DH keySize < 1024, \
  619. EC keySize < 224, 3DES_EDE_CBC, anon, NULL
  620. # Legacy algorithms for Secure Socket Layer/Transport Layer Security (SSL/TLS)
  621. # processing in JSSE implementation.
  622. #
  623. # In some environments, a certain algorithm may be undesirable but it
  624. # cannot be disabled because of its use in legacy applications. Legacy
  625. # algorithms may still be supported, but applications should not use them
  626. # as the security strength of legacy algorithms are usually not strong enough
  627. # in practice.
  628. #
  629. # During SSL/TLS security parameters negotiation, legacy algorithms will
  630. # not be negotiated unless there are no other candidates.
  631. #
  632. # The syntax of the legacy algorithms string is described as this Java
  633. # BNF-style:
  634. # LegacyAlgorithms:
  635. # " LegacyAlgorithm { , LegacyAlgorithm } "
  636. #
  637. # LegacyAlgorithm:
  638. # AlgorithmName (standard JSSE algorithm name)
  639. #
  640. # See the specification of security property "jdk.certpath.disabledAlgorithms"
  641. # for the syntax and description of the "AlgorithmName" notation.
  642. #
  643. # Per SSL/TLS specifications, cipher suites have the form:
  644. # SSL_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  645. # or
  646. # TLS_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  647. #
  648. # For example, the cipher suite TLS_RSA_WITH_AES_128_CBC_SHA uses RSA as the
  649. # key exchange algorithm, AES_128_CBC (128 bits AES cipher algorithm in CBC
  650. # mode) as the cipher (encryption) algorithm, and SHA-1 as the message digest
  651. # algorithm for HMAC.
  652. #
  653. # The LegacyAlgorithm can be one of the following standard algorithm names:
  654. # 1. JSSE cipher suite name, e.g., TLS_RSA_WITH_AES_128_CBC_SHA
  655. # 2. JSSE key exchange algorithm name, e.g., RSA
  656. # 3. JSSE cipher (encryption) algorithm name, e.g., AES_128_CBC
  657. # 4. JSSE message digest algorithm name, e.g., SHA
  658. #
  659. # See SSL/TLS specifications and "Java Cryptography Architecture Standard
  660. # Algorithm Name Documentation" for information about the algorithm names.
  661. #
  662. # Note: This property is currently used by the JDK Reference implementation.
  663. # It is not guaranteed to be examined and used by other implementations.
  664. # There is no guarantee the property will continue to exist or be of the
  665. # same syntax in future releases.
  666. #
  667. # Example:
  668. # jdk.tls.legacyAlgorithms=DH_anon, DES_CBC, SSL_RSA_WITH_RC4_128_MD5
  669. #
  670. jdk.tls.legacyAlgorithms= \
  671. K_NULL, C_NULL, M_NULL, \
  672. DH_anon, ECDH_anon, \
  673. RC4_128, RC4_40, DES_CBC, DES40_CBC, \
  674. 3DES_EDE_CBC
  675. # The pre-defined default finite field Diffie-Hellman ephemeral (DHE)
  676. # parameters for Transport Layer Security (SSL/TLS/DTLS) processing.
  677. #
  678. # In traditional SSL/TLS/DTLS connections where finite field DHE parameters
  679. # negotiation mechanism is not used, the server offers the client group
  680. # parameters, base generator g and prime modulus p, for DHE key exchange.
  681. # It is recommended to use dynamic group parameters. This property defines
  682. # a mechanism that allows you to specify custom group parameters.
  683. #
  684. # The syntax of this property string is described as this Java BNF-style:
  685. # DefaultDHEParameters:
  686. # DefinedDHEParameters { , DefinedDHEParameters }
  687. #
  688. # DefinedDHEParameters:
  689. # "{" DHEPrimeModulus , DHEBaseGenerator "}"
  690. #
  691. # DHEPrimeModulus:
  692. # HexadecimalDigits
  693. #
  694. # DHEBaseGenerator:
  695. # HexadecimalDigits
  696. #
  697. # HexadecimalDigits:
  698. # HexadecimalDigit { HexadecimalDigit }
  699. #
  700. # HexadecimalDigit: one of
  701. # 0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f
  702. #
  703. # Whitespace characters are ignored.
  704. #
  705. # The "DefinedDHEParameters" defines the custom group parameters, prime
  706. # modulus p and base generator g, for a particular size of prime modulus p.
  707. # The "DHEPrimeModulus" defines the hexadecimal prime modulus p, and the
  708. # "DHEBaseGenerator" defines the hexadecimal base generator g of a group
  709. # parameter. It is recommended to use safe primes for the custom group
  710. # parameters.
  711. #
  712. # If this property is not defined or the value is empty, the underlying JSSE
  713. # provider's default group parameter is used for each connection.
  714. #
  715. # If the property value does not follow the grammar, or a particular group
  716. # parameter is not valid, the connection will fall back and use the
  717. # underlying JSSE provider's default group parameter.
  718. #
  719. # Note: This property is currently used by OpenJDK's JSSE implementation. It
  720. # is not guaranteed to be examined and used by other implementations.
  721. #
  722. # Example:
  723. # jdk.tls.server.defaultDHEParameters=
  724. # { \
  725. # FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 \
  726. # 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD \
  727. # EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245 \
  728. # E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED \
  729. # EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381 \
  730. # FFFFFFFF FFFFFFFF, 2}
  731. #
  732. # TLS key limits on symmetric cryptographic algorithms
  733. #
  734. # This security property sets limits on algorithms key usage in TLS 1.3.
  735. # When the amount of data encrypted exceeds the algorithm value listed below,
  736. # a KeyUpdate message will trigger a key change. This is for symmetric ciphers
  737. # with TLS 1.3 only.
  738. #
  739. # The syntax for the property is described below:
  740. # KeyLimits:
  741. # " KeyLimit { , KeyLimit } "
  742. #
  743. # WeakKeyLimit:
  744. # AlgorithmName Action Length
  745. #
  746. # AlgorithmName:
  747. # A full algorithm transformation.
  748. #
  749. # Action:
  750. # KeyUpdate
  751. #
  752. # Length:
  753. # The amount of encrypted data in a session before the Action occurs
  754. # This value may be an integer value in bytes, or as a power of two, 2^29.
  755. #
  756. # KeyUpdate:
  757. # The TLS 1.3 KeyUpdate handshake process begins when the Length amount
  758. # is fulfilled.
  759. #
  760. # Note: This property is currently used by OpenJDK's JSSE implementation. It
  761. # is not guaranteed to be examined and used by other implementations.
  762. #
  763. jdk.tls.keyLimits=AES/GCM/NoPadding KeyUpdate 2^37
  764. #
  765. # Cryptographic Jurisdiction Policy defaults
  766. #
  767. # Import and export control rules on cryptographic software vary from
  768. # country to country. By default, the JDK provides two different sets of
  769. # cryptographic policy files:
  770. #
  771. # unlimited: These policy files contain no restrictions on cryptographic
  772. # strengths or algorithms.
  773. #
  774. # limited: These policy files contain more restricted cryptographic
  775. # strengths, and are still available if your country or
  776. # usage requires the traditional restrictive policy.
  777. #
  778. # The JDK JCE framework uses the unlimited policy files by default.
  779. # However the user may explicitly choose a set either by defining the
  780. # "crypto.policy" Security property or by installing valid JCE policy
  781. # jar files into the traditional JDK installation location. To better
  782. # support older JDK Update releases, the "crypto.policy" property is not
  783. # defined by default. See below for more information.
  784. #
  785. # The following logic determines which policy files are used:
  786. #
  787. # <java-home> refers to the directory where the JRE was
  788. # installed and may be determined using the "java.home"
  789. # System property.
  790. #
  791. # 1. If the Security property "crypto.policy" has been defined,
  792. # then the following mechanism is used:
  793. #
  794. # The policy files are stored as jar files in subdirectories of
  795. # <java-home>/lib/security/policy. Each directory contains a complete
  796. # set of policy files.
  797. #
  798. # The "crypto.policy" Security property controls the directory
  799. # selection, and thus the effective cryptographic policy.
  800. #
  801. # The default set of directories is:
  802. #
  803. # limited | unlimited
  804. #
  805. # 2. If the "crypto.policy" property is not set and the traditional
  806. # US_export_policy.jar and local_policy.jar files
  807. # (e.g. limited/unlimited) are found in the legacy
  808. # <java-home>/lib/security directory, then the rules embedded within
  809. # those jar files will be used. This helps preserve compatibility
  810. # for users upgrading from an older installation.
  811. #
  812. # 3. If the jar files are not present in the legacy location
  813. # and the "crypto.policy" Security property is not defined,
  814. # then the JDK will use the unlimited settings (equivalent to
  815. # crypto.policy=unlimited)
  816. #
  817. # Please see the JCA documentation for additional information on these
  818. # files and formats.
  819. #
  820. # YOU ARE ADVISED TO CONSULT YOUR EXPORT/IMPORT CONTROL COUNSEL OR ATTORNEY
  821. # TO DETERMINE THE EXACT REQUIREMENTS.
  822. #
  823. # Please note that the JCE for Java SE, including the JCE framework,
  824. # cryptographic policy files, and standard JCE providers provided with
  825. # the Java SE, have been reviewed and approved for export as mass market
  826. # encryption item by the US Bureau of Industry and Security.
  827. #
  828. # Note: This property is currently used by the JDK Reference implementation.
  829. # It is not guaranteed to be examined and used by other implementations.
  830. #
  831. #crypto.policy=unlimited
  832. #
  833. # The policy for the XML Signature secure validation mode. The mode is
  834. # enabled by setting the property "org.jcp.xml.dsig.secureValidation" to
  835. # true with the javax.xml.crypto.XMLCryptoContext.setProperty() method,
  836. # or by running the code with a SecurityManager.
  837. #
  838. # Policy:
  839. # Constraint {"," Constraint }
  840. # Constraint:
  841. # AlgConstraint | MaxTransformsConstraint | MaxReferencesConstraint |
  842. # ReferenceUriSchemeConstraint | KeySizeConstraint | OtherConstraint
  843. # AlgConstraint
  844. # "disallowAlg" Uri
  845. # MaxTransformsConstraint:
  846. # "maxTransforms" Integer
  847. # MaxReferencesConstraint:
  848. # "maxReferences" Integer
  849. # ReferenceUriSchemeConstraint:
  850. # "disallowReferenceUriSchemes" String { String }
  851. # KeySizeConstraint:
  852. # "minKeySize" KeyAlg Integer
  853. # OtherConstraint:
  854. # "noDuplicateIds" | "noRetrievalMethodLoops"
  855. #
  856. # For AlgConstraint, Uri is the algorithm URI String that is not allowed.
  857. # See the XML Signature Recommendation for more information on algorithm
  858. # URI Identifiers. For KeySizeConstraint, KeyAlg is the standard algorithm
  859. # name of the key type (ex: "RSA"). If the MaxTransformsConstraint,
  860. # MaxReferencesConstraint or KeySizeConstraint (for the same key type) is
  861. # specified more than once, only the last entry is enforced.
  862. #
  863. # Note: This property is currently used by the JDK Reference implementation. It
  864. # is not guaranteed to be examined and used by other implementations.
  865. #
  866. jdk.xml.dsig.secureValidationPolicy=\
  867. disallowAlg http://www.w3.org/TR/1999/REC-xslt-19991116,\
  868. disallowAlg http://www.w3.org/2001/04/xmldsig-more#rsa-md5,\
  869. disallowAlg http://www.w3.org/2001/04/xmldsig-more#hmac-md5,\
  870. disallowAlg http://www.w3.org/2001/04/xmldsig-more#md5,\
  871. maxTransforms 5,\
  872. maxReferences 30,\
  873. disallowReferenceUriSchemes file http https,\
  874. minKeySize RSA 1024,\
  875. minKeySize DSA 1024,\
  876. minKeySize EC 224,\
  877. noDuplicateIds,\
  878. noRetrievalMethodLoops
  879. #
  880. # Serialization process-wide filter
  881. #
  882. # A filter, if configured, is used by java.io.ObjectInputStream during
  883. # deserialization to check the contents of the stream.
  884. # A filter is configured as a sequence of patterns, each pattern is either
  885. # matched against the name of a class in the stream or defines a limit.
  886. # Patterns are separated by ";" (semicolon).
  887. # Whitespace is significant and is considered part of the pattern.
  888. #
  889. # If the system property jdk.serialFilter is also specified on the command
  890. # line, it supersedes the security property value defined here.
  891. #
  892. # If a pattern includes a "=", it sets a limit.
  893. # If a limit appears more than once the last value is used.
  894. # Limits are checked before classes regardless of the order in the sequence of patterns.
  895. # If any of the limits are exceeded, the filter status is REJECTED.
  896. #
  897. # maxdepth=value - the maximum depth of a graph
  898. # maxrefs=value - the maximum number of internal references
  899. # maxbytes=value - the maximum number of bytes in the input stream
  900. # maxarray=value - the maximum array length allowed
  901. #
  902. # Other patterns, from left to right, match the class or package name as
  903. # returned from Class.getName.
  904. # If the class is an array type, the class or package to be matched is the element type.
  905. # Arrays of any number of dimensions are treated the same as the element type.
  906. # For example, a pattern of "!example.Foo", rejects creation of any instance or
  907. # array of example.Foo.
  908. #
  909. # If the pattern starts with "!", the status is REJECTED if the remaining pattern
  910. # is matched; otherwise the status is ALLOWED if the pattern matches.
  911. # If the pattern ends with ".**" it matches any class in the package and all subpackages.
  912. # If the pattern ends with ".*" it matches any class in the package.
  913. # If the pattern ends with "*", it matches any class with the pattern as a prefix.
  914. # If the pattern is equal to the class name, it matches.
  915. # Otherwise, the status is UNDECIDED.
  916. #
  917. #jdk.serialFilter=pattern;pattern
  918. #
  919. # RMI Registry Serial Filter
  920. #
  921. # The filter pattern uses the same format as jdk.serialFilter.
  922. # This filter can override the builtin filter if additional types need to be
  923. # allowed or rejected from the RMI Registry or to decrease limits but not
  924. # to increase limits.
  925. # If the limits (maxdepth, maxrefs, or maxbytes) are exceeded, the object is rejected.
  926. #
  927. # Each non-array type is allowed or rejected if it matches one of the patterns,
  928. # evaluated from left to right, and is otherwise allowed. Arrays of any
  929. # component type, including subarrays and arrays of primitives, are allowed.
  930. #
  931. # Array construction of any component type, including subarrays and arrays of
  932. # primitives, are allowed unless the length is greater than the maxarray limit.
  933. # The filter is applied to each array element.
  934. #
  935. # The built-in filter allows subclasses of allowed classes and
  936. # can approximately be represented as the pattern:
  937. #
  938. #sun.rmi.registry.registryFilter=\
  939. # maxarray=1000000;\
  940. # maxdepth=20;\
  941. # java.lang.String;\
  942. # java.lang.Number;\
  943. # java.lang.reflect.Proxy;\
  944. # java.rmi.Remote;\
  945. # sun.rmi.server.UnicastRef;\
  946. # sun.rmi.server.RMIClientSocketFactory;\
  947. # sun.rmi.server.RMIServerSocketFactory;\
  948. # java.rmi.activation.ActivationID;\
  949. # java.rmi.server.UID
  950. #
  951. # RMI Distributed Garbage Collector (DGC) Serial Filter
  952. #
  953. # The filter pattern uses the same format as jdk.serialFilter.
  954. # This filter can override the builtin filter if additional types need to be
  955. # allowed or rejected from the RMI DGC.
  956. #
  957. # The builtin DGC filter can approximately be represented as the filter pattern:
  958. #
  959. #sun.rmi.transport.dgcFilter=\
  960. # java.rmi.server.ObjID;\
  961. # java.rmi.server.UID;\
  962. # java.rmi.dgc.VMID;\
  963. # java.rmi.dgc.Lease;\
  964. # maxdepth=5;maxarray=10000
  965. # CORBA ORBIorTypeCheckRegistryFilter
  966. # Type check enhancement for ORB::string_to_object processing
  967. #
  968. # An IOR type check filter, if configured, is used by an ORB during
  969. # an ORB::string_to_object invocation to check the veracity of the type encoded
  970. # in the ior string.
  971. #
  972. # The filter pattern consists of a semi-colon separated list of class names.
  973. # The configured list contains the binary class names of the IDL interface types
  974. # corresponding to the IDL stub class to be instantiated.
  975. # As such, a filter specifies a list of IDL stub classes that will be
  976. # allowed by an ORB when an ORB::string_to_object is invoked.
  977. # It is used to specify a white list configuration of acceptable
  978. # IDL stub types which may be contained in a stringified IOR
  979. # parameter passed as input to an ORB::string_to_object method.
  980. #
  981. # Note: This property is currently used by the JDK Reference implementation.
  982. # It is not guaranteed to be examined and used by other implementations.
  983. #
  984. #com.sun.CORBA.ORBIorTypeCheckRegistryFilter=binary_class_name;binary_class_name
  985. #
  986. # JCEKS Encrypted Key Serial Filter
  987. #
  988. # This filter, if configured, is used by the JCEKS KeyStore during the
  989. # deserialization of the encrypted Key object stored inside a key entry.
  990. # If not configured or the filter result is UNDECIDED (i.e. none of the patterns
  991. # matches), the filter configured by jdk.serialFilter will be consulted.
  992. #
  993. # If the system property jceks.key.serialFilter is also specified, it supersedes
  994. # the security property value defined here.
  995. #
  996. # The filter pattern uses the same format as jdk.serialFilter. The default
  997. # pattern allows java.lang.Enum, java.security.KeyRep, java.security.KeyRep$Type,
  998. # and javax.crypto.spec.SecretKeySpec and rejects all the others.
  999. jceks.key.serialFilter = java.lang.Enum;java.security.KeyRep;\
  1000. java.security.KeyRep$Type;javax.crypto.spec.SecretKeySpec;!*
  1001. #
  1002. # Disabled mechanisms for the Simple Authentication and Security Layer (SASL)
  1003. #
  1004. # Disabled mechanisms will not be negotiated by both SASL clients and servers.
  1005. # These mechanisms will be ignored if they are specified in the "mechanisms"
  1006. # argument of "Sasl.createSaslClient" or the "mechanism" argument of
  1007. # "Sasl.createSaslServer".
  1008. #
  1009. # The value of this property is a comma-separated list of SASL mechanisms.
  1010. # The mechanisms are case-sensitive. Whitespaces around the commas are ignored.
  1011. #
  1012. # Note: This property is currently used by the JDK Reference implementation.
  1013. # It is not guaranteed to be examined and used by other implementations.
  1014. #
  1015. # Example:
  1016. # jdk.sasl.disabledMechanisms=PLAIN, CRAM-MD5, DIGEST-MD5
  1017. jdk.sasl.disabledMechanisms=
  1018. #
  1019. # Policies for distrusting Certificate Authorities (CAs).
  1020. #
  1021. # This is a comma separated value of one or more case-sensitive strings, each
  1022. # of which represents a policy for determining if a CA should be distrusted.
  1023. # The supported values are:
  1024. #
  1025. # SYMANTEC_TLS : Distrust TLS Server certificates anchored by a Symantec
  1026. # root CA and issued after April 16, 2019 unless issued by one of the
  1027. # following subordinate CAs which have a later distrust date:
  1028. # 1. Apple IST CA 2 - G1, SHA-256 fingerprint:
  1029. # AC2B922ECFD5E01711772FEA8ED372DE9D1E2245FCE3F57A9CDBEC77296A424B
  1030. # Distrust after December 31, 2019.
  1031. # 2. Apple IST CA 8 - G1, SHA-256 fingerprint:
  1032. # A4FE7C7F15155F3F0AEF7AAA83CF6E06DEB97CA3F909DF920AC1490882D488ED
  1033. # Distrust after December 31, 2019.
  1034. #
  1035. # Leading and trailing whitespace surrounding each value are ignored.
  1036. # Unknown values are ignored. If the property is commented out or set to the
  1037. # empty String, no policies are enforced.
  1038. #
  1039. # Note: This property is currently used by the JDK Reference implementation.
  1040. # It is not guaranteed to be supported by other SE implementations. Also, this
  1041. # property does not override other security properties which can restrict
  1042. # certificates such as jdk.tls.disabledAlgorithms or
  1043. # jdk.certpath.disabledAlgorithms; those restrictions are still enforced even
  1044. # if this property is not enabled.
  1045. #
  1046. jdk.security.caDistrustPolicies=SYMANTEC_TLS
  1047. #
  1048. # Policies for the proxy_impersonator Kerberos ccache configuration entry
  1049. #
  1050. # The proxy_impersonator ccache configuration entry indicates that the ccache
  1051. # is a synthetic delegated credential for use with S4U2Proxy by an intermediate
  1052. # server. The ccache file should also contain the TGT of this server and
  1053. # an evidence ticket from the default principal of the ccache to this server.
  1054. #
  1055. # This security property determines how Java uses this configuration entry.
  1056. # There are 3 possible values:
  1057. #
  1058. # no-impersonate - Ignore this configuration entry, and always act as
  1059. # the owner of the TGT (if it exists).
  1060. #
  1061. # try-impersonate - Try impersonation when this configuration entry exists.
  1062. # If no matching TGT or evidence ticket is found,
  1063. # fallback to no-impersonate.
  1064. #
  1065. # always-impersonate - Always impersonate when this configuration entry exists.
  1066. # If no matching TGT or evidence ticket is found,
  1067. # no initial credential is read from the ccache.
  1068. #
  1069. # The default value is "always-impersonate".
  1070. #
  1071. # If a system property of the same name is also specified, it supersedes the
  1072. # security property value defined here.
  1073. #
  1074. #jdk.security.krb5.default.initiate.credential=always-impersonate