Regular Expressions 101

Save & Share

  • Regex Version: ver. 1
  • Update Regex
    ctrl+⇧+s
  • Save new Regex
    ctrl+s
  • Add to Community Library

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8
  • .NET 7.0 (C#)
  • Rust
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests

Tools

Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression
No Match

r"
"
gm

Test String

Code Generator

Generated Code

#include <StringConstants.au3> ; to declare the Constants of StringRegExp #include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate Local $sRegex = "(?m)^\d+$" Local $sString = "This is the "master security properties file"." & @CRLF & _ "#" & @CRLF & _ "this " & @CRLF & _ "# An alternate java.security properties file may be specified" & @CRLF & _ "# from the command line via the system property" & @CRLF & _ "#" & @CRLF & _ "# -Djava.security.properties=<URL>" & @CRLF & _ "#" & @CRLF & _ "# This properties file appends to the master security properties file." & @CRLF & _ "# If both properties files specify values for the same key, the value" & @CRLF & _ "# from the command-line properties file is selected, as it is the last" & @CRLF & _ "# one loaded." & @CRLF & _ "#" & @CRLF & _ "a" & @CRLF & _ "#" & @CRLF & _ "# -Djava.security.properties==<URL> (2 equals)," & @CRLF & _ "#" & @CRLF & _ "# then that properties file completely overrides the master security" & @CRLF & _ "# properties file." & @CRLF & _ "#" & @CRLF & _ "# To disable the ability to specify an additional properties file from" & @CRLF & _ "# the command line, set the key security.overridePropertiesFile" & @CRLF & _ "# to false in the master security properties file. It is set to true" & @CRLF & _ "# by default." & @CRLF & _ "#" & @CRLF & _ "# If this properties file fails to load, the JDK implementation will throw" & @CRLF & _ "# an unspecified error when initializing the java.security.Security class." & @CRLF & _ "" & @CRLF & _ "# In this file, various security properties are set for use by" & @CRLF & _ "# java.security classes. This is where users can statically register" & @CRLF & _ "# Cryptography Package Providers ("providers" for short). The term" & @CRLF & _ "# "provider" refers to a package or set of packages that supply a" & @CRLF & _ "# concrete implementation of a subset of the cryptography aspects of" & @CRLF & _ "# the Java Security API. A provider may, for example, implement one or" & @CRLF & _ "# more digital signature algorithms or message digest algorithms." & @CRLF & _ "#" & @CRLF & _ "# Each provider must implement a subclass of the Provider class." & @CRLF & _ "# To register a provider in this master security properties file," & @CRLF & _ "# specify the provider and priority in the format" & @CRLF & _ "#" & @CRLF & _ "# security.provider.<n>=<provName | className>" & @CRLF & _ "#" & @CRLF & _ "# This declares a provider, and specifies its preference" & @CRLF & _ "# order n. The preference order is the order in which providers are" & @CRLF & _ "# searched for requested algorithms (when no specific provider is" & @CRLF & _ "# requested). The order is 1-based; 1 is the most preferred, followed" & @CRLF & _ "# by 2, and so on." & @CRLF & _ "#" & @CRLF & _ "# <provName> must specify the name of the Provider as passed to its super" & @CRLF & _ "# class java.security.Provider constructor. This is for providers loaded" & @CRLF & _ "# through the ServiceLoader mechanism." & @CRLF & _ "#" & @CRLF & _ "# <className> must specify the subclass of the Provider class whose" & @CRLF & _ "# constructor sets the values of various properties that are required" & @CRLF & _ "# for the Java Security API to look up the algorithms or other" & @CRLF & _ "# facilities implemented by the provider. This is for providers loaded" & @CRLF & _ "# through classpath." & @CRLF & _ "#" & @CRLF & _ "# Note: Providers can be dynamically registered instead by calls to" & @CRLF & _ "# either the addProvider or insertProviderAt method in the Security" & @CRLF & _ "# class." & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# List of providers and their preference orders (see above):" & @CRLF & _ "#" & @CRLF & _ "security.provider.1=SUN" & @CRLF & _ "security.provider.2=SunRsaSign" & @CRLF & _ "security.provider.3=SunEC" & @CRLF & _ "security.provider.4=SunJSSE" & @CRLF & _ "security.provider.5=SunJCE" & @CRLF & _ "security.provider.6=SunJGSS" & @CRLF & _ "security.provider.7=SunSASL" & @CRLF & _ "security.provider.8=XMLDSig" & @CRLF & _ "security.provider.9=SunPCSC" & @CRLF & _ "security.provider.10=JdkLDAP" & @CRLF & _ "security.provider.11=JdkSASL" & @CRLF & _ "security.provider.12=SunMSCAPI" & @CRLF & _ "security.provider.13=SunPKCS11" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# A list of preferred providers for specific algorithms. These providers will" & @CRLF & _ "# be searched for matching algorithms before the list of registered providers." & @CRLF & _ "# Entries containing errors (parsing, etc) will be ignored. Use the" & @CRLF & _ "# -Djava.security.debug=jca property to debug these errors." & @CRLF & _ "#" & @CRLF & _ "# The property is a comma-separated list of serviceType.algorithm:provider" & @CRLF & _ "# entries. The serviceType (example: "MessageDigest") is optional, and if" & @CRLF & _ "# not specified, the algorithm applies to all service types that support it." & @CRLF & _ "# The algorithm is the standard algorithm name or transformation." & @CRLF & _ "# Transformations can be specified in their full standard name" & @CRLF & _ "# (ex: AES/CBC/PKCS5Padding), or as partial matches (ex: AES, AES/CBC)." & @CRLF & _ "# The provider is the name of the provider. Any provider that does not" & @CRLF & _ "# also appear in the registered list will be ignored." & @CRLF & _ "#" & @CRLF & _ "# There is a special serviceType for this property only to group a set of" & @CRLF & _ "# algorithms together. The type is "Group" and is followed by an algorithm" & @CRLF & _ "# keyword. Groups are to simplify and lessen the entries on the property" & @CRLF & _ "# line. Current groups are:" & @CRLF & _ "# Group.SHA2 = SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, SHA-512/256" & @CRLF & _ "# Group.HmacSHA2 = HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512" & @CRLF & _ "# Group.SHA2RSA = SHA224withRSA, SHA256withRSA, SHA384withRSA, SHA512withRSA" & @CRLF & _ "# Group.SHA2DSA = SHA224withDSA, SHA256withDSA, SHA384withDSA, SHA512withDSA" & @CRLF & _ "# Group.SHA2ECDSA = SHA224withECDSA, SHA256withECDSA, SHA384withECDSA, \" & @CRLF & _ "# SHA512withECDSA" & @CRLF & _ "# Group.SHA3 = SHA3-224, SHA3-256, SHA3-384, SHA3-512" & @CRLF & _ "# Group.HmacSHA3 = HmacSHA3-224, HmacSHA3-256, HmacSHA3-384, HmacSHA3-512" & @CRLF & _ "#" & @CRLF & _ "# Example:" & @CRLF & _ "# jdk.security.provider.preferred=AES/GCM/NoPadding:SunJCE, \" & @CRLF & _ "# MessageDigest.SHA-256:SUN, Group.HmacSHA2:SunJCE" & @CRLF & _ "#" & @CRLF & _ "#jdk.security.provider.preferred=" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Sun Provider SecureRandom seed source." & @CRLF & _ "#" & @CRLF & _ "# Select the primary source of seed data for the "NativePRNG", "SHA1PRNG"" & @CRLF & _ "# and "DRBG" SecureRandom implementations in the "Sun" provider." & @CRLF & _ "# (Other SecureRandom implementations might also use this property.)" & @CRLF & _ "#" & @CRLF & _ "# On Unix-like systems (for example, Linux/MacOS), the" & @CRLF & _ "# "NativePRNG", "SHA1PRNG" and "DRBG" implementations obtains seed data from" & @CRLF & _ "# special device files such as file:/dev/random." & @CRLF & _ "#" & @CRLF & _ "# On Windows systems, specifying the URLs "file:/dev/random" or" & @CRLF & _ "# "file:/dev/urandom" will enable the native Microsoft CryptoAPI seeding" & @CRLF & _ "# mechanism for SHA1PRNG and DRBG." & @CRLF & _ "#" & @CRLF & _ "# By default, an attempt is made to use the entropy gathering device" & @CRLF & _ "# specified by the "securerandom.source" Security property. If an" & @CRLF & _ "# exception occurs while accessing the specified URL:" & @CRLF & _ "#" & @CRLF & _ "# NativePRNG:" & @CRLF & _ "# a default value of /dev/random will be used. If neither" & @CRLF & _ "# are available, the implementation will be disabled." & @CRLF & _ "# "file" is the only currently supported protocol type." & @CRLF & _ "#" & @CRLF & _ "# SHA1PRNG and DRBG:" & @CRLF & _ "# the traditional system/thread activity algorithm will be used." & @CRLF & _ "#" & @CRLF & _ "# The entropy gathering device can also be specified with the System" & @CRLF & _ "# property "java.security.egd". For example:" & @CRLF & _ "#" & @CRLF & _ "# % java -Djava.security.egd=file:/dev/random MainClass" & @CRLF & _ "#" & @CRLF & _ "# Specifying this System property will override the" & @CRLF & _ "# "securerandom.source" Security property." & @CRLF & _ "#" & @CRLF & _ "# In addition, if "file:/dev/random" or "file:/dev/urandom" is" & @CRLF & _ "# specified, the "NativePRNG" implementation will be more preferred than" & @CRLF & _ "# DRBG and SHA1PRNG in the Sun provider." & @CRLF & _ "#" & @CRLF & _ "securerandom.source=file:/dev/random" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# A list of known strong SecureRandom implementations." & @CRLF & _ "#" & @CRLF & _ "# To help guide applications in selecting a suitable strong" & @CRLF & _ "# java.security.SecureRandom implementation, Java distributions should" & @CRLF & _ "# indicate a list of known strong implementations using the property." & @CRLF & _ "#" & @CRLF & _ "# This is a comma-separated list of algorithm and/or algorithm:provider" & @CRLF & _ "# entries." & @CRLF & _ "#" & @CRLF & _ "securerandom.strongAlgorithms=Windows-PRNG:SunMSCAPI,DRBG:SUN" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Sun provider DRBG configuration and default instantiation request." & @CRLF & _ "#" & @CRLF & _ "# NIST SP 800-90Ar1 lists several DRBG mechanisms. Each can be configured" & @CRLF & _ "# with a DRBG algorithm name, and can be instantiated with a security strength," & @CRLF & _ "# prediction resistance support, etc. This property defines the configuration" & @CRLF & _ "# and the default instantiation request of "DRBG" SecureRandom implementations" & @CRLF & _ "# in the SUN provider. (Other DRBG implementations can also use this property.)" & @CRLF & _ "# Applications can request different instantiation parameters like security" & @CRLF & _ "# strength, capability, personalization string using one of the" & @CRLF & _ "# getInstance(...,SecureRandomParameters,...) methods with a" & @CRLF & _ "# DrbgParameters.Instantiation argument, but other settings such as the" & @CRLF & _ "# mechanism and DRBG algorithm names are not currently configurable by any API." & @CRLF & _ "#" & @CRLF & _ "# Please note that the SUN implementation of DRBG always supports reseeding." & @CRLF & _ "#" & @CRLF & _ "# The value of this property is a comma-separated list of all configurable" & @CRLF & _ "# aspects. The aspects can appear in any order but the same aspect can only" & @CRLF & _ "# appear at most once. Its BNF-style definition is:" & @CRLF & _ "#" & @CRLF & _ "# Value:" & @CRLF & _ "# aspect { "," aspect }" & @CRLF & _ "#" & @CRLF & _ "# aspect:" & @CRLF & _ "# mech_name | algorithm_name | strength | capability | df" & @CRLF & _ "#" & @CRLF & _ "# // The DRBG mechanism to use. Default "Hash_DRBG"" & @CRLF & _ "# mech_name:" & @CRLF & _ "# "Hash_DRBG" | "HMAC_DRBG" | "CTR_DRBG"" & @CRLF & _ "#" & @CRLF & _ "# // The DRBG algorithm name. The "SHA-***" names are for Hash_DRBG and" & @CRLF & _ "# // HMAC_DRBG, default "SHA-256". The "AES-***" names are for CTR_DRBG," & @CRLF & _ "# // default "AES-128" when using the limited cryptographic or "AES-256"" & @CRLF & _ "# // when using the unlimited." & @CRLF & _ "# algorithm_name:" & @CRLF & _ "# "SHA-224" | "SHA-512/224" | "SHA-256" |" & @CRLF & _ "# "SHA-512/256" | "SHA-384" | "SHA-512" |" & @CRLF & _ "# "AES-128" | "AES-192" | "AES-256"" & @CRLF & _ "#" & @CRLF & _ "# // Security strength requested. Default "128"" & @CRLF & _ "# strength:" & @CRLF & _ "# "112" | "128" | "192" | "256"" & @CRLF & _ "#" & @CRLF & _ "# // Prediction resistance and reseeding request. Default "none"" & @CRLF & _ "# // "pr_and_reseed" - Both prediction resistance and reseeding" & @CRLF & _ "# // support requested" & @CRLF & _ "# // "reseed_only" - Only reseeding support requested" & @CRLF & _ "# // "none" - Neither prediction resistance not reseeding" & @CRLF & _ "# // support requested" & @CRLF & _ "# pr:" & @CRLF & _ "# "pr_and_reseed" | "reseed_only" | "none"" & @CRLF & _ "#" & @CRLF & _ "# // Whether a derivation function should be used. only applicable" & @CRLF & _ "# // to CTR_DRBG. Default "use_df"" & @CRLF & _ "# df:" & @CRLF & _ "# "use_df" | "no_df"" & @CRLF & _ "#" & @CRLF & _ "# Examples," & @CRLF & _ "# securerandom.drbg.config=Hash_DRBG,SHA-224,112,none" & @CRLF & _ "# securerandom.drbg.config=CTR_DRBG,AES-256,192,pr_and_reseed,use_df" & @CRLF & _ "#" & @CRLF & _ "# The default value is an empty string, which is equivalent to" & @CRLF & _ "# securerandom.drbg.config=Hash_DRBG,SHA-256,128,none" & @CRLF & _ "#" & @CRLF & _ "securerandom.drbg.config=" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Class to instantiate as the javax.security.auth.login.Configuration" & @CRLF & _ "# provider." & @CRLF & _ "#" & @CRLF & _ "login.configuration.provider=sun.security.provider.ConfigFile" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Default login configuration file" & @CRLF & _ "#" & @CRLF & _ "#login.config.url.1=file:${user.home}/.java.login.config" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Class to instantiate as the system Policy. This is the name of the class" & @CRLF & _ "# that will be used as the Policy object. The system class loader is used to" & @CRLF & _ "# locate this class." & @CRLF & _ "#" & @CRLF & _ "policy.provider=sun.security.provider.PolicyFile" & @CRLF & _ "" & @CRLF & _ "# The default is to have a single system-wide policy file," & @CRLF & _ "# and a policy file in the user's home directory." & @CRLF & _ "#" & @CRLF & _ "policy.url.1=file:${java.home}/conf/security/java.policy" & @CRLF & _ "policy.url.2=file:${user.home}/.java.policy" & @CRLF & _ "" & @CRLF & _ "# Controls whether or not properties are expanded in policy and login" & @CRLF & _ "# configuration files. If set to false, properties (${...}) will not" & @CRLF & _ "# be expanded in policy and login configuration files. If commented out or" & @CRLF & _ "# set to an empty string, the default value is "false" for policy files and" & @CRLF & _ "# "true" for login configuration files." & @CRLF & _ "#" & @CRLF & _ "policy.expandProperties=true" & @CRLF & _ "" & @CRLF & _ "# Controls whether or not an extra policy or login configuration file is" & @CRLF & _ "# allowed to be passed on the command line with -Djava.security.policy=somefile" & @CRLF & _ "# or -Djava.security.auth.login.config=somefile. If commented out or set to" & @CRLF & _ "# an empty string, the default value is "false"." & @CRLF & _ "#" & @CRLF & _ "policy.allowSystemProperty=true" & @CRLF & _ "" & @CRLF & _ "# whether or not we look into the IdentityScope for trusted Identities" & @CRLF & _ "# when encountering a 1.1 signed JAR file. If the identity is found" & @CRLF & _ "# and is trusted, we grant it AllPermission. Note: the default policy" & @CRLF & _ "# provider (sun.security.provider.PolicyFile) does not support this property." & @CRLF & _ "#" & @CRLF & _ "policy.ignoreIdentityScope=false" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Default keystore type." & @CRLF & _ "#" & @CRLF & _ "keystore.type=pkcs12" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Controls compatibility mode for JKS and PKCS12 keystore types." & @CRLF & _ "#" & @CRLF & _ "# When set to 'true', both JKS and PKCS12 keystore types support loading" & @CRLF & _ "# keystore files in either JKS or PKCS12 format. When set to 'false' the" & @CRLF & _ "# JKS keystore type supports loading only JKS keystore files and the PKCS12" & @CRLF & _ "# keystore type supports loading only PKCS12 keystore files." & @CRLF & _ "#" & @CRLF & _ "keystore.type.compat=true" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# List of comma-separated packages that start with or equal this string" & @CRLF & _ "# will cause a security exception to be thrown when passed to the" & @CRLF & _ "# SecurityManager::checkPackageAccess method unless the corresponding" & @CRLF & _ "# RuntimePermission("accessClassInPackage."+package) has been granted." & @CRLF & _ "#" & @CRLF & _ "package.access=sun.misc.,\" & @CRLF & _ " sun.reflect." & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# List of comma-separated packages that start with or equal this string" & @CRLF & _ "# will cause a security exception to be thrown when passed to the" & @CRLF & _ "# SecurityManager::checkPackageDefinition method unless the corresponding" & @CRLF & _ "# RuntimePermission("defineClassInPackage."+package) has been granted." & @CRLF & _ "#" & @CRLF & _ "# By default, none of the class loaders supplied with the JDK call" & @CRLF & _ "# checkPackageDefinition." & @CRLF & _ "#" & @CRLF & _ "package.definition=sun.misc.,\" & @CRLF & _ " sun.reflect." & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Determines whether this properties file can be appended to" & @CRLF & _ "# or overridden on the command line via -Djava.security.properties" & @CRLF & _ "#" & @CRLF & _ "security.overridePropertiesFile=true" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Determines the default key and trust manager factory algorithms for" & @CRLF & _ "# the javax.net.ssl package." & @CRLF & _ "#" & @CRLF & _ "ssl.KeyManagerFactory.algorithm=SunX509" & @CRLF & _ "ssl.TrustManagerFactory.algorithm=PKIX" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# The Java-level namelookup cache policy for successful lookups:" & @CRLF & _ "#" & @CRLF & _ "# any negative value: caching forever" & @CRLF & _ "# any positive value: the number of seconds to cache an address for" & @CRLF & _ "# zero: do not cache" & @CRLF & _ "#" & @CRLF & _ "# default value is forever (FOREVER). For security reasons, this" & @CRLF & _ "# caching is made forever when a security manager is set. When a security" & @CRLF & _ "# manager is not set, the default behavior in this implementation" & @CRLF & _ "# is to cache for 30 seconds." & @CRLF & _ "#" & @CRLF & _ "# NOTE: setting this to anything other than the default value can have" & @CRLF & _ "# serious security implications. Do not set it unless" & @CRLF & _ "# you are sure you are not exposed to DNS spoofing attack." & @CRLF & _ "#" & @CRLF & _ "#networkaddress.cache.ttl=-1" & @CRLF & _ "" & @CRLF & _ "# The Java-level namelookup cache policy for failed lookups:" & @CRLF & _ "#" & @CRLF & _ "# any negative value: cache forever" & @CRLF & _ "# any positive value: the number of seconds to cache negative lookup results" & @CRLF & _ "# zero: do not cache" & @CRLF & _ "#" & @CRLF & _ "# In some Microsoft Windows networking environments that employ" & @CRLF & _ "# the WINS name service in addition to DNS, name service lookups" & @CRLF & _ "# that fail may take a noticeably long time to return (approx. 5 seconds)." & @CRLF & _ "# For this reason the default caching policy is to maintain these" & @CRLF & _ "# results for 10 seconds." & @CRLF & _ "#" & @CRLF & _ "networkaddress.cache.negative.ttl=10" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Properties to configure OCSP for certificate revocation checking" & @CRLF & _ "#" & @CRLF & _ "" & @CRLF & _ "# Enable OCSP" & @CRLF & _ "#" & @CRLF & _ "# By default, OCSP is not used for certificate revocation checking." & @CRLF & _ "# This property enables the use of OCSP when set to the value "true"." & @CRLF & _ "#" & @CRLF & _ "# NOTE: SocketPermission is required to connect to an OCSP responder." & @CRLF & _ "#" & @CRLF & _ "# Example," & @CRLF & _ "# ocsp.enable=true" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Location of the OCSP responder" & @CRLF & _ "#" & @CRLF & _ "# By default, the location of the OCSP responder is determined implicitly" & @CRLF & _ "# from the certificate being validated. This property explicitly specifies" & @CRLF & _ "# the location of the OCSP responder. The property is used when the" & @CRLF & _ "# Authority Information Access extension (defined in RFC 5280) is absent" & @CRLF & _ "# from the certificate or when it requires overriding." & @CRLF & _ "#" & @CRLF & _ "# Example," & @CRLF & _ "# ocsp.responderURL=http://ocsp.example.net:80" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Subject name of the OCSP responder's certificate" & @CRLF & _ "#" & @CRLF & _ "# By default, the certificate of the OCSP responder is that of the issuer" & @CRLF & _ "# of the certificate being validated. This property identifies the certificate" & @CRLF & _ "# of the OCSP responder when the default does not apply. Its value is a string" & @CRLF & _ "# distinguished name (defined in RFC 2253) which identifies a certificate in" & @CRLF & _ "# the set of certificates supplied during cert path validation. In cases where" & @CRLF & _ "# the subject name alone is not sufficient to uniquely identify the certificate" & @CRLF & _ "# then both the "ocsp.responderCertIssuerName" and" & @CRLF & _ "# "ocsp.responderCertSerialNumber" properties must be used instead. When this" & @CRLF & _ "# property is set then those two properties are ignored." & @CRLF & _ "#" & @CRLF & _ "# Example," & @CRLF & _ "# ocsp.responderCertSubjectName=CN=OCSP Responder, O=XYZ Corp" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Issuer name of the OCSP responder's certificate" & @CRLF & _ "#" & @CRLF & _ "# By default, the certificate of the OCSP responder is that of the issuer" & @CRLF & _ "# of the certificate being validated. This property identifies the certificate" & @CRLF & _ "# of the OCSP responder when the default does not apply. Its value is a string" & @CRLF & _ "# distinguished name (defined in RFC 2253) which identifies a certificate in" & @CRLF & _ "# the set of certificates supplied during cert path validation. When this" & @CRLF & _ "# property is set then the "ocsp.responderCertSerialNumber" property must also" & @CRLF & _ "# be set. When the "ocsp.responderCertSubjectName" property is set then this" & @CRLF & _ "# property is ignored." & @CRLF & _ "#" & @CRLF & _ "# Example," & @CRLF & _ "# ocsp.responderCertIssuerName=CN=Enterprise CA, O=XYZ Corp" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Serial number of the OCSP responder's certificate" & @CRLF & _ "#" & @CRLF & _ "# By default, the certificate of the OCSP responder is that of the issuer" & @CRLF & _ "# of the certificate being validated. This property identifies the certificate" & @CRLF & _ "# of the OCSP responder when the default does not apply. Its value is a string" & @CRLF & _ "# of hexadecimal digits (colon or space separators may be present) which" & @CRLF & _ "# identifies a certificate in the set of certificates supplied during cert path" & @CRLF & _ "# validation. When this property is set then the "ocsp.responderCertIssuerName"" & @CRLF & _ "# property must also be set. When the "ocsp.responderCertSubjectName" property" & @CRLF & _ "# is set then this property is ignored." & @CRLF & _ "#" & @CRLF & _ "# Example," & @CRLF & _ "# ocsp.responderCertSerialNumber=2A:FF:00" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Policy for failed Kerberos KDC lookups:" & @CRLF & _ "#" & @CRLF & _ "# When a KDC is unavailable (network error, service failure, etc), it is" & @CRLF & _ "# put inside a secondary list and accessed less often for future requests. The" & @CRLF & _ "# value (case-insensitive) for this policy can be:" & @CRLF & _ "#" & @CRLF & _ "# tryLast" & @CRLF & _ "# KDCs in the secondary list are always tried after those not on the list." & @CRLF & _ "#" & @CRLF & _ "# tryLess[:max_retries,timeout]" & @CRLF & _ "# KDCs in the secondary list are still tried by their order in the" & @CRLF & _ "# configuration, but with smaller max_retries and timeout values." & @CRLF & _ "# max_retries and timeout are optional numerical parameters (default 1 and" & @CRLF & _ "# 5000, which means once and 5 seconds). Please note that if any of the" & @CRLF & _ "# values defined here are more than what is defined in krb5.conf, it will be" & @CRLF & _ "# ignored." & @CRLF & _ "#" & @CRLF & _ "# Whenever a KDC is detected as available, it is removed from the secondary" & @CRLF & _ "# list. The secondary list is reset when krb5.conf is reloaded. You can add" & @CRLF & _ "# refreshKrb5Config=true to a JAAS configuration file so that krb5.conf is" & @CRLF & _ "# reloaded whenever a JAAS authentication is attempted." & @CRLF & _ "#" & @CRLF & _ "# Example," & @CRLF & _ "# krb5.kdc.bad.policy = tryLast" & @CRLF & _ "# krb5.kdc.bad.policy = tryLess:2,2000" & @CRLF & _ "#" & @CRLF & _ "krb5.kdc.bad.policy = tryLast" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Kerberos cross-realm referrals (RFC 6806)" & @CRLF & _ "#" & @CRLF & _ "# OpenJDK's Kerberos client supports cross-realm referrals as defined in" & @CRLF & _ "# RFC 6806. This allows to setup more dynamic environments in which clients" & @CRLF & _ "# do not need to know in advance how to reach the realm of a target principal" & @CRLF & _ "# (either a user or service)." & @CRLF & _ "#" & @CRLF & _ "# When a client issues an AS or a TGS request, the "canonicalize" option" & @CRLF & _ "# is set to announce support of this feature. A KDC server may fulfill the" & @CRLF & _ "# request or reply referring the client to a different one. If referred," & @CRLF & _ "# the client will issue a new request and the cycle repeats." & @CRLF & _ "#" & @CRLF & _ "# In addition to referrals, the "canonicalize" option allows the KDC server" & @CRLF & _ "# to change the client name in response to an AS request. For security reasons," & @CRLF & _ "# RFC 6806 (section 11) FAST scheme is enforced." & @CRLF & _ "#" & @CRLF & _ "# Disable Kerberos cross-realm referrals. Value may be overwritten with a" & @CRLF & _ "# System property (-Dsun.security.krb5.disableReferrals)." & @CRLF & _ "sun.security.krb5.disableReferrals=false" & @CRLF & _ "" & @CRLF & _ "# Maximum number of AS or TGS referrals to avoid infinite loops. Value may" & @CRLF & _ "# be overwritten with a System property (-Dsun.security.krb5.maxReferrals)." & @CRLF & _ "sun.security.krb5.maxReferrals=5" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# This property contains a list of disabled EC Named Curves that can be included" & @CRLF & _ "# in the jdk.[tls|certpath|jar].disabledAlgorithms properties. To include this" & @CRLF & _ "# list in any of the disabledAlgorithms properties, add the property name as" & @CRLF & _ "# an entry." & @CRLF & _ "#jdk.disabled.namedCurves=" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Algorithm restrictions for certification path (CertPath) processing" & @CRLF & _ "#" & @CRLF & _ "# In some environments, certain algorithms or key lengths may be undesirable" & @CRLF & _ "# for certification path building and validation. For example, "MD2" is" & @CRLF & _ "# generally no longer considered to be a secure hash algorithm. This section" & @CRLF & _ "# describes the mechanism for disabling algorithms based on algorithm name" & @CRLF & _ "# and/or key length. This includes algorithms used in certificates, as well" & @CRLF & _ "# as revocation information such as CRLs and signed OCSP Responses." & @CRLF & _ "# The syntax of the disabled algorithm string is described as follows:" & @CRLF & _ "# DisabledAlgorithms:" & @CRLF & _ "# " DisabledAlgorithm { , DisabledAlgorithm } "" & @CRLF & _ "#" & @CRLF & _ "# DisabledAlgorithm:" & @CRLF & _ "# AlgorithmName [Constraint] { '&' Constraint } | IncludeProperty" & @CRLF & _ "#" & @CRLF & _ "# AlgorithmName:" & @CRLF & _ "# (see below)" & @CRLF & _ "#" & @CRLF & _ "# Constraint:" & @CRLF & _ "# KeySizeConstraint | CAConstraint | DenyAfterConstraint |" & @CRLF & _ "# UsageConstraint" & @CRLF & _ "#" & @CRLF & _ "# KeySizeConstraint:" & @CRLF & _ "# keySize Operator KeyLength" & @CRLF & _ "#" & @CRLF & _ "# Operator:" & @CRLF & _ "# <= | < | == | != | >= | >" & @CRLF & _ "#" & @CRLF & _ "# KeyLength:" & @CRLF & _ "# Integer value of the algorithm's key length in bits" & @CRLF & _ "#" & @CRLF & _ "# CAConstraint:" & @CRLF & _ "# jdkCA" & @CRLF & _ "#" & @CRLF & _ "# DenyAfterConstraint:" & @CRLF & _ "# denyAfter YYYY-MM-DD" & @CRLF & _ "#" & @CRLF & _ "# UsageConstraint:" & @CRLF & _ "# usage [TLSServer] [TLSClient] [SignedJAR]" & @CRLF & _ "#" & @CRLF & _ "# IncludeProperty:" & @CRLF & _ "# include <security property>" & @CRLF & _ "#" & @CRLF & _ "# The "AlgorithmName" is the standard algorithm name of the disabled" & @CRLF & _ "# algorithm. See the Java Security Standard Algorithm Names Specification" & @CRLF & _ "# for information about Standard Algorithm Names. Matching is" & @CRLF & _ "# performed using a case-insensitive sub-element matching rule. (For" & @CRLF & _ "# example, in "SHA1withECDSA" the sub-elements are "SHA1" for hashing and" & @CRLF & _ "# "ECDSA" for signatures.) If the assertion "AlgorithmName" is a" & @CRLF & _ "# sub-element of the certificate algorithm name, the algorithm will be" & @CRLF & _ "# rejected during certification path building and validation. For example," & @CRLF & _ "# the assertion algorithm name "DSA" will disable all certificate algorithms" & @CRLF & _ "# that rely on DSA, such as NONEwithDSA, SHA1withDSA. However, the assertion" & @CRLF & _ "# will not disable algorithms related to "ECDSA"." & @CRLF & _ "#" & @CRLF & _ "# The "IncludeProperty" allows a implementation-defined security property that" & @CRLF & _ "# can be included in the disabledAlgorithms properties. These properties are" & @CRLF & _ "# to help manage common actions easier across multiple disabledAlgorithm" & @CRLF & _ "# properties." & @CRLF & _ "# There is one defined security property: jdk.disabled.namedCurves" & @CRLF & _ "# See the property for more specific details." & @CRLF & _ "#" & @CRLF & _ "#" & @CRLF & _ "# A "Constraint" defines restrictions on the keys and/or certificates for" & @CRLF & _ "# a specified AlgorithmName:" & @CRLF & _ "#" & @CRLF & _ "# KeySizeConstraint:" & @CRLF & _ "# keySize Operator KeyLength" & @CRLF & _ "# The constraint requires a key of a valid size range if the" & @CRLF & _ "# "AlgorithmName" is of a key algorithm. The "KeyLength" indicates" & @CRLF & _ "# the key size specified in number of bits. For example," & @CRLF & _ "# "RSA keySize <= 1024" indicates that any RSA key with key size less" & @CRLF & _ "# than or equal to 1024 bits should be disabled, and" & @CRLF & _ "# "RSA keySize < 1024, RSA keySize > 2048" indicates that any RSA key" & @CRLF & _ "# with key size less than 1024 or greater than 2048 should be disabled." & @CRLF & _ "# This constraint is only used on algorithms that have a key size." & @CRLF & _ "#" & @CRLF & _ "# CAConstraint:" & @CRLF & _ "# jdkCA" & @CRLF & _ "# This constraint prohibits the specified algorithm only if the" & @CRLF & _ "# algorithm is used in a certificate chain that terminates at a marked" & @CRLF & _ "# trust anchor in the lib/security/cacerts keystore. If the jdkCA" & @CRLF & _ "# constraint is not set, then all chains using the specified algorithm" & @CRLF & _ "# are restricted. jdkCA may only be used once in a DisabledAlgorithm" & @CRLF & _ "# expression." & @CRLF & _ "# Example: To apply this constraint to SHA-1 certificates, include" & @CRLF & _ "# the following: "SHA1 jdkCA"" & @CRLF & _ "#" & @CRLF & _ "# DenyAfterConstraint:" & @CRLF & _ "# denyAfter YYYY-MM-DD" & @CRLF & _ "# This constraint prohibits a certificate with the specified algorithm" & @CRLF & _ "# from being used after the date regardless of the certificate's" & @CRLF & _ "# validity. JAR files that are signed and timestamped before the" & @CRLF & _ "# constraint date with certificates containing the disabled algorithm" & @CRLF & _ "# will not be restricted. The date is processed in the UTC timezone." & @CRLF & _ "# This constraint can only be used once in a DisabledAlgorithm" & @CRLF & _ "# expression." & @CRLF & _ "# Example: To deny usage of RSA 2048 bit certificates after Feb 3 2020," & @CRLF & _ "# use the following: "RSA keySize == 2048 & denyAfter 2020-02-03"" & @CRLF & _ "#" & @CRLF & _ "# UsageConstraint:" & @CRLF & _ "# usage [TLSServer] [TLSClient] [SignedJAR]" & @CRLF & _ "# This constraint prohibits the specified algorithm for" & @CRLF & _ "# a specified usage. This should be used when disabling an algorithm" & @CRLF & _ "# for all usages is not practical. 'TLSServer' restricts the algorithm" & @CRLF & _ "# in TLS server certificate chains when server authentication is" & @CRLF & _ "# performed. 'TLSClient' restricts the algorithm in TLS client" & @CRLF & _ "# certificate chains when client authentication is performed." & @CRLF & _ "# 'SignedJAR' constrains use of certificates in signed jar files." & @CRLF & _ "# The usage type follows the keyword and more than one usage type can" & @CRLF & _ "# be specified with a whitespace delimiter." & @CRLF & _ "# Example: "SHA1 usage TLSServer TLSClient"" & @CRLF & _ "#" & @CRLF & _ "# When an algorithm must satisfy more than one constraint, it must be" & @CRLF & _ "# delimited by an ampersand '&'. For example, to restrict certificates in a" & @CRLF & _ "# chain that terminate at a distribution provided trust anchor and contain" & @CRLF & _ "# RSA keys that are less than or equal to 1024 bits, add the following" & @CRLF & _ "# constraint: "RSA keySize <= 1024 & jdkCA"." & @CRLF & _ "#" & @CRLF & _ "# All DisabledAlgorithms expressions are processed in the order defined in the" & @CRLF & _ "# property. This requires lower keysize constraints to be specified" & @CRLF & _ "# before larger keysize constraints of the same algorithm. For example:" & @CRLF & _ "# "RSA keySize < 1024 & jdkCA, RSA keySize < 2048"." & @CRLF & _ "#" & @CRLF & _ "# Note: The algorithm restrictions do not apply to trust anchors or" & @CRLF & _ "# self-signed certificates." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by Oracle's PKIX implementation. It" & @CRLF & _ "# is not guaranteed to be examined and used by other implementations." & @CRLF & _ "#" & @CRLF & _ "# Example:" & @CRLF & _ "# jdk.certpath.disabledAlgorithms=MD2, DSA, RSA keySize < 2048" & @CRLF & _ "#" & @CRLF & _ "#" & @CRLF & _ "jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \" & @CRLF & _ " RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224, \" & @CRLF & _ " SHA1 usage SignedJAR & denyAfter 2019-01-01" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Legacy algorithms for certification path (CertPath) processing and" & @CRLF & _ "# signed JAR files." & @CRLF & _ "#" & @CRLF & _ "# In some environments, a certain algorithm or key length may be undesirable" & @CRLF & _ "# but is not yet disabled." & @CRLF & _ "#" & @CRLF & _ "# Tools such as keytool and jarsigner may emit warnings when these legacy" & @CRLF & _ "# algorithms are used. See the man pages for those tools for more information." & @CRLF & _ "#" & @CRLF & _ "# The syntax is the same as the "jdk.certpath.disabledAlgorithms" and" & @CRLF & _ "# "jdk.jar.disabledAlgorithms" security properties." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by the JDK Reference" & @CRLF & _ "# implementation. It is not guaranteed to be examined and used by other" & @CRLF & _ "# implementations." & @CRLF & _ "" & @CRLF & _ "jdk.security.legacyAlgorithms=SHA1, \" & @CRLF & _ " RSA keySize < 2048, DSA keySize < 2048" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Algorithm restrictions for signed JAR files" & @CRLF & _ "#" & @CRLF & _ "# In some environments, certain algorithms or key lengths may be undesirable" & @CRLF & _ "# for signed JAR validation. For example, "MD2" is generally no longer" & @CRLF & _ "# considered to be a secure hash algorithm. This section describes the" & @CRLF & _ "# mechanism for disabling algorithms based on algorithm name and/or key length." & @CRLF & _ "# JARs signed with any of the disabled algorithms or key sizes will be treated" & @CRLF & _ "# as unsigned." & @CRLF & _ "#" & @CRLF & _ "# The syntax of the disabled algorithm string is described as follows:" & @CRLF & _ "# DisabledAlgorithms:" & @CRLF & _ "# " DisabledAlgorithm { , DisabledAlgorithm } "" & @CRLF & _ "#" & @CRLF & _ "# DisabledAlgorithm:" & @CRLF & _ "# AlgorithmName [Constraint] { '&' Constraint }" & @CRLF & _ "#" & @CRLF & _ "# AlgorithmName:" & @CRLF & _ "# (see below)" & @CRLF & _ "#" & @CRLF & _ "# Constraint:" & @CRLF & _ "# KeySizeConstraint | DenyAfterConstraint" & @CRLF & _ "#" & @CRLF & _ "# KeySizeConstraint:" & @CRLF & _ "# keySize Operator KeyLength" & @CRLF & _ "#" & @CRLF & _ "# DenyAfterConstraint:" & @CRLF & _ "# denyAfter YYYY-MM-DD" & @CRLF & _ "#" & @CRLF & _ "# Operator:" & @CRLF & _ "# <= | < | == | != | >= | >" & @CRLF & _ "#" & @CRLF & _ "# KeyLength:" & @CRLF & _ "# Integer value of the algorithm's key length in bits" & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by the JDK Reference" & @CRLF & _ "# implementation. It is not guaranteed to be examined and used by other" & @CRLF & _ "# implementations." & @CRLF & _ "#" & @CRLF & _ "# See "jdk.certpath.disabledAlgorithms" for syntax descriptions." & @CRLF & _ "#" & @CRLF & _ "jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, \" & @CRLF & _ " DSA keySize < 1024, SHA1 denyAfter 2019-01-01" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Algorithm restrictions for Secure Socket Layer/Transport Layer Security" & @CRLF & _ "# (SSL/TLS/DTLS) processing" & @CRLF & _ "#" & @CRLF & _ "# In some environments, certain algorithms or key lengths may be undesirable" & @CRLF & _ "# when using SSL/TLS/DTLS. This section describes the mechanism for disabling" & @CRLF & _ "# algorithms during SSL/TLS/DTLS security parameters negotiation, including" & @CRLF & _ "# protocol version negotiation, cipher suites selection, named groups" & @CRLF & _ "# selection, signature schemes selection, peer authentication and key" & @CRLF & _ "# exchange mechanisms." & @CRLF & _ "#" & @CRLF & _ "# Disabled algorithms will not be negotiated for SSL/TLS connections, even" & @CRLF & _ "# if they are enabled explicitly in an application." & @CRLF & _ "#" & @CRLF & _ "# For PKI-based peer authentication and key exchange mechanisms, this list" & @CRLF & _ "# of disabled algorithms will also be checked during certification path" & @CRLF & _ "# building and validation, including algorithms used in certificates, as" & @CRLF & _ "# well as revocation information such as CRLs and signed OCSP Responses." & @CRLF & _ "# This is in addition to the jdk.certpath.disabledAlgorithms property above." & @CRLF & _ "#" & @CRLF & _ "# See the specification of "jdk.certpath.disabledAlgorithms" for the" & @CRLF & _ "# syntax of the disabled algorithm string." & @CRLF & _ "#" & @CRLF & _ "# Note: The algorithm restrictions do not apply to trust anchors or" & @CRLF & _ "# self-signed certificates." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by the JDK Reference implementation." & @CRLF & _ "# It is not guaranteed to be examined and used by other implementations." & @CRLF & _ "#" & @CRLF & _ "# Example:" & @CRLF & _ "# jdk.tls.disabledAlgorithms=MD5, SSLv3, DSA, RSA keySize < 2048, \" & @CRLF & _ "# rsa_pkcs1_sha1, secp224r1" & @CRLF & _ "jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \" & @CRLF & _ " DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Legacy algorithms for Secure Socket Layer/Transport Layer Security (SSL/TLS)" & @CRLF & _ "# processing in JSSE implementation." & @CRLF & _ "#" & @CRLF & _ "# In some environments, a certain algorithm may be undesirable but it" & @CRLF & _ "# cannot be disabled because of its use in legacy applications. Legacy" & @CRLF & _ "# algorithms may still be supported, but applications should not use them" & @CRLF & _ "# as the security strength of legacy algorithms are usually not strong enough" & @CRLF & _ "# in practice." & @CRLF & _ "#" & @CRLF & _ "# During SSL/TLS security parameters negotiation, legacy algorithms will" & @CRLF & _ "# not be negotiated unless there are no other candidates." & @CRLF & _ "#" & @CRLF & _ "# The syntax of the legacy algorithms string is described as this Java" & @CRLF & _ "# BNF-style:" & @CRLF & _ "# LegacyAlgorithms:" & @CRLF & _ "# " LegacyAlgorithm { , LegacyAlgorithm } "" & @CRLF & _ "#" & @CRLF & _ "# LegacyAlgorithm:" & @CRLF & _ "# AlgorithmName (standard JSSE algorithm name)" & @CRLF & _ "#" & @CRLF & _ "# See the specification of security property "jdk.certpath.disabledAlgorithms"" & @CRLF & _ "# for the syntax and description of the "AlgorithmName" notation." & @CRLF & _ "#" & @CRLF & _ "# Per SSL/TLS specifications, cipher suites have the form:" & @CRLF & _ "# SSL_KeyExchangeAlg_WITH_CipherAlg_MacAlg" & @CRLF & _ "# or" & @CRLF & _ "# TLS_KeyExchangeAlg_WITH_CipherAlg_MacAlg" & @CRLF & _ "#" & @CRLF & _ "# For example, the cipher suite TLS_RSA_WITH_AES_128_CBC_SHA uses RSA as the" & @CRLF & _ "# key exchange algorithm, AES_128_CBC (128 bits AES cipher algorithm in CBC" & @CRLF & _ "# mode) as the cipher (encryption) algorithm, and SHA-1 as the message digest" & @CRLF & _ "# algorithm for HMAC." & @CRLF & _ "#" & @CRLF & _ "# The LegacyAlgorithm can be one of the following standard algorithm names:" & @CRLF & _ "# 1. JSSE cipher suite name, e.g., TLS_RSA_WITH_AES_128_CBC_SHA" & @CRLF & _ "# 2. JSSE key exchange algorithm name, e.g., RSA" & @CRLF & _ "# 3. JSSE cipher (encryption) algorithm name, e.g., AES_128_CBC" & @CRLF & _ "# 4. JSSE message digest algorithm name, e.g., SHA" & @CRLF & _ "#" & @CRLF & _ "# See SSL/TLS specifications and the Java Security Standard Algorithm Names" & @CRLF & _ "# Specification for information about the algorithm names." & @CRLF & _ "#" & @CRLF & _ "# Note: If a legacy algorithm is also restricted through the" & @CRLF & _ "# jdk.tls.disabledAlgorithms property or the" & @CRLF & _ "# java.security.AlgorithmConstraints API (See" & @CRLF & _ "# javax.net.ssl.SSLParameters.setAlgorithmConstraints())," & @CRLF & _ "# then the algorithm is completely disabled and will not be negotiated." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by the JDK Reference implementation." & @CRLF & _ "# It is not guaranteed to be examined and used by other implementations." & @CRLF & _ "# There is no guarantee the property will continue to exist or be of the" & @CRLF & _ "# same syntax in future releases." & @CRLF & _ "#" & @CRLF & _ "# Example:" & @CRLF & _ "# jdk.tls.legacyAlgorithms=DH_anon, DES_CBC, SSL_RSA_WITH_RC4_128_MD5" & @CRLF & _ "#" & @CRLF & _ "jdk.tls.legacyAlgorithms=NULL, anon, RC4, DES, 3DES_EDE_CBC" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# The pre-defined default finite field Diffie-Hellman ephemeral (DHE)" & @CRLF & _ "# parameters for Transport Layer Security (SSL/TLS/DTLS) processing." & @CRLF & _ "#" & @CRLF & _ "# In traditional SSL/TLS/DTLS connections where finite field DHE parameters" & @CRLF & _ "# negotiation mechanism is not used, the server offers the client group" & @CRLF & _ "# parameters, base generator g and prime modulus p, for DHE key exchange." & @CRLF & _ "# It is recommended to use dynamic group parameters. This property defines" & @CRLF & _ "# a mechanism that allows you to specify custom group parameters." & @CRLF & _ "#" & @CRLF & _ "# The syntax of this property string is described as this Java BNF-style:" & @CRLF & _ "# DefaultDHEParameters:" & @CRLF & _ "# DefinedDHEParameters { , DefinedDHEParameters }" & @CRLF & _ "#" & @CRLF & _ "# DefinedDHEParameters:" & @CRLF & _ "# "{" DHEPrimeModulus , DHEBaseGenerator "}"" & @CRLF & _ "#" & @CRLF & _ "# DHEPrimeModulus:" & @CRLF & _ "# HexadecimalDigits" & @CRLF & _ "#" & @CRLF & _ "# DHEBaseGenerator:" & @CRLF & _ "# HexadecimalDigits" & @CRLF & _ "#" & @CRLF & _ "# HexadecimalDigits:" & @CRLF & _ "# HexadecimalDigit { HexadecimalDigit }" & @CRLF & _ "#" & @CRLF & _ "# HexadecimalDigit: one of" & @CRLF & _ "# 0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f" & @CRLF & _ "#" & @CRLF & _ "# Whitespace characters are ignored." & @CRLF & _ "#" & @CRLF & _ "# The "DefinedDHEParameters" defines the custom group parameters, prime" & @CRLF & _ "# modulus p and base generator g, for a particular size of prime modulus p." & @CRLF & _ "# The "DHEPrimeModulus" defines the hexadecimal prime modulus p, and the" & @CRLF & _ "# "DHEBaseGenerator" defines the hexadecimal base generator g of a group" & @CRLF & _ "# parameter. It is recommended to use safe primes for the custom group" & @CRLF & _ "# parameters." & @CRLF & _ "#" & @CRLF & _ "# If this property is not defined or the value is empty, the underlying JSSE" & @CRLF & _ "# provider's default group parameter is used for each connection." & @CRLF & _ "#" & @CRLF & _ "# If the property value does not follow the grammar, or a particular group" & @CRLF & _ "# parameter is not valid, the connection will fall back and use the" & @CRLF & _ "# underlying JSSE provider's default group parameter." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by OpenJDK's JSSE implementation. It" & @CRLF & _ "# is not guaranteed to be examined and used by other implementations." & @CRLF & _ "#" & @CRLF & _ "# Example:" & @CRLF & _ "# jdk.tls.server.defaultDHEParameters=" & @CRLF & _ "# { \" & @CRLF & _ "# FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 \" & @CRLF & _ "# 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD \" & @CRLF & _ "# EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245 \" & @CRLF & _ "# E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED \" & @CRLF & _ "# EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381 \" & @CRLF & _ "# FFFFFFFF FFFFFFFF, 2}" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# TLS key limits on symmetric cryptographic algorithms" & @CRLF & _ "#" & @CRLF & _ "# This security property sets limits on algorithms key usage in TLS 1.3." & @CRLF & _ "# When the amount of data encrypted exceeds the algorithm value listed below," & @CRLF & _ "# a KeyUpdate message will trigger a key change. This is for symmetric ciphers" & @CRLF & _ "# with TLS 1.3 only." & @CRLF & _ "#" & @CRLF & _ "# The syntax for the property is described below:" & @CRLF & _ "# KeyLimits:" & @CRLF & _ "# " KeyLimit { , KeyLimit } "" & @CRLF & _ "#" & @CRLF & _ "# WeakKeyLimit:" & @CRLF & _ "# AlgorithmName Action Length" & @CRLF & _ "#" & @CRLF & _ "# AlgorithmName:" & @CRLF & _ "# A full algorithm transformation." & @CRLF & _ "#" & @CRLF & _ "# Action:" & @CRLF & _ "# KeyUpdate" & @CRLF & _ "#" & @CRLF & _ "# Length:" & @CRLF & _ "# The amount of encrypted data in a session before the Action occurs" & @CRLF & _ "# This value may be an integer value in bytes, or as a power of two, 2^29." & @CRLF & _ "#" & @CRLF & _ "# KeyUpdate:" & @CRLF & _ "# The TLS 1.3 KeyUpdate handshake process begins when the Length amount" & @CRLF & _ "# is fulfilled." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by OpenJDK's JSSE implementation. It" & @CRLF & _ "# is not guaranteed to be examined and used by other implementations." & @CRLF & _ "#" & @CRLF & _ "jdk.tls.keyLimits=AES/GCM/NoPadding KeyUpdate 2^37, \" & @CRLF & _ " ChaCha20-Poly1305 KeyUpdate 2^37" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Cryptographic Jurisdiction Policy defaults" & @CRLF & _ "#" & @CRLF & _ "# Import and export control rules on cryptographic software vary from" & @CRLF & _ "# country to country. By default, Java provides two different sets of" & @CRLF & _ "# cryptographic policy files[1]:" & @CRLF & _ "#" & @CRLF & _ "# unlimited: These policy files contain no restrictions on cryptographic" & @CRLF & _ "# strengths or algorithms" & @CRLF & _ "#" & @CRLF & _ "# limited: These policy files contain more restricted cryptographic" & @CRLF & _ "# strengths" & @CRLF & _ "#" & @CRLF & _ "# The default setting is determined by the value of the "crypto.policy"" & @CRLF & _ "# Security property below. If your country or usage requires the" & @CRLF & _ "# traditional restrictive policy, the "limited" Java cryptographic" & @CRLF & _ "# policy is still available and may be appropriate for your environment." & @CRLF & _ "#" & @CRLF & _ "# If you have restrictions that do not fit either use case mentioned" & @CRLF & _ "# above, Java provides the capability to customize these policy files." & @CRLF & _ "# The "crypto.policy" security property points to a subdirectory" & @CRLF & _ "# within <java-home>/conf/security/policy/ which can be customized." & @CRLF & _ "# Please see the <java-home>/conf/security/policy/README.txt file or consult" & @CRLF & _ "# the Java Security Guide/JCA documentation for more information." & @CRLF & _ "#" & @CRLF & _ "# YOU ARE ADVISED TO CONSULT YOUR EXPORT/IMPORT CONTROL COUNSEL OR ATTORNEY" & @CRLF & _ "# TO DETERMINE THE EXACT REQUIREMENTS." & @CRLF & _ "#" & @CRLF & _ "# [1] Please note that the JCE for Java SE, including the JCE framework," & @CRLF & _ "# cryptographic policy files, and standard JCE providers provided with" & @CRLF & _ "# the Java SE, have been reviewed and approved for export as mass market" & @CRLF & _ "# encryption item by the US Bureau of Industry and Security." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by the JDK Reference implementation." & @CRLF & _ "# It is not guaranteed to be examined and used by other implementations." & @CRLF & _ "#" & @CRLF & _ "crypto.policy=unlimited" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# The policy for the XML Signature secure validation mode. Validation of" & @CRLF & _ "# XML Signatures that violate any of these constraints will fail. The" & @CRLF & _ "# mode is enforced by default. The mode can be disabled by setting the" & @CRLF & _ "# property "org.jcp.xml.dsig.secureValidation" to Boolean.FALSE with the" & @CRLF & _ "# javax.xml.crypto.XMLCryptoContext.setProperty() method." & @CRLF & _ "#" & @CRLF & _ "# Policy:" & @CRLF & _ "# Constraint {"," Constraint }" & @CRLF & _ "# Constraint:" & @CRLF & _ "# AlgConstraint | MaxTransformsConstraint | MaxReferencesConstraint |" & @CRLF & _ "# ReferenceUriSchemeConstraint | KeySizeConstraint | OtherConstraint" & @CRLF & _ "# AlgConstraint" & @CRLF & _ "# "disallowAlg" Uri" & @CRLF & _ "# MaxTransformsConstraint:" & @CRLF & _ "# "maxTransforms" Integer" & @CRLF & _ "# MaxReferencesConstraint:" & @CRLF & _ "# "maxReferences" Integer" & @CRLF & _ "# ReferenceUriSchemeConstraint:" & @CRLF & _ "# "disallowReferenceUriSchemes" String { String }" & @CRLF & _ "# KeySizeConstraint:" & @CRLF & _ "# "minKeySize" KeyAlg Integer" & @CRLF & _ "# OtherConstraint:" & @CRLF & _ "# "noDuplicateIds" | "noRetrievalMethodLoops"" & @CRLF & _ "#" & @CRLF & _ "# For AlgConstraint, Uri is the algorithm URI String that is not allowed." & @CRLF & _ "# See the XML Signature Recommendation for more information on algorithm" & @CRLF & _ "# URI Identifiers. For KeySizeConstraint, KeyAlg is the standard algorithm" & @CRLF & _ "# name of the key type (ex: "RSA"). If the MaxTransformsConstraint," & @CRLF & _ "# MaxReferencesConstraint or KeySizeConstraint (for the same key type) is" & @CRLF & _ "# specified more than once, only the last entry is enforced." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by the JDK Reference implementation." & @CRLF & _ "# It is not guaranteed to be examined and used by other implementations." & @CRLF & _ "#" & @CRLF & _ "jdk.xml.dsig.secureValidationPolicy=\" & @CRLF & _ " disallowAlg http://www.w3.org/TR/1999/REC-xslt-19991116,\" & @CRLF & _ " disallowAlg http://www.w3.org/2001/04/xmldsig-more#rsa-md5,\" & @CRLF & _ " disallowAlg http://www.w3.org/2001/04/xmldsig-more#hmac-md5,\" & @CRLF & _ " disallowAlg http://www.w3.org/2001/04/xmldsig-more#md5,\" & @CRLF & _ " disallowAlg http://www.w3.org/2000/09/xmldsig#sha1,\" & @CRLF & _ " disallowAlg http://www.w3.org/2000/09/xmldsig#dsa-sha1,\" & @CRLF & _ " disallowAlg http://www.w3.org/2000/09/xmldsig#rsa-sha1,\" & @CRLF & _ " disallowAlg http://www.w3.org/2007/05/xmldsig-more#sha1-rsa-MGF1,\" & @CRLF & _ " disallowAlg http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1,\" & @CRLF & _ " maxTransforms 5,\" & @CRLF & _ " maxReferences 30,\" & @CRLF & _ " disallowReferenceUriSchemes file http https,\" & @CRLF & _ " minKeySize RSA 1024,\" & @CRLF & _ " minKeySize DSA 1024,\" & @CRLF & _ " minKeySize EC 224,\" & @CRLF & _ " noDuplicateIds,\" & @CRLF & _ " noRetrievalMethodLoops" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Deserialization JVM-wide filter factory" & @CRLF & _ "#" & @CRLF & _ "# A filter factory class name is used to configure the JVM-wide filter factory." & @CRLF & _ "# The class must be public, must have a public zero-argument constructor, implement the" & @CRLF & _ "# java.util.function.BinaryOperator<java.io.ObjectInputFilter> interface, provide its" & @CRLF & _ "# implementation and be accessible via the application class loader." & @CRLF & _ "# A builtin filter factory is used if no filter factory is defined." & @CRLF & _ "# See java.io.ObjectInputFilter.Config for more information." & @CRLF & _ "#" & @CRLF & _ "# If the system property jdk.serialFilterFactory is also specified, it supersedes" & @CRLF & _ "# the security property value defined here." & @CRLF & _ "#" & @CRLF & _ "#jdk.serialFilterFactory=<classname>" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Deserialization JVM-wide filter" & @CRLF & _ "#" & @CRLF & _ "# A filter, if configured, is used by the filter factory to provide the filter used by" & @CRLF & _ "# java.io.ObjectInputStream during deserialization to check the contents of the stream." & @CRLF & _ "# A filter is configured as a sequence of patterns, each pattern is either" & @CRLF & _ "# matched against the name of a class in the stream or defines a limit." & @CRLF & _ "# Patterns are separated by ";" (semicolon)." & @CRLF & _ "# Whitespace is significant and is considered part of the pattern." & @CRLF & _ "#" & @CRLF & _ "# If the system property jdk.serialFilter is also specified, it supersedes" & @CRLF & _ "# the security property value defined here." & @CRLF & _ "#" & @CRLF & _ "# If a pattern includes a "=", it sets a limit." & @CRLF & _ "# If a limit appears more than once the last value is used." & @CRLF & _ "# Limits are checked before classes regardless of the order in the" & @CRLF & _ "# sequence of patterns." & @CRLF & _ "# If any of the limits are exceeded, the filter status is REJECTED." & @CRLF & _ "#" & @CRLF & _ "# maxdepth=value - the maximum depth of a graph" & @CRLF & _ "# maxrefs=value - the maximum number of internal references" & @CRLF & _ "# maxbytes=value - the maximum number of bytes in the input stream" & @CRLF & _ "# maxarray=value - the maximum array length allowed" & @CRLF & _ "#" & @CRLF & _ "# Other patterns, from left to right, match the class or package name as" & @CRLF & _ "# returned from Class.getName." & @CRLF & _ "# If the class is an array type, the class or package to be matched is the" & @CRLF & _ "# element type." & @CRLF & _ "# Arrays of any number of dimensions are treated the same as the element type." & @CRLF & _ "# For example, a pattern of "!example.Foo", rejects creation of any instance or" & @CRLF & _ "# array of example.Foo." & @CRLF & _ "#" & @CRLF & _ "# If the pattern starts with "!", the status is REJECTED if the remaining" & @CRLF & _ "# pattern is matched; otherwise the status is ALLOWED if the pattern matches." & @CRLF & _ "# If the pattern contains "/", the non-empty prefix up to the "/" is the" & @CRLF & _ "# module name;" & @CRLF & _ "# if the module name matches the module name of the class then" & @CRLF & _ "# the remaining pattern is matched with the class name." & @CRLF & _ "# If there is no "/", the module name is not compared." & @CRLF & _ "# If the pattern ends with ".**" it matches any class in the package and all" & @CRLF & _ "# subpackages." & @CRLF & _ "# If the pattern ends with ".*" it matches any class in the package." & @CRLF & _ "# If the pattern ends with "*", it matches any class with the pattern as a" & @CRLF & _ "# prefix." & @CRLF & _ "# If the pattern is equal to the class name, it matches." & @CRLF & _ "# Otherwise, the status is UNDECIDED." & @CRLF & _ "#" & @CRLF & _ "#jdk.serialFilter=pattern;pattern" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# RMI Registry Serial Filter" & @CRLF & _ "#" & @CRLF & _ "# The filter pattern uses the same format as jdk.serialFilter." & @CRLF & _ "# This filter can override the builtin filter if additional types need to be" & @CRLF & _ "# allowed or rejected from the RMI Registry or to decrease limits but not" & @CRLF & _ "# to increase limits." & @CRLF & _ "# If the limits (maxdepth, maxrefs, or maxbytes) are exceeded, the object is rejected." & @CRLF & _ "#" & @CRLF & _ "# Each non-array type is allowed or rejected if it matches one of the patterns," & @CRLF & _ "# evaluated from left to right, and is otherwise allowed. Arrays of any" & @CRLF & _ "# component type, including subarrays and arrays of primitives, are allowed." & @CRLF & _ "#" & @CRLF & _ "# Array construction of any component type, including subarrays and arrays of" & @CRLF & _ "# primitives, are allowed unless the length is greater than the maxarray limit." & @CRLF & _ "# The filter is applied to each array element." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by the JDK Reference implementation." & @CRLF & _ "# It is not guaranteed to be examined and used by other implementations." & @CRLF & _ "#" & @CRLF & _ "# The built-in filter allows subclasses of allowed classes and" & @CRLF & _ "# can approximately be represented as the pattern:" & @CRLF & _ "#" & @CRLF & _ "#sun.rmi.registry.registryFilter=\" & @CRLF & _ "# maxarray=1000000;\" & @CRLF & _ "# maxdepth=20;\" & @CRLF & _ "# java.lang.String;\" & @CRLF & _ "# java.lang.Number;\" & @CRLF & _ "# java.lang.reflect.Proxy;\" & @CRLF & _ "# java.rmi.Remote;\" & @CRLF & _ "# sun.rmi.server.UnicastRef;\" & @CRLF & _ "# sun.rmi.server.RMIClientSocketFactory;\" & @CRLF & _ "# sun.rmi.server.RMIServerSocketFactory;\" & @CRLF & _ "# java.rmi.server.UID" & @CRLF & _ "#" & @CRLF & _ "# RMI Distributed Garbage Collector (DGC) Serial Filter" & @CRLF & _ "#" & @CRLF & _ "# The filter pattern uses the same format as jdk.serialFilter." & @CRLF & _ "# This filter can override the builtin filter if additional types need to be" & @CRLF & _ "# allowed or rejected from the RMI DGC." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by the JDK Reference implementation." & @CRLF & _ "# It is not guaranteed to be examined and used by other implementations." & @CRLF & _ "#" & @CRLF & _ "# The builtin DGC filter can approximately be represented as the filter pattern:" & @CRLF & _ "#" & @CRLF & _ "#sun.rmi.transport.dgcFilter=\" & @CRLF & _ "# java.rmi.server.ObjID;\" & @CRLF & _ "# java.rmi.server.UID;\" & @CRLF & _ "# java.rmi.dgc.VMID;\" & @CRLF & _ "# java.rmi.dgc.Lease;\" & @CRLF & _ "# maxdepth=5;maxarray=10000" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# JCEKS Encrypted Key Serial Filter" & @CRLF & _ "#" & @CRLF & _ "# This filter, if configured, is used by the JCEKS KeyStore during the" & @CRLF & _ "# deserialization of the encrypted Key object stored inside a key entry." & @CRLF & _ "# If not configured or the filter result is UNDECIDED (i.e. none of the patterns" & @CRLF & _ "# matches), the filter configured by jdk.serialFilter will be consulted." & @CRLF & _ "#" & @CRLF & _ "# If the system property jceks.key.serialFilter is also specified, it supersedes" & @CRLF & _ "# the security property value defined here." & @CRLF & _ "#" & @CRLF & _ "# The filter pattern uses the same format as jdk.serialFilter. The default" & @CRLF & _ "# pattern allows java.lang.Enum, java.security.KeyRep, java.security.KeyRep$Type," & @CRLF & _ "# and javax.crypto.spec.SecretKeySpec and rejects all the others." & @CRLF & _ "jceks.key.serialFilter = java.base/java.lang.Enum;java.base/java.security.KeyRep;\" & @CRLF & _ " java.base/java.security.KeyRep$Type;java.base/javax.crypto.spec.SecretKeySpec;!*" & @CRLF & _ "" & @CRLF & _ "# The iteration count used for password-based encryption (PBE) in JCEKS" & @CRLF & _ "# keystores. Values in the range 10000 to 5000000 are considered valid." & @CRLF & _ "# If the value is out of this range, or is not a number, or is unspecified;" & @CRLF & _ "# a default of 200000 is used." & @CRLF & _ "#" & @CRLF & _ "# If the system property jdk.jceks.iterationCount is also specified, it" & @CRLF & _ "# supersedes the security property value defined here." & @CRLF & _ "#" & @CRLF & _ "#jdk.jceks.iterationCount = 200000" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# PKCS12 KeyStore properties" & @CRLF & _ "#" & @CRLF & _ "# The following properties, if configured, are used by the PKCS12 KeyStore" & @CRLF & _ "# implementation during the creation of a new keystore. Several of the" & @CRLF & _ "# properties may also be used when modifying an existing keystore. The" & @CRLF & _ "# properties can be overridden by a KeyStore API that specifies its own" & @CRLF & _ "# algorithms and parameters." & @CRLF & _ "#" & @CRLF & _ "# If an existing PKCS12 keystore is loaded and then stored, the algorithm and" & @CRLF & _ "# parameter used to generate the existing Mac will be reused. If the existing" & @CRLF & _ "# keystore does not have a Mac, no Mac will be created while storing. If there" & @CRLF & _ "# is at least one certificate in the existing keystore, the algorithm and" & @CRLF & _ "# parameters used to encrypt the last certificate in the existing keystore will" & @CRLF & _ "# be reused to encrypt all certificates while storing. If the last certificate" & @CRLF & _ "# in the existing keystore is not encrypted, all certificates will be stored" & @CRLF & _ "# unencrypted. If there is no certificate in the existing keystore, any newly" & @CRLF & _ "# added certificate will be encrypted (or stored unencrypted if algorithm" & @CRLF & _ "# value is "NONE") using the "keystore.pkcs12.certProtectionAlgorithm" and" & @CRLF & _ "# "keystore.pkcs12.certPbeIterationCount" values defined here. Existing private" & @CRLF & _ "# and secret key(s) are not changed. Newly set private and secret key(s) will" & @CRLF & _ "# be encrypted using the "keystore.pkcs12.keyProtectionAlgorithm" and" & @CRLF & _ "# "keystore.pkcs12.keyPbeIterationCount" values defined here." & @CRLF & _ "#" & @CRLF & _ "# In order to apply new algorithms and parameters to all entries in an" & @CRLF & _ "# existing keystore, one can create a new keystore and add entries in the" & @CRLF & _ "# existing keystore into the new keystore. This can be achieved by calling the" & @CRLF & _ "# "keytool -importkeystore" command." & @CRLF & _ "#" & @CRLF & _ "# If a system property of the same name is also specified, it supersedes the" & @CRLF & _ "# security property value defined here." & @CRLF & _ "#" & @CRLF & _ "# If the property is set to an illegal value," & @CRLF & _ "# an iteration count that is not a positive integer, or an unknown algorithm" & @CRLF & _ "# name, an exception will be thrown when the property is used." & @CRLF & _ "# If the property is not set or empty, a default value will be used." & @CRLF & _ "#" & @CRLF & _ "# Note: These properties are currently used by the JDK Reference implementation." & @CRLF & _ "# They are not guaranteed to be examined and used by other implementations." & @CRLF & _ "" & @CRLF & _ "# The algorithm used to encrypt a certificate. This can be any non-Hmac PBE" & @CRLF & _ "# algorithm defined in the Cipher section of the Java Security Standard" & @CRLF & _ "# Algorithm Names Specification. When set to "NONE", the certificate" & @CRLF & _ "# is not encrypted. The default value is "PBEWithHmacSHA256AndAES_256"." & @CRLF & _ "#keystore.pkcs12.certProtectionAlgorithm = PBEWithHmacSHA256AndAES_256" & @CRLF & _ "" & @CRLF & _ "# The iteration count used by the PBE algorithm when encrypting a certificate." & @CRLF & _ "# This value must be a positive integer. The default value is 10000." & @CRLF & _ "#keystore.pkcs12.certPbeIterationCount = 10000" & @CRLF & _ "" & @CRLF & _ "# The algorithm used to encrypt a private key or secret key. This can be" & @CRLF & _ "# any non-Hmac PBE algorithm defined in the Cipher section of the Java" & @CRLF & _ "# Security Standard Algorithm Names Specification. The value must not be "NONE"." & @CRLF & _ "# The default value is "PBEWithHmacSHA256AndAES_256"." & @CRLF & _ "#keystore.pkcs12.keyProtectionAlgorithm = PBEWithHmacSHA256AndAES_256" & @CRLF & _ "" & @CRLF & _ "# The iteration count used by the PBE algorithm when encrypting a private key" & @CRLF & _ "# or a secret key. This value must be a positive integer. The default value" & @CRLF & _ "# is 10000." & @CRLF & _ "#keystore.pkcs12.keyPbeIterationCount = 10000" & @CRLF & _ "" & @CRLF & _ "# The algorithm used to calculate the optional MacData at the end of a PKCS12" & @CRLF & _ "# file. This can be any HmacPBE algorithm defined in the Mac section of the" & @CRLF & _ "# Java Security Standard Algorithm Names Specification. When set to "NONE"," & @CRLF & _ "# no Mac is generated. The default value is "HmacPBESHA256"." & @CRLF & _ "#keystore.pkcs12.macAlgorithm = HmacPBESHA256" & @CRLF & _ "" & @CRLF & _ "# The iteration count used by the MacData algorithm. This value must be a" & @CRLF & _ "# positive integer. The default value is 10000." & @CRLF & _ "#keystore.pkcs12.macIterationCount = 10000" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Enhanced exception message information" & @CRLF & _ "#" & @CRLF & _ "# By default, exception messages should not include potentially sensitive" & @CRLF & _ "# information such as file names, host names, or port numbers. This property" & @CRLF & _ "# accepts one or more comma separated values, each of which represents a" & @CRLF & _ "# category of enhanced exception message information to enable. Values are" & @CRLF & _ "# case-insensitive. Leading and trailing whitespaces, surrounding each value," & @CRLF & _ "# are ignored. Unknown values are ignored." & @CRLF & _ "#" & @CRLF & _ "# NOTE: Use caution before setting this property. Setting this property" & @CRLF & _ "# exposes sensitive information in Exceptions, which could, for example," & @CRLF & _ "# propagate to untrusted code or be emitted in stack traces that are" & @CRLF & _ "# inadvertently disclosed and made accessible over a public network." & @CRLF & _ "#" & @CRLF & _ "# The categories are:" & @CRLF & _ "#" & @CRLF & _ "# hostInfo - IOExceptions thrown by java.net.Socket and the socket types in the" & @CRLF & _ "# java.nio.channels package will contain enhanced exception" & @CRLF & _ "# message information" & @CRLF & _ "#" & @CRLF & _ "# jar - enables more detailed information in the IOExceptions thrown" & @CRLF & _ "# by classes in the java.util.jar package" & @CRLF & _ "#" & @CRLF & _ "# The property setting in this file can be overridden by a system property of" & @CRLF & _ "# the same name, with the same syntax and possible values." & @CRLF & _ "#" & @CRLF & _ "#jdk.includeInExceptions=hostInfo,jar" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Disabled mechanisms for the Simple Authentication and Security Layer (SASL)" & @CRLF & _ "#" & @CRLF & _ "# Disabled mechanisms will not be negotiated by both SASL clients and servers." & @CRLF & _ "# These mechanisms will be ignored if they are specified in the "mechanisms"" & @CRLF & _ "# argument of "Sasl.createSaslClient" or the "mechanism" argument of" & @CRLF & _ "# "Sasl.createSaslServer"." & @CRLF & _ "#" & @CRLF & _ "# The value of this property is a comma-separated list of SASL mechanisms." & @CRLF & _ "# The mechanisms are case-sensitive. Whitespaces around the commas are ignored." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by the JDK Reference implementation." & @CRLF & _ "# It is not guaranteed to be examined and used by other implementations." & @CRLF & _ "#" & @CRLF & _ "# Example:" & @CRLF & _ "# jdk.sasl.disabledMechanisms=PLAIN, CRAM-MD5, DIGEST-MD5" & @CRLF & _ "jdk.sasl.disabledMechanisms=" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Policies for distrusting Certificate Authorities (CAs)." & @CRLF & _ "#" & @CRLF & _ "# This is a comma separated value of one or more case-sensitive strings, each" & @CRLF & _ "# of which represents a policy for determining if a CA should be distrusted." & @CRLF & _ "# The supported values are:" & @CRLF & _ "#" & @CRLF & _ "# SYMANTEC_TLS : Distrust TLS Server certificates anchored by a Symantec" & @CRLF & _ "# root CA and issued after April 16, 2019 unless issued by one of the" & @CRLF & _ "# following subordinate CAs which have a later distrust date:" & @CRLF & _ "# 1. Apple IST CA 2 - G1, SHA-256 fingerprint:" & @CRLF & _ "# AC2B922ECFD5E01711772FEA8ED372DE9D1E2245FCE3F57A9CDBEC77296A424B" & @CRLF & _ "# Distrust after December 31, 2019." & @CRLF & _ "# 2. Apple IST CA 8 - G1, SHA-256 fingerprint:" & @CRLF & _ "# A4FE7C7F15155F3F0AEF7AAA83CF6E06DEB97CA3F909DF920AC1490882D488ED" & @CRLF & _ "# Distrust after December 31, 2019." & @CRLF & _ "#" & @CRLF & _ "# Leading and trailing whitespace surrounding each value are ignored." & @CRLF & _ "# Unknown values are ignored. If the property is commented out or set to the" & @CRLF & _ "# empty String, no policies are enforced." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by the JDK Reference implementation." & @CRLF & _ "# It is not guaranteed to be supported by other SE implementations. Also, this" & @CRLF & _ "# property does not override other security properties which can restrict" & @CRLF & _ "# certificates such as jdk.tls.disabledAlgorithms or" & @CRLF & _ "# jdk.certpath.disabledAlgorithms; those restrictions are still enforced even" & @CRLF & _ "# if this property is not enabled." & @CRLF & _ "#" & @CRLF & _ "jdk.security.caDistrustPolicies=SYMANTEC_TLS" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# FilePermission path canonicalization" & @CRLF & _ "#" & @CRLF & _ "# This security property dictates how the path argument is processed and stored" & @CRLF & _ "# while constructing a FilePermission object. If the value is set to true, the" & @CRLF & _ "# path argument is canonicalized and FilePermission methods (such as implies," & @CRLF & _ "# equals, and hashCode) are implemented based on this canonicalized result." & @CRLF & _ "# Otherwise, the path argument is not canonicalized and FilePermission methods are" & @CRLF & _ "# implemented based on the original input. See the implementation note of the" & @CRLF & _ "# FilePermission class for more details." & @CRLF & _ "#" & @CRLF & _ "# If a system property of the same name is also specified, it supersedes the" & @CRLF & _ "# security property value defined here." & @CRLF & _ "#" & @CRLF & _ "# The default value for this property is false." & @CRLF & _ "#" & @CRLF & _ "jdk.io.permissionsUseCanonicalPath=false" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Policies for the proxy_impersonator Kerberos ccache configuration entry" & @CRLF & _ "#" & @CRLF & _ "# The proxy_impersonator ccache configuration entry indicates that the ccache" & @CRLF & _ "# is a synthetic delegated credential for use with S4U2Proxy by an intermediate" & @CRLF & _ "# server. The ccache file should also contain the TGT of this server and" & @CRLF & _ "# an evidence ticket from the default principal of the ccache to this server." & @CRLF & _ "#" & @CRLF & _ "# This security property determines how Java uses this configuration entry." & @CRLF & _ "# There are 3 possible values:" & @CRLF & _ "#" & @CRLF & _ "# no-impersonate - Ignore this configuration entry, and always act as" & @CRLF & _ "# the owner of the TGT (if it exists)." & @CRLF & _ "#" & @CRLF & _ "# try-impersonate - Try impersonation when this configuration entry exists." & @CRLF & _ "# If no matching TGT or evidence ticket is found," & @CRLF & _ "# fallback to no-impersonate." & @CRLF & _ "#" & @CRLF & _ "# always-impersonate - Always impersonate when this configuration entry exists." & @CRLF & _ "# If no matching TGT or evidence ticket is found," & @CRLF & _ "# no initial credential is read from the ccache." & @CRLF & _ "#" & @CRLF & _ "# The default value is "always-impersonate"." & @CRLF & _ "#" & @CRLF & _ "# If a system property of the same name is also specified, it supersedes the" & @CRLF & _ "# security property value defined here." & @CRLF & _ "#" & @CRLF & _ "#jdk.security.krb5.default.initiate.credential=always-impersonate" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# Trust Anchor Certificates - CA Basic Constraint check" & @CRLF & _ "#" & @CRLF & _ "# X.509 v3 certificates used as Trust Anchors (to validate signed code or TLS" & @CRLF & _ "# connections) must have the cA Basic Constraint field set to 'true'. Also, if" & @CRLF & _ "# they include a Key Usage extension, the keyCertSign bit must be set. These" & @CRLF & _ "# checks, enabled by default, can be disabled for backward-compatibility" & @CRLF & _ "# purposes with the jdk.security.allowNonCaAnchor System and Security" & @CRLF & _ "# properties. In the case that both properties are simultaneously set, the" & @CRLF & _ "# System value prevails. The default value of the property is "false"." & @CRLF & _ "#" & @CRLF & _ "#jdk.security.allowNonCaAnchor=true" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# The default Character set name (java.nio.charset.Charset.forName())" & @CRLF & _ "# for converting TLS ALPN values between byte arrays and Strings." & @CRLF & _ "# Prior versions of the JDK may use UTF-8 as the default charset. If" & @CRLF & _ "# you experience interoperability issues, setting this property to UTF-8" & @CRLF & _ "# may help." & @CRLF & _ "#" & @CRLF & _ "# jdk.tls.alpnCharset=UTF-8" & @CRLF & _ "jdk.tls.alpnCharset=ISO_8859_1" & @CRLF & _ "" & @CRLF & _ "#" & @CRLF & _ "# JNDI Object Factories Filter" & @CRLF & _ "#" & @CRLF & _ "# This filter is used by the JNDI runtime to control the set of object factory classes" & @CRLF & _ "# which will be allowed to instantiate objects from object references returned by" & @CRLF & _ "# naming/directory systems. The factory class named by the reference instance will be" & @CRLF & _ "# matched against this filter. The filter property supports pattern-based filter syntax" & @CRLF & _ "# with the same format as jdk.serialFilter." & @CRLF & _ "#" & @CRLF & _ "# Each pattern is matched against the factory class name to allow or disallow it's" & @CRLF & _ "# instantiation. The access to a factory class is allowed unless the filter returns" & @CRLF & _ "# REJECTED." & @CRLF & _ "#" & @CRLF & _ "# Note: This property is currently used by the JDK Reference implementation." & @CRLF & _ "# It is not guaranteed to be examined and used by other implementations." & @CRLF & _ "#" & @CRLF & _ "# If the system property jdk.jndi.object.factoriesFilter is also specified, it supersedes" & @CRLF & _ "# the security property value defined here. The default value of the property is "*"." & @CRLF & _ "#" & @CRLF & _ "# The default pattern value allows any object factory class specified by the reference" & @CRLF & _ "# instance to recreate the referenced object." & @CRLF & _ "#jdk.jndi.object.factoriesFilter=*" & @CRLF & _ "" Local $aArray = StringRegExp($sString, $sRegex, $STR_REGEXPARRAYGLOBALFULLMATCH) Local $aFullArray[0] For $i = 0 To UBound($aArray) -1 _ArrayConcatenate($aFullArray, $aArray[$i]) Next $aArray = $aFullArray ; Present the entire match result _ArrayDisplay($aArray, "Result")

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for AutoIt, please visit: https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm