Class CertificateCredentialsImpl.KeyStoreSource
java.lang.Object
hudson.model.AbstractDescribableImpl<CertificateCredentialsImpl.KeyStoreSource>
com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.KeyStoreSource
- All Implemented Interfaces:
Describable<CertificateCredentialsImpl.KeyStoreSource>
- Direct Known Subclasses:
CertificateCredentialsImpl.PEMEntryKeyStoreSource,CertificateCredentialsImpl.UploadedKeyStoreSource
- Enclosing class:
CertificateCredentialsImpl
public abstract static class CertificateCredentialsImpl.KeyStoreSource
extends AbstractDescribableImpl<CertificateCredentialsImpl.KeyStoreSource>
Represents a source of a
KeyStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Deprecated, for removal: This API element is subject to removal in a future version.code should neither implement nor call this.abstract longReturns aSystem.currentTimeMillis()comparable timestamp of when the content was last modified.booleanDeprecated.No longer need to distinguish snapshot sources.abstract KeyStoretoKeyStore(char[] password) Returns an in memoryKeyStorecreated from the source.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
KeyStoreSource
public KeyStoreSource()
-
-
Method Details
-
getKeyStoreBytes
Deprecated, for removal: This API element is subject to removal in a future version.code should neither implement nor call this. This is an internal representation of a KeyStore and use of this internal representation would require knowledge of the keystore type.- Throws:
IllegalStateException- always- See Also:
-
getKeyStoreLastModified
public abstract long getKeyStoreLastModified()Returns aSystem.currentTimeMillis()comparable timestamp of when the content was last modified. Used to track refreshing theCertificateCredentialsImpl.keyStorecache for sources that pull from an external source.- Returns:
- a
System.currentTimeMillis()comparable timestamp of when the content was last modified.
-
toKeyStore
@NonNull public abstract KeyStore toKeyStore(@Nullable char[] password) throws GeneralSecurityException, IOException Returns an in memoryKeyStorecreated from the source.- Returns:
- The KeyStore content of the
KeyStore. - Throws:
GeneralSecurityException- if there was an issue creating the KeyStoreIOException- if there was an IOException whilst creating the KeyStore
-
isSnapshotSource
Deprecated.No longer need to distinguish snapshot sources.Returnstrueif and only if the source is self contained.- Returns:
trueif and only if the source is self contained.- Since:
- 1.14
-