com.aspose.words

Class DigitalSignatureType

  • java.lang.Object
    • com.aspose.words.DigitalSignatureType
public class DigitalSignatureType 
extends java.lang.Object

Utility class containing constants. Specifies the type of a digital signature.

Example:

Shows how to validate all signatures in a document.
// Load the signed document.
Document doc = new Document(getMyDir() + "Document.DigitalSignature.docx");
DigitalSignatureCollection digitalSignatureCollection = doc.getDigitalSignatures();

if (digitalSignatureCollection.isValid()) {
    System.out.println("Signatures belonging to this document are valid");
    System.out.println(digitalSignatureCollection.getCount());
    System.out.println(digitalSignatureCollection.get(0).getSignatureType());
} else {
    System.out.println("Signatures belonging to this document are NOT valid");
}

Field Summary
static final intUNKNOWN = 0
Indicates an error, unknown digital signature type.
static final intCRYPTO_API = 1
The Crypto API signature method used in Microsoft Word 97-2003 .DOC binary documents.
static final intXML_DSIG = 2
The XmlDsig signature method used in OOXML and OpenDocument documents.
 

    • Field Detail

      • UNKNOWN = 0

        public static final int UNKNOWN
        Indicates an error, unknown digital signature type.
      • CRYPTO_API = 1

        public static final int CRYPTO_API
        The Crypto API signature method used in Microsoft Word 97-2003 .DOC binary documents.
      • XML_DSIG = 2

        public static final int XML_DSIG
        The XmlDsig signature method used in OOXML and OpenDocument documents.