public class CertificateCredentialsImpl extends BaseStandardCredentials implements StandardCertificateCredentials
Modifier and Type | Class and Description |
---|---|
static class |
CertificateCredentialsImpl.DescriptorImpl
Our descriptor.
|
static class |
CertificateCredentialsImpl.FileOnMasterKeyStoreSource
Deprecated.
This approach has security vulnerabilities and should be migrated to
CertificateCredentialsImpl.UploadedKeyStoreSource |
static class |
CertificateCredentialsImpl.KeyStoreSource
Represents a source of a
KeyStore . |
static class |
CertificateCredentialsImpl.KeyStoreSourceDescriptor
The base class for all
CertificateCredentialsImpl.KeyStoreSource Descriptor instances. |
static class |
CertificateCredentialsImpl.UploadedKeyStoreSource
Let the user reference an uploaded file.
|
BaseStandardCredentials.BaseStandardCredentialsDescriptor
StandardCertificateCredentials.NameProvider
IdCredentials.Helpers
Constructor and Description |
---|
CertificateCredentialsImpl(CredentialsScope scope,
String id,
String description,
String password,
CertificateCredentialsImpl.KeyStoreSource keyStoreSource)
Our constructor.
|
Modifier and Type | Method and Description |
---|---|
KeyStore |
getKeyStore()
Returns the
KeyStore containing the certificate. |
CertificateCredentialsImpl.KeyStoreSource |
getKeyStoreSource()
Returns the source of the
getKeyStore() . |
Secret |
getPassword()
Returns the password used to protect the certificate's private key in
getKeyStore() . |
boolean |
isPasswordEmpty()
Whether there is actually a password protecting the certificate's private key in
getKeyStore() . |
equals, getDescription, getId, hashCode
getDescriptor, getScope
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getDescription
getId
@DataBoundConstructor public CertificateCredentialsImpl(@CheckForNull CredentialsScope scope, @CheckForNull String id, @CheckForNull String description, @CheckForNull String password, @NonNull CertificateCredentialsImpl.KeyStoreSource keyStoreSource)
scope
- the scope.id
- the id.description
- the description.password
- the password.keyStoreSource
- the source of the keystore that holds the certificate.@NonNull public KeyStore getKeyStore()
KeyStore
containing the certificate.getKeyStore
in interface CertificateCredentials
KeyStore
containing the certificate.@NonNull public Secret getPassword()
getKeyStore()
.getPassword
in interface PasswordCredentials
getKeyStore()
.public boolean isPasswordEmpty()
getKeyStore()
.true
if there is a password protecting the certificate's private key in getKeyStore()
.public CertificateCredentialsImpl.KeyStoreSource getKeyStoreSource()
getKeyStore()
.getKeyStore()
.Copyright © 2016–2021. All rights reserved.