SignElement

Sign an element in the specified SOAP envelope using a private key.

Location

/lib/services/

Inputs

envelope: A SOAP envelope. It may not be NULL.

actor: Determines which WS Security header to process. It may be NULL.

mustUnderstand: Indicate whether or not the receiver must understand this header. It may be NULL. If NULL, mustUnderstand defaults to TRUE.

elementName: The name of the element in the envelope to sign. It may be NULL. If NULL, elementName defaults to {http://schemas.xmlsoap.org/soap/envelope/}Body.

certificateAlias: The alias of a private key in the key store to use to sign the element.

keyStore: A serialized Java key store containing the private key used to sign the element. It may be NULL.

keyStoreType: The type of key store. It must be JKS or PKCS12. It may not be NULL.

keyStorePassword: The password of the key store and of all private keys within it. It may be NULL or empty if there is no password.

Outputs

envelope: The SOAP envelope containing the signed element and generated WS Security header elements.

Exceptions

IllegalArgumentException: If any of the arguments are invalid.

SecurityException: If the element could not be signed.