Class CipherHelper


  • @ThreadSafe
    public class CipherHelper
    extends java.lang.Object
    Helper utilities for instantiating ciphers.
    Version:
    2014-01-22
    Author:
    Cedric Staub
    • Constructor Summary

      Constructors 
      Constructor Description
      CipherHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.crypto.Cipher getInstance​(java.lang.String name, java.security.Provider provider)
      Instantiates a cipher with an (optional) JCA provider.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CipherHelper

        public CipherHelper()
    • Method Detail

      • getInstance

        public static javax.crypto.Cipher getInstance​(java.lang.String name,
                                                      java.security.Provider provider)
                                               throws java.security.NoSuchAlgorithmException,
                                                      javax.crypto.NoSuchPaddingException
        Instantiates a cipher with an (optional) JCA provider.
        Parameters:
        name - The name of the cipher. Must not be null.
        provider - The JCA provider, or null to use the default one.
        Throws:
        java.security.NoSuchAlgorithmException
        javax.crypto.NoSuchPaddingException