public class MakeXmlSignature extends Object
| Constructor and Description |
|---|
MakeXmlSignature() |
| Modifier and Type | Method and Description |
|---|---|
static void |
signXades(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain,
boolean includeSignaturePolicy)
Signs the xml with XAdES BES using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).
|
static void |
signXadesBes(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain)
Signs the xml with XAdES BES using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).
|
static void |
signXadesEpes(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain)
Signs the xml with XAdES BES using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).
|
static void |
signXmlDSig(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain)
Signs the xml with XmlDSig using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).
|
static void |
signXmlDSig(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo)
Signs the xml with XmlDSig using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).
|
static void |
signXmlDSig(XmlSignatureAppearance sap,
ExternalSignature externalSignature,
PublicKey publicKey)
Signs the xml with XmlDSig using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).
|
public static void signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo) throws GeneralSecurityException, IOException, DocumentException
sap - the XmlSignatureAppearanceexternalSignature - the interface providing the actual signingkeyInfo - KeyInfo for verificationGeneralSecurityExceptionIOExceptionDocumentExceptionpublic static void signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain) throws DocumentException, GeneralSecurityException, IOException
sap - the XmlSignatureAppearanceexternalSignature - the interface providing the actual signingchain - the certificate chainGeneralSecurityExceptionIOExceptionDocumentExceptionpublic static void signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, PublicKey publicKey) throws GeneralSecurityException, DocumentException, IOException
sap - the XmlSignatureAppearanceexternalSignature - the interface providing the actual signingpublicKey - PublicKey for verificationGeneralSecurityExceptionIOExceptionDocumentExceptionpublic static void signXades(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain, boolean includeSignaturePolicy) throws GeneralSecurityException, DocumentException, IOException
sap - the XmlSignatureAppearanceexternalSignature - the interface providing the actual signingchain - the certificate chainincludeSignaturePolicy - if true SignaturePolicyIdentifier will be included (XAdES-EPES)GeneralSecurityExceptionIOExceptionDocumentExceptionpublic static void signXadesBes(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain) throws GeneralSecurityException, DocumentException, IOException
sap - the XmlSignatureAppearanceexternalSignature - the interface providing the actual signingchain - the certificate chainGeneralSecurityExceptionIOExceptionDocumentExceptionpublic static void signXadesEpes(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain) throws GeneralSecurityException, DocumentException, IOException
sap - the XmlSignatureAppearanceexternalSignature - the interface providing the actual signingchain - the certificate chainGeneralSecurityExceptionIOExceptionDocumentExceptionCopyright © 2020. All rights reserved.