public final class UtilsProviders
extends java.lang.Object
Utilities class for manage the cryptographic providers.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Field and Description |
|---|---|
static java.security.Provider |
BC_PROVIDER
Constant attribute that represents the BC Provider.
|
static java.lang.String |
BC_PROVIDER_TOKEN_NAME
Constant attribute that represents the string to identify the name of the Bouncy Castle Provider.
|
static java.lang.String |
SEED_ALGORITHM_SHA1PRNG
Constant attribute that represents the token name-id for the seed algorithm SHA1-PRNG.
|
| Modifier and Type | Method and Description |
|---|---|
static java.security.SecureRandom |
getSecureRandomForSeedAlgorithmProvider(java.lang.String algNameSecRandom,
java.security.Provider prov)
Gets the secure random used for the input seed algorithm in the input provider.
|
static java.security.SecureRandom |
getSecureRandomForSeedAlgorithmProviderName(java.lang.String algNameSecRandom,
java.lang.String provName)
Gets the secure random used for the input seed algorithm in the input provider.
|
static void |
initializeProviders()
Method that initializes the providers.
|
static void |
resetAllSecureRandomCache()
Reset the seed algorithm generator cache.
|
public static final java.lang.String SEED_ALGORITHM_SHA1PRNG
public static final java.security.Provider BC_PROVIDER
public static final java.lang.String BC_PROVIDER_TOKEN_NAME
public static void initializeProviders()
public static java.security.SecureRandom getSecureRandomForSeedAlgorithmProvider(java.lang.String algNameSecRandom,
java.security.Provider prov)
null, then left the decision to the JDK.algNameSecRandom - Algorithm name of the seed generator to set.prov - Provider to use for the seed algorithm.SecureRandom implementation for the input
seed algorithm by the input provider. If not is found, then return null.public static java.security.SecureRandom getSecureRandomForSeedAlgorithmProviderName(java.lang.String algNameSecRandom,
java.lang.String provName)
null, then left the decision to the JDK.algNameSecRandom - Algorithm name of the sedd generator to set.provName - Provider name to use for the seed generator.SecureRandom implementation for the input
seed algorithm by the input provider. If not is found, then return null.public static void resetAllSecureRandomCache()