com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class Cms

  • All Implemented Interfaces:
    Iterable<MetadataProperty>


    public class Cms
    extends DigitalSignature

    Represents a digital sign created with Cryptographic Message Syntax (CMS) - IETF's standard for cryptographically protected messages. CMS is based on the syntax of PKCS #7, specified in RFC 5652. Please see <a href="https://tools.ietf.org/html/rfc5652">https://tools.ietf.org/html/rfc5652</a> for more information.

    • Method Detail

      • getDigestAlgorithms

        public final Oid[] getDigestAlgorithms()

        Gets the array of message-digest algorithm identifiers. There may be any number of elements in the collection, including zero.

        Returns:
        The array of message-digest algorithm identifiers.
      • getEncapsulatedContentInfo

        public final CmsEncapsulatedContentInfo getEncapsulatedContentInfo()

        Gets the signed content, consisting of a content type identifier and the content itself.

        Returns:
        The signed content, consisting of a content type identifier and the content itself.
      • getCertificates

        public final CmsCertificate[] getCertificates()

        Gets the collection of certificates.

        Returns:
        The collection of certificates.


        It is intended that the set of certificates be sufficient to contain certification paths from a recognized "root" or "top-level certification authority" to all of the signers in the SignerInfo field.

      • getSignerInfoEntries

        public final CmsSignerInfo[] getSignerInfoEntries()

        Gets the collection of per-signer information.

        Returns:
        The collection of per-signer information.


        There may be any number of elements in the collection, including zero.

      • isValid

        public boolean isValid()

        Gets true if signature is valid.

        Overrides:
        isValid in class DigitalSignature
        Returns:
        true if is valid; otherwise, false.
      • getSignTime

        public Date getSignTime()

        Gets the time at which the signer (purportedly) performed the signing process.

        Overrides:
        getSignTime in class DigitalSignature
        Returns:
        The time at which the signer (purportedly) performed the signing process.