Class X509SubjectDnRetriever

  • All Implemented Interfaces:

    public class X509SubjectDnRetriever
    extends java.lang.Object
    implements X509UsernameRetriever
    An X509UsernameRetriever that returns a certificate's entire SubjectDN as the username.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getUsername​( clientCert)
      Gets a user name from an X509Certificate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • X509SubjectDnRetriever

        public X509SubjectDnRetriever()
    • Method Detail

      • getUsername

        public java.lang.String getUsername​( clientCert)
        Description copied from interface: X509UsernameRetriever
        Gets a user name from an X509Certificate.
        Specified by:
        getUsername in interface X509UsernameRetriever
        clientCert - The certificate containing the user name.
        An appropriate user name obtained from one or more fields in the certificate.