public static class StandardCertificateCredentials.NameProvider extends CredentialsNameProvider<StandardCertificateCredentials>
Constructor and Description |
---|
NameProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getName(StandardCertificateCredentials c)
Name the credential.
|
static String |
getSubjectDN(KeyStore keyStore)
Returns the Subject DN of the first key with an x509 certificate in its certificate chain.
|
name
@CheckForNull public static String getSubjectDN(@NonNull KeyStore keyStore)
keyStore
- the keystore.null
@NonNull public String getName(@NonNull StandardCertificateCredentials c)
getName
in class CredentialsNameProvider<StandardCertificateCredentials>
c
- the credential to name.Copyright © 2016–2021. All rights reserved.