X509UsernameRetriever (Apache Tomcat 10.1.48 API Documentation)
Description: declaration: package: org.apache.catalina.realm, interface: X509UsernameRetriever

# Interface X509UsernameRetriever

All Known Implementing Classes:
  `X509SubjectDnRetriever`

public interface X509UsernameRetriever
Provides an interface for retrieving a username from an X509Certificate.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getUsername(X509Certificate cert)`
  Gets a username from an X509Certificate.

- ## Method Details

  - ### getUsername

    String getUsername(X509Certificate cert)
    Gets a username from an X509Certificate.
    Parameters:
      `cert` - The certificate containing the username.
    Returns:
      An appropriate username obtained from one or more fields in the certificate.