Class StandardCertificateCredentials.NameProvider
java.lang.Object
com.cloudbees.plugins.credentials.CredentialsNameProvider<StandardCertificateCredentials>
com.cloudbees.plugins.credentials.common.StandardCertificateCredentials.NameProvider
- Enclosing interface:
- StandardCertificateCredentials
public static class StandardCertificateCredentials.NameProvider
extends CredentialsNameProvider<StandardCertificateCredentials>
Our name provider.
- Since:
- 1.7
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionName the credential.static String
getSubjectDN
(KeyStore keyStore) Returns the Subject DN of the first key with an x509 certificate in its certificate chain.Methods inherited from class com.cloudbees.plugins.credentials.CredentialsNameProvider
name
-
Constructor Details
-
NameProvider
public NameProvider()
-
-
Method Details
-
getSubjectDN
Returns the Subject DN of the first key with an x509 certificate in its certificate chain.- Parameters:
keyStore
- the keystore.- Returns:
- the subject DN or
null
-
getName
Name the credential.- Specified by:
getName
in classCredentialsNameProvider<StandardCertificateCredentials>
- Parameters:
c
- the credential to name.- Returns:
- the name.
-