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) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent()
Obtains the actual content of the secret file as a bytestream.
|
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)
throws IOException
IOExceptionpublic String getFileName()
FileCredentialsprivate-keys.zip or keystore.getFileName in interface FileCredentialspublic InputStream getContent() throws IOException
FileCredentialsgetContent in interface FileCredentialsIOException - if the data cannot be loadedCopyright © 2004-2013. All Rights Reserved.