|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.xmlsecurity.processor.XmlSignatureConfiguration
public abstract class XmlSignatureConfiguration
Constructor Summary | |
---|---|
XmlSignatureConfiguration()
|
Method Summary | |
---|---|
String |
getBaseUri()
|
org.apache.camel.CamelContext |
getCamelContext()
|
Boolean |
getClearHeaders()
Determines if the XML signature specific headers be cleared after signing and verification. |
Map<String,? extends Object> |
getCryptoContextProperties()
|
Boolean |
getDisallowDoctypeDecl()
|
Boolean |
getOmitXmlDeclaration()
|
URIDereferencer |
getUriDereferencer()
|
void |
setBaseUri(String baseUri)
You can set a base URI which is used in the URI dereferencing. |
void |
setCamelContext(org.apache.camel.CamelContext camelContext)
|
void |
setClearHeaders(Boolean clearHeaders)
Determines if the XML signature specific headers be cleared after signing and verification. |
void |
setCryptoContextProperties(Map<String,? extends Object> cryptoContextProperties)
Sets the crypto context properties. |
void |
setDisallowDoctypeDecl(Boolean disallowDoctypeDecl)
Disallows that the incoming XML document contains DTD DOCTYPE declaration. |
void |
setOmitXmlDeclaration(Boolean omitXmlDeclaration)
Indicator whether the XML declaration in the outgoing message body should be omitted. |
void |
setUriDereferencer(URIDereferencer uriDereferencer)
If you want to restrict the remote access via reference URIs, you can set an own dereferencer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlSignatureConfiguration()
Method Detail |
---|
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public URIDereferencer getUriDereferencer()
public void setUriDereferencer(URIDereferencer uriDereferencer)
Attention: The implementation is provider dependent!
uriDereferencer
- XMLCryptoContext.setURIDereferencer(URIDereferencer)
public String getBaseUri()
public void setBaseUri(String baseUri)
baseUri
- base URIXMLCryptoContext.setBaseURI(String)
public Map<String,? extends Object> getCryptoContextProperties()
public void setCryptoContextProperties(Map<String,? extends Object> cryptoContextProperties)
XMLCryptoContext.setProperty(String, Object)
. Possible properties
are defined in XMLSignContext
an XMLValidateContext
(see
Supported Properties).
The following properties are set by default to the value
Boolean.TRUE
for the XML validation. If you want to switch these
features off you must set the property value to Boolean.FALSE
.
"org.jcp.xml.dsig.validateManifests"
"javax.xml.crypto.dsig.cacheReference"
cryptoContextProperties
- public Boolean getDisallowDoctypeDecl()
public void setDisallowDoctypeDecl(Boolean disallowDoctypeDecl)
Boolean.TRUE
.
disallowDoctypeDecl
- if set to Boolean.FALSE
then DOCTYPE declaration is
allowed, otherwise notpublic Boolean getOmitXmlDeclaration()
public void setOmitXmlDeclaration(Boolean omitXmlDeclaration)
false
. Can be overwritten by
the header XmlSignatureConstants.HEADER_OMIT_XML_DECLARATION
.
public Boolean getClearHeaders()
public void setClearHeaders(Boolean clearHeaders)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |