Package hudson.scm
Class UserProvidedCredential
java.lang.Object
hudson.scm.UserProvidedCredential
- All Implemented Interfaces:
Closeable
,AutoCloseable
Represents the SVN authentication credential given by the user via the
<enterCredential>
form fragment.
This is just a value object.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
ISVNAuthenticationManager
that uses the user provided credential. -
Field Summary
Modifier and TypeFieldDescriptionfinal AbstractProject
If non-null, this credential is submitted primarily to be used with this project. -
Constructor Summary
ConstructorDescriptionUserProvidedCredential
(String username, String password, File keyFile) Deprecated.UserProvidedCredential
(String username, String password, File keyFile, AbstractProject inContextOf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static UserProvidedCredential
fromForm
(org.kohsuke.stapler.StaplerRequest req, MultipartFormDataParser parser) Parses the credential information from a form submission.
-
Field Details
-
inContextOf
If non-null, this credential is submitted primarily to be used with this project. This actually doesn't prevent Jenkins from trying it with other projects.
-
-
Constructor Details
-
UserProvidedCredential
Deprecated. -
UserProvidedCredential
public UserProvidedCredential(String username, String password, File keyFile, AbstractProject inContextOf)
-
-
Method Details
-
fromForm
public static UserProvidedCredential fromForm(org.kohsuke.stapler.StaplerRequest req, MultipartFormDataParser parser) throws IOException Parses the credential information from a form submission.- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
UserProvidedCredential(String, String, File, AbstractProject)