|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.adaptors.x509.util.CertUtils
public final class CertUtils
Utility class with methods to support various operations on X.509 certs.
| Field Summary | |
|---|---|
static String |
X509_CERTIFICATE_TYPE
X509 certificate type. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String X509_CERTIFICATE_TYPE
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||