- java.lang.Object
-
- com.sun.xml.util.XMLCipherAdapter
-
public class XMLCipherAdapter extends Object
-
-
Constructor Summary
Constructors Constructor Description XMLCipherAdapter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CipherconstructCipher(String algorithm)Construct anCipherobject.
-
-
-
Method Detail
-
constructCipher
public static Cipher constructCipher(String algorithm) throws NoSuchPaddingException, NoSuchAlgorithmException
Construct anCipherobject. Some JDKs don't support RSA/ECB/OAEPPadding, so add an additional action.- Parameters:
algorithm-- Returns:
- the Cipher
- Throws:
NoSuchPaddingExceptionNoSuchAlgorithmException
-
-