javax.xml.crypto.enc.dom
Class DOMToBeEncryptedXML
- java.lang.Object
javax.xml.crypto.enc.dom.DOMToBeEncryptedXML
All implemented interfaces:
- public class DOMToBeEncryptedXML
- extends java.lang.Object
- implements ToBeEncryptedXML
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 |
---|---|
getCanonicalizationMethod()
|
|
|
getEncoding()
Returns a URI identifying the transfer encoding of the data that
has been encrypted.
|
|
getMimeType()
Returns the mime type of the data that has been encrypted.
|
|
getNodeList()
Returns the XML to be encrypted.
|
|
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
- public DOMToBeEncryptedXML(org.w3c.dom.Element element,
- 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
- public DOMToBeEncryptedXML(org.w3c.dom.NodeList content,
- 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
- 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
- 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
- public java.lang.String getMimeType( )
Returns the mime type of the data that has been encrypted.
Specified by:
getMimeType
in interface ToBeEncrypted
Specified by:
getMimeType
in interface ToBeEncryptedXML
Returns:
the mime type, or
null
if not specified getEncoding
- 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:
getEncoding
in interface ToBeEncryptedXML
Returns:
the encoding, or
null
if not specified getCanonicalizationMethod
- public CanonicalizationMethod getCanonicalizationMethod( )
Description copied from interface:
ToBeEncryptedXML
Returns the canonicalization method
Specified by:
getCanonicalizationMethod
in interface ToBeEncryptedXML
Returns:
the canonicalization method.
null
if not specified