Javax.Security.Cert.X509Certificate.CheckValidity Method
Checks whether the certificate is currently valid.

Syntax

[Android.Runtime.Register("checkValidity", "()V", "GetCheckValidityHandler")]
public abstract void CheckValidity ()

Exceptions

TypeReason
Javax.Security.Cert.CertificateExpiredExceptionif the certificate has expired.
Javax.Security.Cert.CertificateNotYetValidExceptionif the certificate is not yet valid.

Remarks

Checks whether the certificate is currently valid.

The validity defined in ASN.1:

java Example

 validity             Validity

 Validity ::= SEQUENCE {
      notBefore       CertificateValidityDate,
      notAfter        CertificateValidityDate }

 CertificateValidityDate ::= CHOICE {
      utcTime         UTCTime,
      generalTime     GeneralizedTime }
 

[Android Documentation]

Requirements

Namespace: Javax.Security.Cert
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1