Class DocumentContextImpl
java.lang.Object
org.apache.xml.security.stax.impl.DocumentContextImpl
- All Implemented Interfaces:
Cloneable,DocumentContext
A concrete DocumentContext Implementation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentContextImplclone()booleanbooleanvoidsetBaseURI(String baseURI) protected voidsetContentTypeMap(Map<Integer, XMLSecurityConstants.ContentType> contentTypeMap) voidsetEncoding(String encoding) voidsetIsInEncryptedContent(int index, Object key) Indicates if we currently stay in an encrypted contentvoidsetIsInSignedContent(int index, Object key) Indicates if we currently stay in a signed contentvoidunset when we leave the encrypted contentvoidunset when we leave the signed content
-
Constructor Details
-
DocumentContextImpl
public DocumentContextImpl()
-
-
Method Details
-
getEncoding
- Specified by:
getEncodingin interfaceDocumentContext- Returns:
- The Encoding of the document
-
setEncoding
-
getBaseURI
- Specified by:
getBaseURIin interfaceDocumentContext- Returns:
- The base URI of the document if known
-
setBaseURI
-
setIsInEncryptedContent
Description copied from interface:DocumentContextIndicates if we currently stay in an encrypted content- Specified by:
setIsInEncryptedContentin interfaceDocumentContext
-
unsetIsInEncryptedContent
Description copied from interface:DocumentContextunset when we leave the encrypted content- Specified by:
unsetIsInEncryptedContentin interfaceDocumentContext
-
isInEncryptedContent
public boolean isInEncryptedContent()- Specified by:
isInEncryptedContentin interfaceDocumentContext- Returns:
- true if we currently stay in encrypted content
-
setIsInSignedContent
Description copied from interface:DocumentContextIndicates if we currently stay in a signed content- Specified by:
setIsInSignedContentin interfaceDocumentContext
-
unsetIsInSignedContent
Description copied from interface:DocumentContextunset when we leave the signed content- Specified by:
unsetIsInSignedContentin interfaceDocumentContext
-
isInSignedContent
public boolean isInSignedContent()- Specified by:
isInSignedContentin interfaceDocumentContext- Returns:
- true if we currently stay in signed content
-
getProtectionOrder
- Specified by:
getProtectionOrderin interfaceDocumentContext
-
getContentTypeMap
- Specified by:
getContentTypeMapin interfaceDocumentContext
-
setContentTypeMap
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-