Class XMLCipherUtil
- java.lang.Object
-
- org.apache.xml.security.encryption.XMLCipherUtil
-
public final class XMLCipherUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
gcmUseIvParameterSpec
private static org.slf4j.Logger
LOG
-
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 anAlgorithmParameterSpec
instance used to initialize aCipher
instance for block cipher encryption and decryption.private static java.security.spec.AlgorithmParameterSpec
constructBlockCipherParametersForGCMAlgorithm(java.lang.String algorithm, byte[] iv, java.lang.Class<?> callingClass)
-
-
-
Method Detail
-
constructBlockCipherParameters
public static java.security.spec.AlgorithmParameterSpec constructBlockCipherParameters(java.lang.String algorithm, byte[] iv, java.lang.Class<?> callingClass)
Build anAlgorithmParameterSpec
instance used to initialize aCipher
instance for block cipher encryption and decryption.- Parameters:
algorithm
- the XML encryption algorithm URIiv
- 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)
-
constructBlockCipherParametersForGCMAlgorithm
private static java.security.spec.AlgorithmParameterSpec constructBlockCipherParametersForGCMAlgorithm(java.lang.String algorithm, byte[] iv, java.lang.Class<?> callingClass)
-
-