signature

Version

Adds an XML Signature (XML-DSig) to the wsse:Security header, signing the elements listed in references. Follows the WS-Security convention used by Apache CXF: each signed element receives a wsu:Id that a detached ds:Reference points at. Signs with the enclosing wsSecurity element's keystore.

Syntax

signature:
canonicalizationAlgorithm: <string>
digestAlgorithm: <string>
keyIdentifier: {}
references:
- <wsSecurity-signature-reference>
securityTokenReference: {}
signatureAlgorithm: <string>
x509Data: {}
signature:
  canonicalizationAlgorithm: <string>
  digestAlgorithm: <string>
  keyIdentifier: {}
  references:
    - <wsSecurity-signature-reference>
  securityTokenReference: {}
  signatureAlgorithm: <string>
  x509Data: {}

Attributes

NameRequiredDefaultDescriptionExamples
canonicalizationAlgorithmfalsehttp://www.w3.org/2001/10/xml-exc-c14n#The canonicalization algorithm URI used for ds:SignedInfo.-
digestAlgorithmfalsehttp://www.w3.org/2001/04/xmlenc#sha256The digest algorithm URI used for each ds:Reference.-
signatureAlgorithmfalsehttp://www.w3.org/2001/04/xmldsig-more#rsa-sha256The XML Signature algorithm URI used to compute the signature.-

Child Structure

ElementCardinalityDescription
keyIdentifier0..1References the signing certificate from ds:KeyInfo via a wsse:SecurityTokenReference/wsse:KeyIdentifier, instead of embedding it inline or via a separate wsse:BinarySecurityToken. Mutually exclusive with x509Data and securityTokenReference.
wsSecurity-signature-reference0..*The elements to sign. Each becomes one ds:Reference inside the signature's ds:SignedInfo - except an XPATH reference matching more than one element, which becomes one ds:Reference per matched element.
securityTokenReference0..1References the signing certificate from ds:KeyInfo via a wsse:SecurityTokenReference pointing at a wsse:BinarySecurityToken, instead of embedding it inline. Mutually exclusive with x509Data and keyIdentifier.
x509Data0..1Embeds the signing certificate inline in ds:KeyInfo. This is the default when none of this, securityTokenReference, or keyIdentifier is set.

Can be used in