Class CertificateCredentialsImpl.UploadedKeyStoreSource.Upload

  • Enclosing class:
    CertificateCredentialsImpl.UploadedKeyStoreSource

    @Deprecated
    public static class CertificateCredentialsImpl.UploadedKeyStoreSource.Upload
    extends Object
    Deprecated.
    since 2.4. This is no longer required/supported due to the inlining of the file input. Deprecated for removal soon.
    Stapler binding object to handle a pop-up window for file upload.
    • Constructor Detail

      • Upload

        public Upload​(@NonNull
                      String divId,
                      @CheckForNull
                      SecretBytes uploadedKeystore)
        Deprecated.
        Our constructor.
        Parameters:
        divId - id of the <input> element on the window.opener of the pop-up to inject the uploaded content into.
        uploadedKeystore - the content.
    • Method Detail

      • getDivId

        @NonNull
        public String getDivId()
        Deprecated.
        Gets the id of the <input> element on the window.opener of the pop-up to inject the uploaded content into.
        Returns:
        the id of the <input> element on the window.opener of the pop-up to inject the uploaded content into.
      • getUploadedKeystore

        @CheckForNull
        public SecretBytes getUploadedKeystore()
        Deprecated.
        Returns the content.
        Returns:
        the content.
      • doUpload

        @NonNull
        public org.kohsuke.stapler.HttpResponse doUpload​(@NonNull
                                                         org.kohsuke.stapler.StaplerRequest req)
        Deprecated.
        Performs the actual upload.
        Parameters:
        req - the request.
        Returns:
        the response.