javax.xml.crypto.enc.dom

Class DOMDecryptContext

  1. java.lang.Object
  2. extended byjavax.xml.crypto.dom.DOMCryptoContext
  3. extended byjavax.xml.crypto.enc.dom.DOMDecryptContext
All implemented interfaces:
XMLDecryptContext, XMLCryptoContext

  1. public class DOMDecryptContext
  2. extends DOMCryptoContext
  3. implements XMLDecryptContext
A DOM-specific XMLDecryptContext for decrypting.

Constructor Summary

Constructor and Description
DOMDecryptContext(java.security.Key key,org.w3c.dom.Element encData)
Creates a DOMDecryptContext with the specified decryption key and encrypted data element to decrypt.
DOMDecryptContext(KeySelector ks,org.w3c.dom.Element encData)
Creates a DOMDecryptContext with the specified decryption key selector and encrypted data element to decrypt.

Method Summary

Modifier and Type Method and Description
  1. org.w3c.dom.Element
getEncryptedData()
Returns the EncryptedData element.
  1. EncryptionMethod
getEncryptionMethod()
getEncryptionMethod
  1. void
setEncryptionMethod(EncryptionMethod encMethod)
Methods inherited from class javax.xml.crypto.dom.DOMCryptoContext
get, getBaseURI, getDefaultNamespacePrefix, getElementById, getKeySelector, getNamespacePrefix, getProperty, getURIDereferencer, iterator, put, putNamespacePrefix, setBaseURI, setDefaultNamespacePrefix, setIdAttributeNS, setKeySelector, setProperty, setURIDereferencer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.xml.crypto.XMLCryptoContext
get, getBaseURI, getDefaultNamespacePrefix, getKeySelector, getNamespacePrefix, getProperty, getURIDereferencer, put, putNamespacePrefix, setBaseURI, setDefaultNamespacePrefix, setKeySelector, setProperty, setURIDereferencer

Constructor Detail

DOMDecryptContext

  1. public DOMDecryptContext(java.security.Key key,
  2. org.w3c.dom.Element encData)
Creates a DOMDecryptContext with the specified decryption key and encrypted data element to decrypt.
Parameters:
key - the decryption key
encData - the EncryptedType element: EncryptedData or EncryptedKey
Throws:
java.lang.NullPointerException - if key or encData is null

DOMDecryptContext

  1. public DOMDecryptContext(KeySelector ks,
  2. org.w3c.dom.Element encData)
Creates a DOMDecryptContext with the specified decryption key selector and encrypted data element to decrypt.
Parameters:
ks - the decryption key selector
encData - the EncryptedData element
Throws:
java.lang.NullPointerException - if ks or encData is null

Method Detail

getEncryptionMethod

  1. public EncryptionMethod getEncryptionMethod( )
getEncryptionMethod
Specified by:

setEncryptionMethod

  1. public void setEncryptionMethod( EncryptionMethod encMethod)
Description copied from interface: XMLDecryptContext
Specifies the EncryptionMethod for decryption if the EncryptionMethod is absent from the EncryptedType
Specified by:
Parameters:
encMethod - the EncryptionMethod for decryption

getEncryptedData

  1. public org.w3c.dom.Element getEncryptedData( )
Returns the EncryptedData element.
Returns:
the EncryptedData element