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 Details

    • KeyStoreSource

      public KeyStoreSource()
  • Method Details

    • getKeyStoreBytes

      @NonNull @Deprecated(forRemoval=true) public byte[] 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 a System.currentTimeMillis() comparable timestamp of when the content was last modified. Used to track refreshing the CertificateCredentialsImpl.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 memory KeyStore created from the source.
      Returns:
      The KeyStore content of the KeyStore.
      Throws:
      GeneralSecurityException - if there was an issue creating the KeyStore
      IOException - if there was an IOException whilst creating the KeyStore
    • isSnapshotSource

      @Deprecated public boolean isSnapshotSource()
      Deprecated.
      No longer need to distinguish snapshot sources.
      Returns true if and only if the source is self contained.
      Returns:
      true if and only if the source is self contained.
      Since:
      1.14