extractPrincipal
public String extractPrincipal(X509Certificate x509Certificate,
PrincipalExtractor.Type type)
Extract the principal name
Please note that this method gets called for principal extraction of other nodes
as well as transport clients. It's up to the implementer to distinguish between them
and handle them appropriately.
Implementations must be public classes with a default public default constructor.
- Specified by:
extractPrincipal in interface PrincipalExtractor
- Parameters:
x509Certificate - The first X509 certificate in the peer certificate chain
This can be null, in this case the method must also return null.
- Returns:
- The principal as string. This may be
null in case where x509Certificate is null
or the principal cannot be extracted because of any other circumstances.