public class X509CertSupport extends Object
| Constructor and Description |
|---|
X509CertSupport() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkValidity(X509CertImpl cert)
Checks that the specified date is within the certificate's validity period, or basically if the certificate would
be valid at the specified date/time.
|
static X509CertImpl.EncodedFormat |
parse(X509CertImpl cert) |
static void |
verify(X509CertImpl cert,
PublicKey key) |
public static void checkValidity(X509CertImpl cert) throws CertificateExpiredException, CertificateNotYetValidException
cert - the certificateCertificateExpiredException - if the certificate has expired.CertificateNotYetValidException - if the certificate is not yet valid.public static X509CertImpl.EncodedFormat parse(X509CertImpl cert) throws CertificateException, IOException
CertificateExceptionIOExceptionpublic static void verify(X509CertImpl cert, PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, SignatureException