SignatureHandler¶
-
public class
SignatureHandler
¶ Author: Donahue Sze
Constructors¶
SignatureHandler¶
-
public
SignatureHandler
(EbxmlMessage message, String username, char[] password, String keyStoreLocation, X509TrustManager trustman)¶
SignatureHandler¶
-
public
SignatureHandler
(EbxmlMessage message, Certificate cert)¶
Methods¶
sign¶
-
public void
sign
()¶ Sign this
EbxmlMessage
with XML signatureThrows: - SOAPException –
- SignatureException –
sign¶
-
public void
sign
(String algorithm)¶ Sign this
EbxmlMessage
with XML signatureParameters: - algorithm – Specifies the algorithm used to generate the digital signature. Refer to ` XML-Signature Syntax and Processing: Algorithm Identifiers and Implementation Requirements <http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/#sec-AlgID>`_ for details.
Throws: - SOAPException –
- SignatureException –
sign¶
-
public void
sign
(String algorithm, String digestAlgorithm, boolean signEnvelopeOnly)¶ Sign this
EbxmlMessage
with XML signatureParameters: - algorithm – Specifies the algorithm used to generate the digital signature. Refer to ` XML-Signature Syntax and Processing: Algorithm Identifiers and Implementation Requirements <http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/#sec-AlgID>`_ for details.
- signEnvelopeOnly – whether it should sign the envelope only, without signing the payload.
- digestAlgorithm – Description of the Parameter
Throws: - SOAPException –
- SignatureException –
verify¶
-
public boolean
verify
()¶ Verify the message using trusted keystore.
Throws: - SOAPException –
- SignatureException –
Returns: true if the digital signature is valid; false otherwise.