home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Java / Java.zip / javasecu.zip / java.security
Text File  |  2002-04-24  |  4KB  |  106 lines

  1. #
  2. # This is the "master security properties file".
  3. #
  4. # In this file, various security properties are set for use by
  5. # java.security classes. This is where users can statically register 
  6. # Cryptography Package Providers ("providers" for short). The term 
  7. # "provider" refers to a package or set of packages that supply a 
  8. # concrete implementation of a subset of the cryptography aspects of 
  9. # the Java Security API. A provider may, for example, implement one or 
  10. # more digital signature algorithms or message digest algorithms.
  11. #
  12. # Each provider must implement a subclass of the Provider class.
  13. # To register a provider in this master security properties file, 
  14. # specify the Provider subclass name and priority in the format
  15. #
  16. #    security.provider.<n>=<className> 
  17. #
  18. # This declares a provider, and specifies its preference 
  19. # order n. The preference order is the order in which providers are 
  20. # searched for requested algorithms (when no specific provider is 
  21. # requested). The order is 1-based; 1 is the most preferred, followed 
  22. # by 2, and so on.
  23. #
  24. # <className> must specify the subclass of the Provider class whose 
  25. # constructor sets the values of various properties that are required
  26. # for the Java Security API to look up the algorithms or other 
  27. # facilities implemented by the provider.
  28. # There must be at least one provider specification in java.security. 
  29. # There is a default provider that comes standard with the JDK. It
  30. # is called the "SUN" provider, and its Provider subclass
  31. # named Sun appears in the sun.security.provider package. Thus, the
  32. # "SUN" provider is registered via the following:
  33. #
  34. #    security.provider.1=sun.security.provider.Sun 
  35. #
  36. # (The number 1 is used for the default provider.) 
  37. #
  38. # Note: Statically registered Provider subclasses are instantiated 
  39. # when the system is initialized. Providers can be dynamically 
  40. # registered instead by calls to either the addProvider or 
  41. # insertProviderAt method in the Security class.
  42.  
  43. #
  44. # List of providers and their preference orders (see above):
  45. #
  46. security.provider.1=sun.security.provider.Sun
  47. security.provider.2=com.ibm.crypto.provider.IBMJCE
  48. security.provider.3=com.ibm.jsse.JSSEProvider
  49. #
  50. # Class to instantiate as the system Policy. This is the name of the class
  51. # that will be used as the Policy object.
  52. #
  53. policy.provider=sun.security.provider.PolicyFile
  54.  
  55. # The default is to have a single system-wide policy file, 
  56. # and a policy file in the user's home directory.
  57. policy.url.1=file:${java.home}/lib/security/java.policy
  58. policy.url.2=file:${java.home}/lib/security/java.pol
  59. policy.url.3=file:${user.home}/.java.policy
  60.  
  61. # whether or not we expand properties in the policy file
  62. # if this is set to false, properties (${...}) will not be expanded in policy
  63. # files.
  64. policy.expandProperties=true
  65.  
  66. # whether or not we allow an extra policy to be passed on the command line
  67. # with -Djava.security.policy=somefile. Comment out this line to disable
  68. # this feature.
  69. policy.allowSystemProperty=true
  70.  
  71. # whether or not we look into the IdentityScope for trusted Identities
  72. # when encountering a 1.1 signed JAR file. If the identity is found
  73. # and is trusted, we grant it AllPermission.
  74. policy.ignoreIdentityScope=false
  75.  
  76. #
  77. # Default keystore type.
  78. #
  79. keystore.type=jks
  80.  
  81. #
  82. # Class to instantiate as the system scope:
  83. #
  84. system.scope=sun.security.provider.IdentityDatabase
  85.  
  86. #
  87. # List of comma-separated packages that start with or equal this string
  88. # will cause a security exception to be thrown when
  89. # passed to checkPackageAccess unless the
  90. # corresponding RuntimePermission ("accessClassInPackage."+package) has
  91. # been granted.
  92. package.access=sun.
  93.  
  94. #
  95. # List of comma-separated packages that start with or equal this string
  96. # will cause a security exception to be thrown when
  97. # passed to checkPackageDefinition unless the
  98. # corresponding RuntimePermission ("defineClassInPackage."+package) has
  99. # been granted.
  100. # by default, no packages are restricted for definition, and none of
  101. # the class loaders supplied with the JDK call checkPackageDefinition.
  102. #
  103. #package.definition=
  104.