Class DocumentContextImpl
java.lang.Object
org.apache.xml.security.stax.impl.DocumentContextImpl
- All Implemented Interfaces:
Cloneable
,DocumentContext
A concrete DocumentContext Implementation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private final Map
<Integer, XMLSecurityConstants.ContentType> private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentContextImpl
clone()
boolean
boolean
void
setBaseURI
(String baseURI) protected void
setContentTypeMap
(Map<Integer, XMLSecurityConstants.ContentType> contentTypeMap) void
setEncoding
(String encoding) void
setIsInEncryptedContent
(int index, Object key) Indicates if we currently stay in an encrypted contentvoid
setIsInSignedContent
(int index, Object key) Indicates if we currently stay in a signed contentvoid
unset when we leave the encrypted contentvoid
unset when we leave the signed content
-
Field Details
-
encoding
-
baseURI
-
contentTypeMap
-
processorToIndexMap
-
-
Constructor Details
-
DocumentContextImpl
public DocumentContextImpl()
-
-
Method Details
-
getEncoding
- Specified by:
getEncoding
in interfaceDocumentContext
- Returns:
- The Encoding of the document
-
setEncoding
-
getBaseURI
- Specified by:
getBaseURI
in interfaceDocumentContext
- Returns:
- The base URI of the document if known
-
setBaseURI
-
setIsInEncryptedContent
Description copied from interface:DocumentContext
Indicates if we currently stay in an encrypted content- Specified by:
setIsInEncryptedContent
in interfaceDocumentContext
-
unsetIsInEncryptedContent
Description copied from interface:DocumentContext
unset when we leave the encrypted content- Specified by:
unsetIsInEncryptedContent
in interfaceDocumentContext
-
isInEncryptedContent
public boolean isInEncryptedContent()- Specified by:
isInEncryptedContent
in interfaceDocumentContext
- Returns:
- true if we currently stay in encrypted content
-
setIsInSignedContent
Description copied from interface:DocumentContext
Indicates if we currently stay in a signed content- Specified by:
setIsInSignedContent
in interfaceDocumentContext
-
unsetIsInSignedContent
Description copied from interface:DocumentContext
unset when we leave the signed content- Specified by:
unsetIsInSignedContent
in interfaceDocumentContext
-
isInSignedContent
public boolean isInSignedContent()- Specified by:
isInSignedContent
in interfaceDocumentContext
- Returns:
- true if we currently stay in signed content
-
getProtectionOrder
- Specified by:
getProtectionOrder
in interfaceDocumentContext
-
getContentTypeMap
- Specified by:
getContentTypeMap
in interfaceDocumentContext
-
setContentTypeMap
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-