Class XMLCipherUtil


  • public final class XMLCipherUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLCipherUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.spec.AlgorithmParameterSpec constructBlockCipherParameters​(boolean gcmAlgorithm, byte[] iv, java.lang.Class<?> callingClass)  
      static java.security.spec.AlgorithmParameterSpec constructBlockCipherParameters​(java.lang.String algorithm, byte[] iv, java.lang.Class<?> callingClass)
      Build an AlgorithmParameterSpec instance used to initialize a Cipher instance for block cipher encryption and decryption.
      • Methods inherited from class java.lang.Object

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

      • XMLCipherUtil

        public XMLCipherUtil()
    • Method Detail

      • constructBlockCipherParameters

        public static java.security.spec.AlgorithmParameterSpec constructBlockCipherParameters​(java.lang.String algorithm,
                                                                                               byte[] iv,
                                                                                               java.lang.Class<?> callingClass)
        Build an AlgorithmParameterSpec instance used to initialize a Cipher instance for block cipher encryption and decryption.
        Parameters:
        algorithm - the XML encryption algorithm URI
        iv - the initialization vector
        Returns:
        the newly constructed AlgorithmParameterSpec instance, appropriate for the specified algorithm
      • constructBlockCipherParameters

        public static java.security.spec.AlgorithmParameterSpec constructBlockCipherParameters​(boolean gcmAlgorithm,
                                                                                               byte[] iv,
                                                                                               java.lang.Class<?> callingClass)