Class CertificateCredentialsImpl.FileOnMasterKeyStoreSource
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<CertificateCredentialsImpl.KeyStoreSource>
-
- com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.KeyStoreSource
-
- com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.FileOnMasterKeyStoreSource
-
- All Implemented Interfaces:
Describable<CertificateCredentialsImpl.KeyStoreSource>
- Enclosing class:
- CertificateCredentialsImpl
@Deprecated public static class CertificateCredentialsImpl.FileOnMasterKeyStoreSource extends CertificateCredentialsImpl.KeyStoreSource
Deprecated.This approach has security vulnerabilities and should be migrated toCertificateCredentialsImpl.UploadedKeyStoreSource
Let the user reference a file on the disk.
-
-
Constructor Summary
Constructors Constructor Description FileOnMasterKeyStoreSource(String keyStoreFile)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte[]
getKeyStoreBytes()
Deprecated.Returns thebyte[]
content of theKeyStore
.long
getKeyStoreLastModified()
Deprecated.Returns aSystem.currentTimeMillis()
comparable timestamp of when the content was last modified.String
toString()
Deprecated.-
Methods inherited from class com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.KeyStoreSource
isSnapshotSource
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
FileOnMasterKeyStoreSource
public FileOnMasterKeyStoreSource(String keyStoreFile)
Deprecated.
-
-
Method Detail
-
getKeyStoreBytes
@NonNull public byte[] getKeyStoreBytes()
Deprecated.Returns thebyte[]
content of theKeyStore
.- Specified by:
getKeyStoreBytes
in classCertificateCredentialsImpl.KeyStoreSource
- Returns:
- the
byte[]
content of theKeyStore
.
-
getKeyStoreLastModified
public long getKeyStoreLastModified()
Deprecated.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.- Specified by:
getKeyStoreLastModified
in classCertificateCredentialsImpl.KeyStoreSource
- Returns:
- a
System.currentTimeMillis()
comparable timestamp of when the content was last modified.
-
-