Apache CXF API

org.apache.cxf.rs.security.xml
Class EncryptionUtils

java.lang.Object
  extended by org.apache.cxf.rs.security.xml.EncryptionUtils

public final class EncryptionUtils
extends Object


Method Summary
static OAEPParameterSpec constructOAEPParameters(String encryptionAlgorithm, String digestAlgorithm, String mgfAlgorithm, byte[] oaepParams)
          Construct an OAEPParameterSpec object from the given parameters
static Cipher initCipherWithCert(String keyEncAlgo, int mode, X509Certificate cert)
           
static Cipher initCipherWithCert(String keyEncAlgo, String digestAlg, int mode, X509Certificate cert)
           
static Cipher initCipherWithKey(String keyEncAlgo, int mode, Key key)
           
static Cipher initCipherWithKey(String keyEncAlgo, String digestAlgo, int mode, Key key)
           
static org.apache.xml.security.encryption.XMLCipher initXMLCipher(String symEncAlgo, int mode, Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initCipherWithCert

public static Cipher initCipherWithCert(String keyEncAlgo,
                                        int mode,
                                        X509Certificate cert)
                                 throws org.apache.ws.security.WSSecurityException
Throws:
org.apache.ws.security.WSSecurityException

initCipherWithCert

public static Cipher initCipherWithCert(String keyEncAlgo,
                                        String digestAlg,
                                        int mode,
                                        X509Certificate cert)
                                 throws org.apache.ws.security.WSSecurityException
Throws:
org.apache.ws.security.WSSecurityException

initCipherWithKey

public static Cipher initCipherWithKey(String keyEncAlgo,
                                       int mode,
                                       Key key)
                                throws org.apache.ws.security.WSSecurityException
Throws:
org.apache.ws.security.WSSecurityException

initCipherWithKey

public static Cipher initCipherWithKey(String keyEncAlgo,
                                       String digestAlgo,
                                       int mode,
                                       Key key)
                                throws org.apache.ws.security.WSSecurityException
Throws:
org.apache.ws.security.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.ws.security.WSSecurityException
Throws:
org.apache.ws.security.WSSecurityException

Apache CXF API

Apache CXF