Package org.apache.catalina.realm
Class X509SubjectDnRetriever
java.lang.Object
org.apache.catalina.realm.X509SubjectDnRetriever
- All Implemented Interfaces:
- X509UsernameRetriever
An X509UsernameRetriever that returns a certificate's entire SubjectDN as the username.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetUsername(X509Certificate clientCert) Gets a user name from an X509Certificate.
- 
Constructor Details- 
X509SubjectDnRetrieverpublic X509SubjectDnRetriever()
 
- 
- 
Method Details- 
getUsernameDescription copied from interface:X509UsernameRetrieverGets a user name from an X509Certificate.- Specified by:
- getUsernamein interface- X509UsernameRetriever
- Parameters:
- clientCert- The certificate containing the user name.
- Returns:
- An appropriate user name obtained from one or more fields in the certificate.
 
 
-