Class Properties

java.lang.Object
org.bouncycastle.util.Properties

public class Properties extends Object
Utility method for accessing system properties.
  • Field Details

    • X509_SGP22_NAME_CONSTRAINTS

      public static final String X509_SGP22_NAME_CONSTRAINTS
      Enable relaxed directoryName name-constraint matching for GSMA SGP.22 RSP. See PKIXNameConstraintValidator; off by default (strict RFC 5280 prefix matching).
      See Also:
    • X509_CRL_CACHE_TTL

      public static final String X509_CRL_CACHE_TTL
      Optional maximum lifetime, in seconds, for a cached CRL fetched from a distribution point. When set to a positive value the cached entry is treated as expired once this many seconds have elapsed since it was loaded, regardless of the CRL's own nextUpdate. Zero or unset disables the TTL (the CRL's nextUpdate alone governs freshness). See CrlCache.
      See Also:
  • Constructor Details

    • Properties

      public Properties()
  • Method Details

    • isOverrideSet

      public static boolean isOverrideSet(String propertyName)
      Return whether a particular override has been set to true.
      Parameters:
      propertyName - the property name for the override.
      Returns:
      true if the property is set to "true", false otherwise.
    • isOverrideSetTo

      public static boolean isOverrideSetTo(String propertyName, boolean isTrue)
      Return whether a particular override has been set to false.
      Parameters:
      propertyName - the property name for the override.
      isTrue - true if the override should be true, false otherwise.
      Returns:
      true if the property is set to the value of isTrue, false otherwise.
    • asInteger

      public static int asInteger(String propertyName, int defaultValue)
      Return propertyName as an integer, defaultValue used if not defined.
      Parameters:
      propertyName - name of property.
      defaultValue - integer to return if property not defined.
      Returns:
      value of property, or default if not found, as an int.
    • getPropertyValue

      public static String getPropertyValue(String propertyName)
    • getPropertyValue

      public static String getPropertyValue(String propertyName, String alternative)