org.apache.camel.component.xmlsecurity.processor
Class XmlSignatureConfiguration

java.lang.Object
  extended by org.apache.camel.component.xmlsecurity.processor.XmlSignatureConfiguration
All Implemented Interfaces:
Cloneable, org.apache.camel.CamelContextAware
Direct Known Subclasses:
XmlSignerConfiguration, XmlVerifierConfiguration

public abstract class XmlSignatureConfiguration
extends Object
implements Cloneable, org.apache.camel.CamelContextAware


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

XmlSignatureConfiguration

public XmlSignatureConfiguration()
Method Detail

getCamelContext

public org.apache.camel.CamelContext getCamelContext()
Specified by:
getCamelContext in interface org.apache.camel.CamelContextAware

setCamelContext

public void setCamelContext(org.apache.camel.CamelContext camelContext)
Specified by:
setCamelContext in interface org.apache.camel.CamelContextAware

getUriDereferencer

public URIDereferencer getUriDereferencer()

setUriDereferencer

public void setUriDereferencer(URIDereferencer uriDereferencer)
If you want to restrict the remote access via reference URIs, you can set an own dereferencer. Optional parameter. If not set the provider default dereferencer is used which can resolve URI fragments, HTTP, file and XPpointer URIs.

Attention: The implementation is provider dependent!

Parameters:
uriDereferencer -
See Also:
XMLCryptoContext.setURIDereferencer(URIDereferencer)

getBaseUri

public String getBaseUri()

setBaseUri

public void setBaseUri(String baseUri)
You can set a base URI which is used in the URI dereferencing. Relative URIs are then concatenated with the base URI.

Parameters:
baseUri - base URI
See Also:
XMLCryptoContext.setBaseURI(String)

getCryptoContextProperties

public Map<String,? extends Object> getCryptoContextProperties()

setCryptoContextProperties

public void setCryptoContextProperties(Map<String,? extends Object> cryptoContextProperties)
Sets the crypto context properties. See 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.

Parameters:
cryptoContextProperties -

getDisallowDoctypeDecl

public Boolean getDisallowDoctypeDecl()

setDisallowDoctypeDecl

public void setDisallowDoctypeDecl(Boolean disallowDoctypeDecl)
Disallows that the incoming XML document contains DTD DOCTYPE declaration. The default value is Boolean.TRUE.

Parameters:
disallowDoctypeDecl - if set to Boolean.FALSE then DOCTYPE declaration is allowed, otherwise not

getOmitXmlDeclaration

public Boolean getOmitXmlDeclaration()

setOmitXmlDeclaration

public void setOmitXmlDeclaration(Boolean omitXmlDeclaration)
Indicator whether the XML declaration in the outgoing message body should be omitted. Default value is false. Can be overwritten by the header XmlSignatureConstants.HEADER_OMIT_XML_DECLARATION.


getClearHeaders

public Boolean getClearHeaders()
Determines if the XML signature specific headers be cleared after signing and verification. Defaults to true.

Returns:
true if the Signature headers should be unset, false otherwise

setClearHeaders

public void setClearHeaders(Boolean clearHeaders)
Determines if the XML signature specific headers be cleared after signing and verification. Defaults to true.



Apache Camel