| Modifier and Type | Class and Description |
|---|---|
| public static class | CryptoServicesRegistrar.
Available properties that can be set. |
| private static class |
| 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 SecureRandomProvider | |
| private static final AtomicReference | |
| private static final Map | |
| private static final Logger | |
| private static final CryptoServicesConstraints | |
| private static final boolean | |
| private static final AtomicReference | |
| private static final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | checkConstraints(CryptoServiceProperties
the service to be checked. cryptoService)Check a service to make sure it meets the current constraints. |
| private static void | |
| private static int | |
| 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. |
| private static CryptoServicesConstraints | |
| 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: the SecureRandom parameter if it is not null, or else the default SecureRandomthe SecureRandom to use if it is not null. secureRandom)Return either the passed-in SecureRandom, or if it is null, then the default source of randomness. |
| public static CryptoServicesConstraints | Returns: the algorithm/services constraints.Return the current algorithm/services constraints. |
| 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. |
| private static Object[] | |
| private static <T> void | |
| private static <T> void | |
| private static Object[] | |
| 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(final SecureRandom
the SecureRandom to use as the default. secureRandom)Set a default secure random to be used where none is otherwise provided. |
| public static void | setSecureRandomProvider(SecureRandomProvider
a provider SecureRandom to use when a default SecureRandom is requested. secureRandomProvider)Set a default secure random provider to be used where none is otherwise provided. |
| public static void | |
| 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 DHParameters |
| CanSetConstraints | back to summary |
|---|---|
| private static final Permission CanSetConstraints | |
| 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 | |
| defaultRandomProviderImpl | back to summary |
|---|---|
| private static final SecureRandomProvider defaultRandomProviderImpl | |
| defaultSecureRandomProvider | back to summary |
|---|---|
| private static final AtomicReference<SecureRandomProvider> defaultSecureRandomProvider | |
| globalProperties | back to summary |
|---|---|
| private static final Map<String, Object[]> globalProperties | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| noConstraintsImpl | back to summary |
|---|---|
| private static final CryptoServicesConstraints noConstraintsImpl | |
| preconfiguredConstraints | back to summary |
|---|---|
| private static final boolean preconfiguredConstraints | |
| servicesConstraints | back to summary |
|---|---|
| private static final AtomicReference<CryptoServicesConstraints> servicesConstraints | |
| threadProperties | back to summary |
|---|---|
| private static final ThreadLocal<Map<String, Object[]>> threadProperties | |
| CryptoServicesRegistrar | back to summary |
|---|---|
| private CryptoServicesRegistrar() | |
| checkConstraints | back to summary |
|---|---|
| public static void checkConstraints(CryptoServiceProperties cryptoService) Check a service to make sure it meets the current constraints.
| |
| checkPermission | back to summary |
|---|---|
| private static void checkPermission(final Permission permission) | |
| chooseLowerBound | back to summary |
|---|---|
| private static int chooseLowerBound(int pSize) | |
| 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.
| |
| getDefaultConstraints | back to summary |
|---|---|
| private static CryptoServicesConstraints getDefaultConstraints() | |
| 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.
| |
| getSecureRandom | back to summary |
|---|---|
| public static SecureRandom getSecureRandom(SecureRandom secureRandom) Return either the passed-in SecureRandom, or if it is null, then the default source of randomness.
| |
| getServicesConstraints | back to summary |
|---|---|
| public static CryptoServicesConstraints getServicesConstraints() Return the current algorithm/services constraints.
| |
| 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.
| |
| 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. | |
| 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(final SecureRandom secureRandom) Set a default secure random to be used where none is otherwise provided.
| |
| setSecureRandomProvider | back to summary |
|---|---|
| public static void setSecureRandomProvider(SecureRandomProvider secureRandomProvider) Set a default secure random provider to be used where none is otherwise provided.
| |
| setServicesConstraints | back to summary |
|---|---|
| public static void setServicesConstraints(CryptoServicesConstraints constraints) Set the current algorithm constraints. | |
| 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 DHParameters toDH(DSAParameters 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) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public SecureRandom |
| defaultRandoms | back to summary |
|---|---|
| pack-priv final ThreadLocal<SecureRandom> defaultRandoms | |
| ThreadLocalSecureRandomProvider | back to summary |
|---|---|
| private ThreadLocalSecureRandomProvider() | |
| get | back to summary |
|---|---|
| public SecureRandom get() Implements org. Doc from org. Return a SecureRandom instance.
| |