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
-
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 long
Returns aSystem.currentTimeMillis()
comparable timestamp of when the content was last modified.boolean
Deprecated.No longer need to distinguish snapshot sources.abstract KeyStore
toKeyStore
(char[] password) Returns an in memoryKeyStore
created 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.keyStore
cache 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 memoryKeyStore
created 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.Returnstrue
if and only if the source is self contained.- Returns:
true
if and only if the source is self contained.- Since:
- 1.14
-