Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.bouncycastle.jcajce.util;
  
 
JcaJceHelper that obtains all algorithms from a specific java.security.Provider instance.
 
 public class ProviderJcaJceHelper
     implements JcaJceHelper
 {
     protected final Provider provider;
 
     public ProviderJcaJceHelper(Provider provider)
     {
         this. = provider;
     }
 
     public Cipher createCipher(
         String algorithm)
     {
         return Cipher.getInstance(algorithm);
     }
 
     public Mac createMac(String algorithm)
         throws NoSuchAlgorithmException
     {
         return Mac.getInstance(algorithm);
     }
 
     public KeyAgreement createKeyAgreement(String algorithm)
         throws NoSuchAlgorithmException
     {
         return KeyAgreement.getInstance(algorithm);
     }
 
         throws NoSuchAlgorithmException
     {
         return AlgorithmParameterGenerator.getInstance(algorithm);
     }
 
         throws NoSuchAlgorithmException
     {
         return AlgorithmParameters.getInstance(algorithm);
     }
 
     public KeyGenerator createKeyGenerator(String algorithm)
         throws NoSuchAlgorithmException
     {
         return KeyGenerator.getInstance(algorithm);
     }
 
     public KeyFactory createKeyFactory(String algorithm)
         throws NoSuchAlgorithmException
     {
         return KeyFactory.getInstance(algorithm);
     }
 
     public SecretKeyFactory createSecretKeyFactory(String algorithm)
         throws NoSuchAlgorithmException
     {
         return SecretKeyFactory.getInstance(algorithm);
     }
 
     public KeyPairGenerator createKeyPairGenerator(String algorithm)
         throws NoSuchAlgorithmException
     {
         return KeyPairGenerator.getInstance(algorithm);
     }
 
     public MessageDigest createDigest(String algorithm)
         throws NoSuchAlgorithmException
     {
         return MessageDigest.getInstance(algorithm);
     }
 
     public Signature createSignature(String algorithm)
         throws NoSuchAlgorithmException
     {
         return Signature.getInstance(algorithm);
     }
        throws CertificateException
    {
        return CertificateFactory.getInstance(algorithm);
    }
New to GrepCode? Check out our FAQ X