javax.xml.crypto.enc.dom

Class DOMToBeEncryptedXML

  1. java.lang.Object
  2. extended byjavax.xml.crypto.enc.dom.DOMToBeEncryptedXML
All implemented interfaces:
ToBeEncrypted, ToBeEncryptedXML

  1. public class DOMToBeEncryptedXML
  2. extends java.lang.Object
  3. implements ToBeEncryptedXML
A representation of the ToBeEncryptedXML class which contains a XML Element or content of an Element

Constructor Summary

Constructor and Description
DOMToBeEncryptedXML(org.w3c.dom.Element element,CanonicalizationMethod canonMethod)
Creates a new DOMToBeEncryptedXML
DOMToBeEncryptedXML(org.w3c.dom.NodeList content,CanonicalizationMethod canonMethod)
Creates a new DOMToBeEncryptedXML

Method Summary

Modifier and Type Method and Description
  1. CanonicalizationMethod
getCanonicalizationMethod()
  1. java.lang.String
getEncoding()
Returns a URI identifying the transfer encoding of the data that has been encrypted.
  1. java.lang.String
getMimeType()
Returns the mime type of the data that has been encrypted.
  1. org.w3c.dom.NodeList
getNodeList()
Returns the XML to be encrypted.
  1. java.lang.String
getType()
Returns a URI identifying the type of the plaintext form of the encrypted content.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

DOMToBeEncryptedXML

  1. public DOMToBeEncryptedXML(org.w3c.dom.Element element,
  2. CanonicalizationMethod canonMethod)
Creates a new DOMToBeEncryptedXML
Parameters:
element - the Element to be encrypted
canonMethod - the optional serialization method (may be null)
Throws:
java.lang.NullPointerException - if element is null

DOMToBeEncryptedXML

  1. public DOMToBeEncryptedXML(org.w3c.dom.NodeList content,
  2. CanonicalizationMethod canonMethod)
Creates a new DOMToBeEncryptedXML
Parameters:
content - the content of an Element to be encrypted
canonMethod - the optional serialization method (may be null)
Throws:
java.lang.NullPointerException - if content is null

Method Detail

getNodeList

  1. public org.w3c.dom.NodeList getNodeList( )
Returns the XML to be encrypted. The XML is returned as a NodeList. For to-be-encrypted XML that is of the 'element' type, the to-be-encrypted element is returned as the first item in the returning NodeList.
Returns:
the XML to be encrypted.

getType

  1. public java.lang.String getType( )
Returns a URI identifying the type of the plaintext form of the encrypted content.
Specified by:
getType in interface ToBeEncrypted
Specified by:
getType in interface ToBeEncryptedXML
Returns:
the type

getMimeType

  1. public java.lang.String getMimeType( )
Returns the mime type of the data that has been encrypted.
Specified by:
getMimeType in interface ToBeEncrypted
Specified by:
Returns:
the mime type, or null if not specified

getEncoding

  1. public java.lang.String getEncoding( )
Returns a URI identifying the transfer encoding of the data that has been encrypted.
Specified by:
getEncoding in interface ToBeEncrypted
Specified by:
Returns:
the encoding, or null if not specified

getCanonicalizationMethod

  1. public CanonicalizationMethod getCanonicalizationMethod( )
Description copied from interface: ToBeEncryptedXML
Returns the canonicalization method
Specified by:
Returns:
the canonicalization method. null if not specified