public class DefaultPrincipalExtractor extends Object implements PrincipalExtractor
PrincipalExtractor.Type| Constructor and Description |
|---|
DefaultPrincipalExtractor() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public String extractPrincipal(X509Certificate x509Certificate, PrincipalExtractor.Type type)
PrincipalExtractorextractPrincipal in interface PrincipalExtractorx509Certificate - The first X509 certificate in the peer certificate chain
This can be null, in this case the method must also return null.null in case where x509Certificate is null
or the principal cannot be extracted because of any other circumstances.Copyright © 2015-2017. All Rights Reserved.