Class CertificateCredentialsImpl
java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl
- All Implemented Interfaces:
CertificateCredentials,IdCredentials,PasswordCredentials,StandardCertificateCredentials,StandardCredentials,Credentials,ExtensionPoint,Describable<Credentials>,Serializable
public class CertificateCredentialsImpl
extends BaseStandardCredentials
implements StandardCertificateCredentials
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOur descriptor.static classRepresents a source of aKeyStore.static classThe base class for allCertificateCredentialsImpl.KeyStoreSourceDescriptorinstances.static classA user entered PEM encoded certificate chain and key.static classLet the user reference an uploaded PKCS12 file.Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
BaseStandardCredentials.BaseStandardCredentialsDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
IdCredentials.HelpersNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCertificateCredentials
StandardCertificateCredentials.NameProviderNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
StandardCredentials.NameProvider -
Constructor Summary
ConstructorsConstructorDescriptionCertificateCredentialsImpl(CredentialsScope scope, String id, String description, String password, CertificateCredentialsImpl.KeyStoreSource keyStoreSource) Our constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns theKeyStorecontaining the certificate.Returns the source of thegetKeyStore().Returns the password used to protect the certificate's private key ingetKeyStore().booleanWhether there is actually a password protecting the certificate's private key ingetKeyStore().Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCodeMethods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScopeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScopeMethods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
getIdMethods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
getDescription
-
Constructor Details
-
CertificateCredentialsImpl
@DataBoundConstructor public CertificateCredentialsImpl(@CheckForNull CredentialsScope scope, @CheckForNull String id, @CheckForNull String description, @CheckForNull String password, @NonNull CertificateCredentialsImpl.KeyStoreSource keyStoreSource) Our constructor.- Parameters:
scope- the scope.id- the id.description- the description.password- the password.keyStoreSource- the source of the keystore that holds the certificate.
-
-
Method Details
-
getKeyStore
Returns theKeyStorecontaining the certificate.- Specified by:
getKeyStorein interfaceCertificateCredentials- Returns:
- the
KeyStorecontaining the certificate.
-
getPassword
Returns the password used to protect the certificate's private key ingetKeyStore().- Specified by:
getPasswordin interfacePasswordCredentials- Returns:
- the password used to protect the certificate's private key in
getKeyStore().
-
isPasswordEmpty
public boolean isPasswordEmpty()Whether there is actually a password protecting the certificate's private key ingetKeyStore().- Returns:
trueif there is a password protecting the certificate's private key ingetKeyStore().
-
getKeyStoreSource
Returns the source of thegetKeyStore().- Returns:
- the source of the
getKeyStore().
-