public class NamedJcaJceHelper extends java.lang.Object implements JcaJceHelper
JcaJceHelper
that obtains all algorithms using a specific named provider.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
providerName |
Constructor and Description |
---|
NamedJcaJceHelper(java.lang.String providerName) |
Modifier and Type | Method and Description |
---|---|
java.security.AlgorithmParameterGenerator |
createAlgorithmParameterGenerator(java.lang.String algorithm) |
java.security.AlgorithmParameters |
createAlgorithmParameters(java.lang.String algorithm) |
java.security.cert.CertificateFactory |
createCertificateFactory(java.lang.String algorithm) |
java.security.cert.CertPathBuilder |
createCertPathBuilder(java.lang.String algorithm) |
java.security.cert.CertPathValidator |
createCertPathValidator(java.lang.String algorithm) |
java.security.cert.CertStore |
createCertStore(java.lang.String type,
java.security.cert.CertStoreParameters params) |
javax.crypto.Cipher |
createCipher(java.lang.String algorithm) |
java.security.MessageDigest |
createDigest(java.lang.String algorithm)
Deprecated.
Use createMessageDigest instead
|
javax.crypto.ExemptionMechanism |
createExemptionMechanism(java.lang.String algorithm) |
javax.crypto.KeyAgreement |
createKeyAgreement(java.lang.String algorithm) |
java.security.KeyFactory |
createKeyFactory(java.lang.String algorithm) |
javax.crypto.KeyGenerator |
createKeyGenerator(java.lang.String algorithm) |
java.security.KeyPairGenerator |
createKeyPairGenerator(java.lang.String algorithm) |
java.security.KeyStore |
createKeyStore(java.lang.String type) |
javax.crypto.Mac |
createMac(java.lang.String algorithm) |
java.security.MessageDigest |
createMessageDigest(java.lang.String algorithm) |
javax.crypto.SecretKeyFactory |
createSecretKeyFactory(java.lang.String algorithm) |
java.security.SecureRandom |
createSecureRandom(java.lang.String algorithm) |
java.security.Signature |
createSignature(java.lang.String algorithm) |
public javax.crypto.Cipher createCipher(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException, java.security.NoSuchProviderException
createCipher
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
java.security.NoSuchProviderException
public javax.crypto.Mac createMac(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createMac
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public javax.crypto.KeyAgreement createKeyAgreement(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createKeyAgreement
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.AlgorithmParameterGenerator createAlgorithmParameterGenerator(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createAlgorithmParameterGenerator
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.AlgorithmParameters createAlgorithmParameters(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createAlgorithmParameters
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public javax.crypto.KeyGenerator createKeyGenerator(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createKeyGenerator
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.KeyFactory createKeyFactory(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createKeyFactory
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public javax.crypto.SecretKeyFactory createSecretKeyFactory(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createSecretKeyFactory
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.KeyPairGenerator createKeyPairGenerator(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createKeyPairGenerator
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.MessageDigest createDigest(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createDigest
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.MessageDigest createMessageDigest(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createMessageDigest
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.Signature createSignature(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createSignature
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.cert.CertificateFactory createCertificateFactory(java.lang.String algorithm) throws java.security.cert.CertificateException, java.security.NoSuchProviderException
createCertificateFactory
in interface JcaJceHelper
java.security.cert.CertificateException
java.security.NoSuchProviderException
public java.security.SecureRandom createSecureRandom(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createSecureRandom
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.cert.CertPathBuilder createCertPathBuilder(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createCertPathBuilder
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.cert.CertPathValidator createCertPathValidator(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createCertPathValidator
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.cert.CertStore createCertStore(java.lang.String type, java.security.cert.CertStoreParameters params) throws java.security.NoSuchAlgorithmException, java.security.InvalidAlgorithmParameterException, java.security.NoSuchProviderException
createCertStore
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException
java.security.NoSuchProviderException
public javax.crypto.ExemptionMechanism createExemptionMechanism(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
createExemptionMechanism
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public java.security.KeyStore createKeyStore(java.lang.String type) throws java.security.KeyStoreException, java.security.NoSuchProviderException
createKeyStore
in interface JcaJceHelper
java.security.KeyStoreException
java.security.NoSuchProviderException