Package de.mtg.jzlint.utils
Class DateUtils
java.lang.Object
de.mtg.jzlint.utils.DateUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanexpiresAfter(X509Certificate certificate, ZonedDateTime date) static booleanexpiresBefore(X509Certificate certificate, ZonedDateTime date) static booleanexpiresOnOrAfter(X509Certificate certificate, ZonedDateTime date) static ZonedDateTimegetNotAfter(X509Certificate certificate) static ZonedDateTimegetNotBefore(X509Certificate certificate) static ZonedDateTimegetProducedAt(org.bouncycastle.asn1.ocsp.OCSPResponse ocspResponse) static ZonedDateTimegetThisUpdate(X509CRL crl) static intgetValidityInDays(long end, long start) static intgetValidityInDays(X509Certificate certificate) static intgetValidityInDaysBeforeSC31(X509Certificate certificate) static intgetValidityInDaysBeforeSC31(ZonedDateTime end, ZonedDateTime start) static intgetValidityInMonths(X509Certificate certificate) static intgetValidityInMonths(ZonedDateTime end, ZonedDateTime start) static intgetValidityInMonthsBeforeSC31(X509Certificate certificate) static intgetValidityInMonthsBeforeSC31(ZonedDateTime end, ZonedDateTime start) static booleanisIssuedBefore(X509Certificate certificate, ZonedDateTime date) static booleanisIssuedOnOrAfter(X509Certificate certificate, ZonedDateTime date) static booleanisIssuedOnOrAfter(X509CRL crl, ZonedDateTime date) static booleanisIssuedOnOrAfter(ZonedDateTime time, ZonedDateTime referenceDate) static booleanisProducedOnOrAfter(org.bouncycastle.asn1.ocsp.OCSPResponse ocspResponse, ZonedDateTime date)
-
Field Details
-
UTC
- See Also:
-
NUMBER_OF_SECONDS_IN_DAY
public static final long NUMBER_OF_SECONDS_IN_DAY- See Also:
-
-
Method Details
-
isIssuedOnOrAfter
-
isIssuedOnOrAfter
-
isIssuedOnOrAfter
-
isProducedOnOrAfter
public static boolean isProducedOnOrAfter(org.bouncycastle.asn1.ocsp.OCSPResponse ocspResponse, ZonedDateTime date) -
isIssuedBefore
-
expiresBefore
-
expiresOnOrAfter
-
expiresAfter
-
getNotBefore
-
getThisUpdate
-
getProducedAt
-
getNotAfter
-
getValidityInDays
-
getValidityInDaysBeforeSC31
-
getValidityInMonths
-
getValidityInMonthsBeforeSC31
-
getValidityInDays
public static int getValidityInDays(long end, long start) -
getValidityInDaysBeforeSC31
-
getValidityInMonths
-
getValidityInMonthsBeforeSC31
-