Class XMLCipherUtil


  • public final class XMLCipherUtil
    extends Object
    • Constructor Detail

      • XMLCipherUtil

        public XMLCipherUtil()
    • Method Detail

      • constructBlockCipherParameters

        public static AlgorithmParameterSpec constructBlockCipherParameters​(String algorithm,
                                                                            byte[] iv,
                                                                            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 AlgorithmParameterSpec constructBlockCipherParameters​(boolean gcmAlgorithm,
                                                                            byte[] iv,
                                                                            Class<?> callingClass)