public class XMLCipherInput extends Object
XMLCipherInput
is used to wrap input passed into the
XMLCipher encryption operations.
In decryption mode, it takes a CipherData
object and allows
callers to dereference the CipherData into the encrypted bytes that it
actually represents. This takes care of all base64 encoding etc.
While primarily an internal class, this can be used by applications to
quickly and easily retrieve the encrypted bytes from an EncryptedType
objectConstructor and Description |
---|
XMLCipherInput(CipherData data)
Constructor for processing encrypted octets
|
XMLCipherInput(EncryptedType input)
Constructor for processing encrypted octets
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Dereferences the input and returns it as a single byte array.
|
void |
setSecureValidation(boolean secureValidation)
Set whether secure validation is enabled or not.
|
public XMLCipherInput(CipherData data) throws XMLEncryptionException
data
- The CipherData
object to read the bytes fromXMLEncryptionException
- XMLEncryptionException
public XMLCipherInput(EncryptedType input) throws XMLEncryptionException
input
- The EncryptedType
object to read
the bytes from.XMLEncryptionException
- XMLEncryptionException
public void setSecureValidation(boolean secureValidation)
public byte[] getBytes() throws XMLEncryptionException
XMLEncryptionException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.