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
Constructors Constructor Description NameProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.cloudbees.plugins.credentials.CredentialsNameProvider
name
-
-
-
-
Method Detail
-
getSubjectDN
@CheckForNull public static String getSubjectDN(@NonNull KeyStore keyStore)
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
@NonNull public String getName(@NonNull StandardCertificateCredentials c)
Name the credential.- Specified by:
getName
in classCredentialsNameProvider<StandardCertificateCredentials>
- Parameters:
c
- the credential to name.- Returns:
- the name.
-
-