public final class FileCredentialsImpl extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials implements FileCredentials
| Modifier and Type | Class and Description |
|---|---|
static class |
FileCredentialsImpl.DescriptorImpl |
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorFileCredentials.NameProvider| Constructor and Description |
|---|
FileCredentialsImpl(com.cloudbees.plugins.credentials.CredentialsScope scope,
String id,
String description,
org.apache.commons.fileupload.FileItem file,
String fileName,
String data) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent()
Obtains the actual content of the secret file as a bytestream.
|
String |
getData() |
String |
getFileName()
Indicates the intended naming of the secret content.
|
equals, getDescription, getId, hashCodegetDescriptor, getScopeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait@DataBoundConstructor public FileCredentialsImpl(@CheckForNull com.cloudbees.plugins.credentials.CredentialsScope scope, @CheckForNull String id, @CheckForNull String description, @Nonnull org.apache.commons.fileupload.FileItem file, @CheckForNull String fileName, @CheckForNull String data) throws IOException
IOExceptionpublic String getFileName()
FileCredentialsprivate-keys.zip or keystore.getFileName in interface FileCredentials@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public String getData()
public InputStream getContent() throws IOException
FileCredentialsgetContent in interface FileCredentialsIOException - if the data cannot be loadedCopyright © 2016. All rights reserved.