Class CertificateMetadata
java.lang.Object
io.confluent.security.mtls.CertificateMetadata
Utility class for generating certificate metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionCertificateMetadata(String certificate) CertificateMetadata(X509Certificate certificate) -
Method Summary
Modifier and TypeMethodDescriptionGet the certificate metadata variables for Cert Identity Pool CEL filter evaluation.getCn()Get the CN (Common Name) of the certificate.getDn()Get the subject DN of the certificate.Get the Issuer DN of the certificate (in RFC2253 format).static StringgetIssuerDn(X509CRL crlEntry) Get the Issuer DN of the CRL entry (in RFC2253 format).getSan()Get the subject alternative name of the certificate.static StringgetSerialNumber(X509CRLEntry crlEntry) getSha1()Get the SHA-1 fingerprint of the certificate.getSnid()Get the serial number of the certificate.
-
Constructor Details
-
CertificateMetadata
-
CertificateMetadata
-
-
Method Details
-
getCelVars
Get the certificate metadata variables for Cert Identity Pool CEL filter evaluation. The variables (mapping of key value) include: 1. "DN" subject DN, 2. DN components, including (inclusive): DC, CN, OU, O, STREET, L, ST, C, and UID, 3. "SAN" subject alternative name, 4. "SNID" serial number, and 5. SHA-1 fingerprint. If any of the metadata is not available, the corresponding variable is not included in the result. -
getIssuerDn
Get the Issuer DN of the certificate (in RFC2253 format). -
getDn
Get the subject DN of the certificate. -
getSan
Get the subject alternative name of the certificate. -
getCn
Get the CN (Common Name) of the certificate. -
getSnid
Get the serial number of the certificate. -
getSha1
Get the SHA-1 fingerprint of the certificate. -
getIssuerDn
-
getSerialNumber
-