Package org.apache.cxf.rs.security.xml
Class EncryptionUtils
java.lang.Object
org.apache.cxf.rs.security.xml.EncryptionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic OAEPParameterSpecconstructOAEPParameters(String encryptionAlgorithm, String digestAlgorithm, String mgfAlgorithm, byte[] oaepParams) Construct an OAEPParameterSpec object from the given parametersstatic CipherinitCipherWithCert(String keyEncAlgo, int mode, X509Certificate cert) static CipherinitCipherWithCert(String keyEncAlgo, String digestAlg, int mode, X509Certificate cert) static CipherinitCipherWithKey(String keyEncAlgo, int mode, Key key) static CipherinitCipherWithKey(String keyEncAlgo, String digestAlgo, int mode, Key key) static org.apache.xml.security.encryption.XMLCipherinitXMLCipher(String symEncAlgo, int mode, Key key)
-
Method Details
-
initCipherWithCert
public static Cipher initCipherWithCert(String keyEncAlgo, int mode, X509Certificate cert) throws org.apache.wss4j.common.ext.WSSecurityException - Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
initCipherWithCert
public static Cipher initCipherWithCert(String keyEncAlgo, String digestAlg, int mode, X509Certificate cert) throws org.apache.wss4j.common.ext.WSSecurityException - Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
initCipherWithKey
public static Cipher initCipherWithKey(String keyEncAlgo, int mode, Key key) throws org.apache.wss4j.common.ext.WSSecurityException - Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
initCipherWithKey
public static Cipher initCipherWithKey(String keyEncAlgo, String digestAlgo, int mode, Key key) throws org.apache.wss4j.common.ext.WSSecurityException - Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
constructOAEPParameters
public static OAEPParameterSpec constructOAEPParameters(String encryptionAlgorithm, String digestAlgorithm, String mgfAlgorithm, byte[] oaepParams) Construct an OAEPParameterSpec object from the given parameters -
initXMLCipher
public static org.apache.xml.security.encryption.XMLCipher initXMLCipher(String symEncAlgo, int mode, Key key) throws org.apache.wss4j.common.ext.WSSecurityException - Throws:
org.apache.wss4j.common.ext.WSSecurityException
-