public class ProviderJcaJceHelper extends java.lang.Object implements JcaJceHelper
Modifier and Type | Field and Description |
---|---|
protected java.security.Provider |
provider |
Constructor and Description |
---|
ProviderJcaJceHelper(java.security.Provider provider)
Base constructor.
|
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) |
javax.crypto.Cipher |
createCipher(java.lang.String algorithm) |
java.security.MessageDigest |
createDigest(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) |
javax.crypto.Mac |
createMac(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 ProviderJcaJceHelper(java.security.Provider provider)
provider
- the provider to use to find implementations of JCA/JCE functions.public javax.crypto.Cipher createCipher(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException
createCipher
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
public javax.crypto.Mac createMac(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
createMac
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
public javax.crypto.KeyAgreement createKeyAgreement(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
createKeyAgreement
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
public java.security.AlgorithmParameterGenerator createAlgorithmParameterGenerator(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
createAlgorithmParameterGenerator
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
public java.security.AlgorithmParameters createAlgorithmParameters(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
createAlgorithmParameters
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
public javax.crypto.KeyGenerator createKeyGenerator(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
createKeyGenerator
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
public java.security.KeyFactory createKeyFactory(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
createKeyFactory
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
public javax.crypto.SecretKeyFactory createSecretKeyFactory(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
createSecretKeyFactory
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
public java.security.KeyPairGenerator createKeyPairGenerator(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
createKeyPairGenerator
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
public java.security.MessageDigest createDigest(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
createDigest
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
public java.security.Signature createSignature(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
createSignature
in interface JcaJceHelper
java.security.NoSuchAlgorithmException
public java.security.cert.CertificateFactory createCertificateFactory(java.lang.String algorithm) throws java.security.cert.CertificateException
createCertificateFactory
in interface JcaJceHelper
java.security.cert.CertificateException
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