Package org.apache.solr.security.cert
Interface CertPrincipalResolver
-
- All Known Implementing Classes:
PathBasedCertPrincipalResolver
public interface CertPrincipalResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PrincipalresolvePrincipal(X509Certificate certificate)Resolves aPrincipalfrom the given X509 certificate.
-
-
-
Method Detail
-
resolvePrincipal
Principal resolvePrincipal(X509Certificate certificate) throws SSLPeerUnverifiedException, CertificateParsingException
Resolves aPrincipalfrom the given X509 certificate.This method is intended to extract principal information, such as a common name (CN) or an email address, from the specified certificate and encapsulate it into a
Principalobject. The specific field or attribute of the certificate to be used as the principal, and the logic for its extraction, is defined by the implementation.- Parameters:
certificate- The X509Certificate from which to resolve the principal.- Returns:
- A
Principalobject representing the resolved principal from the certificate. - Throws:
SSLPeerUnverifiedException- If the peer's identity has not been verified.CertificateParsingException- If an error occurs while parsing the certificate for principal information.
-
-