Enum DigitalSignatureValidationResult.CertificateStatus

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      OK

      The certificate status is correct, valid.

      OK_BUT_SELF_SIGNED

      The certificate status is valid, but self-signed.

      OK_BUT_REVOCATION_CHECK_FAILED

      OCSP certificate revocation check network error. Either due to invalid OCSP server URL or network timeout.

      OK_BUT_NOT_CHECKED_AGAINST_CA

      The certificate date is correct, but couldn't check against a certificate authority.

      EXPIRED

      Either the certificate, the OCSP, or the CRL has expired. According to the spec, this is an invalid state (error).

      EXPIRED_NO_POE

      Either the certificate, the OCSP, or the CRL has expired but we don't have proof of existence (POE) of the digital signature. According to the specification, this is an indeterminate state (warning).

      EXPIRED_BUT_VALID_IN_THE_PAST

      Either the certificate, the OCSP, or the CRL has expired as of today but we have confidence that this certificate was valid in the past, when the signature was created. According to the specification, this is an indeterminate state (warning).

      NOT_YET_VALID

      Either the certificate, the OCSP, or the CRL are not yet valid. According to the spec, this is an invalid state (error).

      NOT_YET_VALID_NO_POE

      Either the certificate, the OCSP, or the CRL are not yet valid but we don't have proof of existence (POE) of the digital signature. According to the specification, this is an indeterminate state (warning).

      INVALID

      The certificate is not valid against a CA.

      REVOKED

      The certificate has been revoked. According to the spec, this is an invalid state (error).

      REVOKED_NO_POE

      The certificate has been revoked but we don't have proof of existence (POE) of the digital signature. According to the specification, this is an indeterminate state (warning).

      REVOKED_BUT_VALID_IN_THE_PAST

      The certificate has been revoked as of today but we have confidence that this certificate was valid in the past, when the signature was created. According to the specification, this is an indeterminate state (warning).

      FAILED_RETRIEVE_SIGNATURE_CONTENTS

      Could not fetch signature contents.

      GENERAL_VALIDATION_PROBLEM

      General validation problems (bad signatures, certificate chain is too long, etc.).

    • Constructor Detail

    • Method Detail

      • getLocalizedDescription

        @Nullable() String getLocalizedDescription(@NonNull() Context context)

        Returns localized description for the certificate status issues.

        Parameters:
        context - Context used for retrieving localized descriptions.
        Returns:

        Localized description for the certificate status issues or null if the status is not an issue.

      • values

         static Array<DigitalSignatureValidationResult.CertificateStatus> values()

        Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

        Returns:

        an array containing the constants of this enum type, in the order they're declared

      • valueOf

         static DigitalSignatureValidationResult.CertificateStatus valueOf(String name)

        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

        Returns:

        the enum constant with the specified name