Class CertificateCredentialsImpl.KeyStoreSourceDescriptor

java.lang.Object
hudson.model.Descriptor<CertificateCredentialsImpl.KeyStoreSource>
com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.KeyStoreSourceDescriptor
All Implemented Interfaces:
Saveable, OnMaster
Direct Known Subclasses:
CertificateCredentialsImpl.UploadedKeyStoreSource.DescriptorImpl
Enclosing class:
CertificateCredentialsImpl

public abstract static class CertificateCredentialsImpl.KeyStoreSourceDescriptor extends Descriptor<CertificateCredentialsImpl.KeyStoreSource>
The base class for all CertificateCredentialsImpl.KeyStoreSource Descriptor instances.
  • Constructor Details

  • Method Details

    • validateCertificateKeystore

      @NonNull protected static FormValidation validateCertificateKeystore(String type, byte[] keystoreBytes, String password)
      Helper method that performs form validation on a KeyStore.
      Parameters:
      type - the type of keystore to instantiate, see KeyStore.getInstance(String).
      keystoreBytes - the byte[] content of the KeyStore.
      password - the password to use when loading the KeyStore and recovering the key from the KeyStore.
      Returns:
      the validation results.