Class Policy


  • public class Policy
    extends java.lang.Object
    This class helps JSS callers align with local system cryptographic policy. In the event of a policy violation, applications can override policy by writing to the desired variable.
    • Field Detail

      • ENFORCING_KEY_SIZES

        public static boolean ENFORCING_KEY_SIZES
        Whether or not this JSS instance is enforcing local crypto-policy, with respect to key sizes. Defaults to false; this lets applications use whatever key sizes are supported by NSS, at the risk of performing non-compliant operations. Set to true to enable enforcement, where it exists.
      • RSA_MINIMUM_KEY_SIZE

        public static int RSA_MINIMUM_KEY_SIZE
        Minimum RSA key length in bits permitted by local policy.
      • RSA_MINIMUM_PUBLIC_EXPONENT

        public static java.math.BigInteger RSA_MINIMUM_PUBLIC_EXPONENT
        Minimum RSA public exponent allowed by JSS.
      • DH_MINIMUM_KEY_SIZE

        public static int DH_MINIMUM_KEY_SIZE
        Minimum DH key length in bits permitted by local policy.
      • DSA_MINIMUM_KEY_SIZE

        public static int DSA_MINIMUM_KEY_SIZE
        Minimum DSA key length in bits permitted by local policy.
      • TLS_MINIMUM_VERSION

        public static SSLVersion TLS_MINIMUM_VERSION
      • TLS_MAXIMUM_VERSION

        public static SSLVersion TLS_MAXIMUM_VERSION
    • Constructor Detail

      • Policy

        public Policy()