javax.xml.crypto.enc

Interface EncryptedData

    • Method Detail

      • decrypt

        java.io.InputStream decrypt(XMLDecryptContext context)
                             throws XMLEncryptionException
        Decrypts the CipherData in this EncryptedData.
        Specified by:
        decrypt in interface EncryptedType
        Parameters:
        context - the decryption context
        Returns:
        the decrypted CipherData as an InputStream.
        Throws:
        java.lang.NullPointerException - if context is null
        XMLEncryptionException - if an error occurs while decrypting
      • decryptAndReplace

        void decryptAndReplace(XMLDecryptContext context)
                        throws XMLEncryptionException
        Decrypts the CipherData in this EncryptedData and replace the EncryptedData with the decrypted data or element
        Parameters:
        context - the decryption context
        Throws:
        java.lang.NullPointerException - if context is null
        XMLEncryptionException - if an error occurs while decrypting
XML Security (JSR 105/106), 1.8

Copyright © 2015 IBM Corporation. All Rights Reserved.