public class DecryptTransform extends XSTransformer
Note: This transform relies on proper configuration of the KeyRetriever facilities so that decryption keys may be obtained using the contents of any dsig:KeyInfo elements found in the xenc:EncrypteData.
transform| Constructor and Description |
|---|
DecryptTransform(XSAlgorithmIdentifier trans)
Creates a new
DecryptTransform instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithmURI()
Returns the URI string identifying the Transform algorithm.
|
XMLContainer |
transform(XMLContainer source)
Applies a Decryption transformation to the given
XMLContainer and returns the result in a new XMLContainer. |
applyTransforms, getInstance, getInstance, getTransformpublic DecryptTransform(XSAlgorithmIdentifier trans)
DecryptTransform instance.trans - A XSAlgorithmIdentifier object containing an optional list of dcrpt:Except elements.java.lang.IllegalArgumentException - If the XSAlgorithmIdentifier is not a valid Decryption Transform.public java.lang.String getAlgorithmURI()
XSTransformergetAlgorithmURI in class XSTransformerpublic XMLContainer transform(XMLContainer source) throws TransformationException
XMLContainer and returns the result in a new XMLContainer.transform in class XSTransformersource - A XMLContainer on which the transform will operate.XMLContainer containing the transform result, which will be a node-set if the algoritym URI is XMLURI.alg_decryptXML, or an octet stream if the algorithm URI is XMLURI.alg_decryptBinary.TransformationException - If an error occurs during the transformation process.