public class JCEProvider extends Object implements JCEAlgorithms
JCE_3DESCBCNOPADDING, JCE_3DESCTRNOPADDING, JCE_AESCBCNOPADDING, JCE_AESCTRNOPADDING, JCE_ARCFOUR, JCE_BLOWFISHCBCNOPADDING, JCE_DESCBCNOPADDING, JCE_DH, JCE_DSA, JCE_HMACMD5, JCE_HMACSHA1, JCE_HMACSHA256, JCE_HMACSHA512, JCE_MD5, JCE_MD5WithRSA, JCE_RSA, JCE_RSANONEPKCS1PADDING, JCE_SHA1, JCE_SHA1PRNG, JCE_SHA1WithDSA, JCE_SHA1WithRSA, JCE_SHA256, JCE_X509
Constructor and Description |
---|
JCEProvider() |
Modifier and Type | Method and Description |
---|---|
static Provider |
getProviderForAlgorithm(String jceAlgorithm)
Get the provider for a specific algorithm.
|
static SecureRandom |
getSecureRandom()
Get the secure random implementation for the API.
|
static String |
getSecureRandomAlgorithm()
Get the algorithm used for secure random number generation.
|
static void |
initializeDefaultProvider(Provider provider)
Initialize the default JCE provider used by the API.
|
static void |
initializeProviderForAlgorithm(String jceAlgorithm,
Provider provider)
Initialize a provider for a specific algorithm.
|
static void |
setSecureRandomAlgorithm(String secureRandomAlgorithm)
Set the algorithm used for secure random number generation.
|
public static void initializeDefaultProvider(Provider provider)
provider
- public static void initializeProviderForAlgorithm(String jceAlgorithm, Provider provider)
jceAlgorithm
- provider
- public static String getSecureRandomAlgorithm()
public static void setSecureRandomAlgorithm(String secureRandomAlgorithm)
secureRandomAlgorithm
- public static Provider getProviderForAlgorithm(String jceAlgorithm)
jceAlgorithm
- public static SecureRandom getSecureRandom() throws NoSuchAlgorithmException
NoSuchAlgorithmException
Copyright © 2014. All rights reserved.