Package org.mozilla.jss.crypto
Class Policy
- java.lang.Object
-
- org.mozilla.jss.crypto.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. Refer to SSLCipher.isSupported() for whether or not a given TLS cipher suite is allowed by local policy.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DH_MINIMUM_KEY_SIZE
Minimum DH key length in bits permitted by local policy.static int
DSA_MINIMUM_KEY_SIZE
Minimum DSA key length in bits permitted by local policy.static boolean
ENFORCING_KEY_SIZES
Whether or not this JSS instance is enforcing local crypto-policy, with respect to key sizes.static int
RSA_MINIMUM_KEY_SIZE
Minimum RSA key length in bits permitted by local policy.static java.math.BigInteger
RSA_MINIMUM_PUBLIC_EXPONENT
Minimum RSA public exponent allowed by JSS.static SSLVersion
TLS_MAXIMUM_VERSION
static SSLVersion
TLS_MINIMUM_VERSION
static SSLVersionRange
TLS_VERSION_RANGE
-
Constructor Summary
Constructors Constructor Description Policy()
-
-
-
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_VERSION_RANGE
public static SSLVersionRange TLS_VERSION_RANGE
-
TLS_MINIMUM_VERSION
public static SSLVersion TLS_MINIMUM_VERSION
-
TLS_MAXIMUM_VERSION
public static SSLVersion TLS_MAXIMUM_VERSION
-
-