public final class FileCredentialsImpl extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials implements FileCredentials
Modifier and Type | Class and Description |
---|---|
static class |
FileCredentialsImpl.DescriptorImpl |
FileCredentials.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, hashCode
getDescriptor, getScope
clone, 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
IOException
public String getFileName()
FileCredentials
private-keys.zip
or keystore
.getFileName
in interface FileCredentials
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public String getData()
public InputStream getContent() throws IOException
FileCredentials
getContent
in interface FileCredentials
IOException
- if the data cannot be loadedCopyright © 2004-2013. All Rights Reserved.