public final class CertUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
X509_CERTIFICATE_TYPE
X509 certificate type.
|
| Modifier and Type | Method and Description |
|---|---|
static X509CRL |
fetchCRL(org.springframework.core.io.Resource resource)
Fetches an X.509 CRL from a resource such as a file or URL.
|
static CertificateFactory |
getCertificateFactory()
Gets a certificate factory for creating X.509 artifacts.
|
static boolean |
isExpired(X509CRL crl)
Determines whether the given CRL is expired by examining the nextUpdate field.
|
static boolean |
isExpired(X509CRL crl,
Date reference)
Determines whether the given CRL is expired by comparing the nextUpdate field
with a given date.
|
static String |
toString(X509Certificate cert)
Creates a unique and human-readable representation of the given certificate.
|
public static final String X509_CERTIFICATE_TYPE
public static boolean isExpired(X509CRL crl)
crl - CRL to examine.public static boolean isExpired(X509CRL crl, Date reference)
crl - CRL to examine.reference - Reference date for comparison.public static X509CRL fetchCRL(org.springframework.core.io.Resource resource) throws CRLException, IOException
resource - Resource descriptor.IOException - On IOErrors.CRLException - On CRL parse errors.public static String toString(X509Certificate cert)
cert - Certificate.public static CertificateFactory getCertificateFactory()
Copyright © 2004-2015 Jasig. All Rights Reserved.