Package org.globus.gsi.trustmanager
Class DateValidityChecker
java.lang.Object
org.globus.gsi.trustmanager.DateValidityChecker
- All Implemented Interfaces:
CertificateChecker
Checks if the certificate has expried or is not yet valid.
- Since:
- 1.0
- Version:
- ${version}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
invoke
(X509Certificate cert, GSIConstants.CertificateType certType) Method that checks the time validity.
-
Constructor Details
-
DateValidityChecker
public DateValidityChecker()
-
-
Method Details
-
invoke
public void invoke(X509Certificate cert, GSIConstants.CertificateType certType) throws CertPathValidatorException Method that checks the time validity. Uses the standard Certificate.checkValidity method.- Specified by:
invoke
in interfaceCertificateChecker
- Parameters:
cert
- The certificate to validate.certType
- The type of certificate to validate.- Throws:
CertPathValidatorException
- If certificate has expired or is not yet valid.
-