| Modifier and Type | Class and Description |
|---|---|
| public static class | CryptoServicesRegistrar.
Available properties that can be set. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Permission | |
| private static final Permission | |
| private static final Permission | |
| private static final Permission | |
| private static final Permission | |
| private static volatile SecureRandom | |
| private static final Map | |
| private static final boolean | |
| public static final String | |
| private static final ThreadLocal | |
| private static final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static < the base type of the property value T> T[] | Returns: an array of T if a value was previously set, null otherwise.the property to be cleared. propertyClear the global value for the passed in property. |
| public static < the base type of the property value T> T[] | Returns: an array of T if a value was previously set, null otherwise.the property to be cleared. propertyClear the thread local value for the passed in property. |
| pack-priv static boolean | |
| public static < the type to be returned T> T | Returns: null if the property is not set, the default value otherwise,the property to look up. propertyReturn the default value for a particular property if one exists. |
| public static SecureRandom | |
| public static SecureRandom | Returns: a default SecureRandom, or one sourced from the provider if no default is available.the provider of SecureRandom to use if no default is provided. secureRandomProvider)If the default source of randomness is not set, return a SecureRandom generated from the passed in SecureRandomProvider. |
| public static < the base type of the array to be returned. T> T[] | Returns: null if the property is not set, an array of the current values otherwise.the name of the property to look up. propertyReturn an array representing the current values for a sized property such as DH_DEFAULT_PARAMS or DSA_DEFAULT_PARAMS. |
| public static < the type of the value to be returned. T> T | Returns: the current value for the size, null if there is no value set,the name of the property to look up. property,the size (in bits) of the defining value in the property type. size)Return the value for a specific size for a sized property such as DH_DEFAULT_PARAMS or DSA_DEFAULT_PARAMS. |
| public static boolean | Returns: true if the current thread is in approved mode, false otherwise.Return true or false depending on whether the current thread is in approved mode. |
| private static Object[] | |
| private static <T> void | |
| private static <T> void | |
| private static Object[] | |
| public static boolean | Returns: true if the function has set the thread to approved mode, false otherwise.true if should be approved mode, false otherwise. isApprovedOnly)Set the calling thread's approved mode status. |
| public static < the base type of the property value. T> void | setGlobalProperty(CryptoServicesRegistrar.
the name of the property to set. property,the values to assign to the property. propertyValue)Set the value of the the passed in property globally in the JVM. |
| public static void | setSecureRandom(SecureRandom
the SecureRandom to use as the default. secureRandom)Set a default secure random to be used where none is otherwise provided. |
| public static < the base type of the property value. T> void | setThreadProperty(CryptoServicesRegistrar.
the name of the property to set. property,the values to assign to the property. propertyValue)Set the value of the the passed in property on the current thread only. |
| private static DHDomainParameters |
| AbleToChangeToApprovedMode | back to summary |
|---|---|
| private static final Permission AbleToChangeToApprovedMode | |
| AbleToUseUnapprovedMode | back to summary |
|---|---|
| private static final Permission AbleToUseUnapprovedMode | |
| CanSetDefaultProperty | back to summary |
|---|---|
| private static final Permission CanSetDefaultProperty | |
| CanSetDefaultRandom | back to summary |
|---|---|
| private static final Permission CanSetDefaultRandom | |
| CanSetThreadProperty | back to summary |
|---|---|
| private static final Permission CanSetThreadProperty | |
| defaultSecureRandom | back to summary |
|---|---|
| private static volatile SecureRandom defaultSecureRandom | |
| globalProperties | back to summary |
|---|---|
| private static final Map<String, Object[]> globalProperties | |
| isDefaultModeApprovedMode | back to summary |
|---|---|
| private static final boolean isDefaultModeApprovedMode | |
| MODULE_HMAC_KEY | back to summary |
|---|---|
| public static final String MODULE_HMAC_KEY | |
| threadFipsMode | back to summary |
|---|---|
| private static final ThreadLocal<Boolean> threadFipsMode | |
| threadProperties | back to summary |
|---|---|
| private static final ThreadLocal<Map<String, Object[]>> threadProperties | |
| CryptoServicesRegistrar | back to summary |
|---|---|
| private CryptoServicesRegistrar() | |
| checkPermission | back to summary |
|---|---|
| private static void checkPermission(final Permission permission) | |
| clearGlobalProperty | back to summary |
|---|---|
| public static <T> T[] clearGlobalProperty(CryptoServicesRegistrar. Clear the global value for the passed in property.
| |
| clearThreadProperty | back to summary |
|---|---|
| public static <T> T[] clearThreadProperty(CryptoServicesRegistrar. Clear the thread local value for the passed in property.
| |
| getDefaultMode | back to summary |
|---|---|
| pack-priv static boolean getDefaultMode() | |
| getProperty | back to summary |
|---|---|
| public static <T> T getProperty(CryptoServicesRegistrar. Return the default value for a particular property if one exists. The look up is done on the thread's local configuration first and then on the global configuration in no local configuration exists.
| |
| getSecureRandom | back to summary |
|---|---|
| public static SecureRandom getSecureRandom() Return the default source of randomness.
| |
| getSecureRandomIfSet | back to summary |
|---|---|
| public static SecureRandom getSecureRandomIfSet(SecureRandomProvider secureRandomProvider) If the default source of randomness is not set, return a SecureRandom generated from the passed in SecureRandomProvider.
| |
| getSizedProperty | back to summary |
|---|---|
| public static <T> T[] getSizedProperty(CryptoServicesRegistrar. Return an array representing the current values for a sized property such as DH_DEFAULT_PARAMS or DSA_DEFAULT_PARAMS.
| |
| getSizedProperty | back to summary |
|---|---|
| public static <T> T getSizedProperty(CryptoServicesRegistrar. Return the value for a specific size for a sized property such as DH_DEFAULT_PARAMS or DSA_DEFAULT_PARAMS.
| |
| isInApprovedOnlyMode | back to summary |
|---|---|
| public static boolean isInApprovedOnlyMode() Return true or false depending on whether the current thread is in approved mode.
| |
| localClearThreadProperty | back to summary |
|---|---|
| private static Object[] localClearThreadProperty(CryptoServicesRegistrar. | |
| localSetGlobalProperty | back to summary |
|---|---|
| private static <T> void localSetGlobalProperty(CryptoServicesRegistrar. | |
| localSetThread | back to summary |
|---|---|
| private static <T> void localSetThread(CryptoServicesRegistrar. | |
| lookupProperty | back to summary |
|---|---|
| private static Object[] lookupProperty(CryptoServicesRegistrar. | |
| setApprovedOnlyMode | back to summary |
|---|---|
| public static boolean setApprovedOnlyMode(boolean isApprovedOnly) Set the calling thread's approved mode status. Note a thread cannot move to unapproved mode once it has moved into approved mode.
| |
| setGlobalProperty | back to summary |
|---|---|
| public static <T> void setGlobalProperty(CryptoServicesRegistrar. Set the value of the the passed in property globally in the JVM. More than one value can be passed in for a sized property. If more than one value is provided the first value in the argument list becomes the default value.
| |
| setSecureRandom | back to summary |
|---|---|
| public static void setSecureRandom(SecureRandom secureRandom) Set a default secure random to be used where none is otherwise provided.
| |
| setThreadProperty | back to summary |
|---|---|
| public static <T> void setThreadProperty(CryptoServicesRegistrar. Set the value of the the passed in property on the current thread only. More than one value can be passed in for a sized property. If more than one value is provided the first value in the argument list becomes the default value.
| |
| toDH | back to summary |
|---|---|
| private static DHDomainParameters toDH(DSADomainParameters dsaParams) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CryptoServicesRegistrar. | DH_DEFAULT_PARAMS
The default parameters for a particular size of Diffie-Hellman key.This is a sized property. |
| public static final CryptoServicesRegistrar. | DSA_DEFAULT_PARAMS
The default parameters for a particular size of DSA key. |
| public static final CryptoServicesRegistrar. | EC_IMPLICITLY_CA
The parameters to be used for processing implicitlyCA X9.62 parameters |
| private final String | |
| private final Class |
| DH_DEFAULT_PARAMS | back to summary |
|---|---|
| public static final CryptoServicesRegistrar. The default parameters for a particular size of Diffie-Hellman key.This is a sized property. | |
| DSA_DEFAULT_PARAMS | back to summary |
|---|---|
| public static final CryptoServicesRegistrar. The default parameters for a particular size of DSA key. This is a sized property. | |
| EC_IMPLICITLY_CA | back to summary |
|---|---|
| public static final CryptoServicesRegistrar. The parameters to be used for processing implicitlyCA X9.62 parameters | |
| name | back to summary |
|---|---|
| private final String name | |
| type | back to summary |
|---|---|
| private final Class<T> type | |
| Property | back to summary |
|---|---|
| private Property(String name, Class<T> type) | |