Package hudson.scm
Class UserProvidedCredential
- java.lang.Object
-
- hudson.scm.UserProvidedCredential
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class UserProvidedCredential extends Object implements Closeable
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
Nested Classes Modifier and Type Class Description class
UserProvidedCredential.AuthenticationManagerImpl
ISVNAuthenticationManager
that uses the user provided credential.
-
Field Summary
Fields Modifier and Type Field Description AbstractProject
inContextOf
If non-null, this credential is submitted primarily to be used with this project.
-
Constructor Summary
Constructors Constructor Description UserProvidedCredential(String username, String password, File keyFile)
Deprecated.UserProvidedCredential(String username, String password, File keyFile, AbstractProject inContextOf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static UserProvidedCredential
fromForm(org.kohsuke.stapler.StaplerRequest req, MultipartFormDataParser parser)
Parses the credential information from a form submission.
-
-
-
Field Detail
-
inContextOf
public final AbstractProject 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.
-
-
Method Detail
-
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
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-