public static class CertificateCredentialsImpl.UploadedKeyStoreSource.Upload extends Object
Constructor and Description |
---|
Upload(String divId,
SecretBytes uploadedKeystore)
Our constructor.
|
Modifier and Type | Method and Description |
---|---|
org.kohsuke.stapler.HttpResponse |
doUpload(org.kohsuke.stapler.StaplerRequest req)
Performs the actual upload.
|
String |
getDivId()
Gets the id of the <input> element on the
window.opener of the pop-up to inject the
uploaded content into. |
SecretBytes |
getUploadedKeystore()
Returns the content.
|
public Upload(@NonNull String divId, @CheckForNull SecretBytes uploadedKeystore)
divId
- id of the <input> element on the window.opener
of the
pop-up to inject the uploaded content into.uploadedKeystore
- the content.@NonNull public String getDivId()
window.opener
of the pop-up to inject the
uploaded content into.window.opener
of the pop-up to inject the
uploaded content into.public SecretBytes getUploadedKeystore()
@NonNull public org.kohsuke.stapler.HttpResponse doUpload(@NonNull org.kohsuke.stapler.StaplerRequest req) throws javax.servlet.ServletException, IOException
req
- the request.javax.servlet.ServletException
- if something goes wrong.IOException
- if something goes wrong.Copyright © 2016–2021. All rights reserved.