Class DateValidityChecker

  • All Implemented Interfaces:
    CertificateChecker

    public class DateValidityChecker
    extends java.lang.Object
    implements CertificateChecker
    Checks if the certificate has expried or is not yet valid.
    Since:
    1.0
    Version:
    ${version}
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void invoke​(java.security.cert.X509Certificate cert, GSIConstants.CertificateType certType)
      Method that checks the time validity.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateValidityChecker

        public DateValidityChecker()
    • Method Detail

      • invoke

        public void invoke​(java.security.cert.X509Certificate cert,
                           GSIConstants.CertificateType certType)
                    throws java.security.cert.CertPathValidatorException
        Method that checks the time validity. Uses the standard Certificate.checkValidity method.
        Specified by:
        invoke in interface CertificateChecker
        Parameters:
        cert - The certificate to validate.
        certType - The type of certificate to validate.
        Throws:
        java.security.cert.CertPathValidatorException - If certificate has expired or is not yet valid.