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 XmlSignatureAppearance 
           externalSignature - the interface providing the actual signing 
           keyInfo - KeyInfo for verification 
           GeneralSecurityException 
           IOException 
           DocumentException 
           public static void signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain) throws DocumentException, GeneralSecurityException, IOException
sap - the XmlSignatureAppearance 
           externalSignature - the interface providing the actual signing 
           chain - the certificate chain 
           GeneralSecurityException 
           IOException 
           DocumentException 
           public static void signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, PublicKey publicKey) throws GeneralSecurityException, DocumentException, IOException
sap - the XmlSignatureAppearance 
           externalSignature - the interface providing the actual signing 
           publicKey - PublicKey for verification 
           GeneralSecurityException 
           IOException 
           DocumentException 
           public static void signXades(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain, boolean includeSignaturePolicy) throws GeneralSecurityException, DocumentException, IOException
sap - the XmlSignatureAppearance 
           externalSignature - the interface providing the actual signing 
           chain - the certificate chain 
           includeSignaturePolicy - if true SignaturePolicyIdentifier will be included (XAdES-EPES) 
           GeneralSecurityException 
           IOException 
           DocumentException 
           public static void signXadesBes(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain) throws GeneralSecurityException, DocumentException, IOException
sap - the XmlSignatureAppearance 
           externalSignature - the interface providing the actual signing 
           chain - the certificate chain 
           GeneralSecurityException 
           IOException 
           DocumentException 
           public static void signXadesEpes(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain) throws GeneralSecurityException, DocumentException, IOException
sap - the XmlSignatureAppearance 
           externalSignature - the interface providing the actual signing 
           chain - the certificate chain 
           GeneralSecurityException 
           IOException 
           DocumentException 
           Copyright © 1998–2019. All rights reserved.