public final class CRLUtils extends Object
Constructor and Description |
---|
CRLUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
check(X509Certificate[] certs,
X509CRL crl,
KeycloakSession session)
Check the signature on CRL and check if 1st certificate from the chain ((The actual certificate from the client)) is valid and not available on CRL.
|
static List<String> |
getCRLDistributionPoints(X509Certificate cert)
Retrieves a list of CRL distribution points from CRLDP v3 certificate extension
See CRL validation
|
public static List<String> getCRLDistributionPoints(X509Certificate cert) throws IOException
cert
- IOException
public static void check(X509Certificate[] certs, X509CRL crl, KeycloakSession session) throws GeneralSecurityException
certs
- The 1st certificate is the actual certificate of the user. The other certificates represents the certificate chaincrl
- Given CRLGeneralSecurityException
- if some error in validation happens. Typically certificate not valid, or CRL signature not validCopyright © 2021 JBoss by Red Hat. All rights reserved.