hudson.scm
Class UserProvidedCredential
java.lang.Object
hudson.scm.UserProvidedCredential
- All Implemented Interfaces:
- Closeable
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
|
Field Summary |
hudson.model.AbstractProject |
inContextOf
If non-null, this credential is submitted primarily to be used with this project. |
|
Constructor Summary |
UserProvidedCredential(String username,
String password,
File keyFile)
Deprecated. as of 1.18
Use UserProvidedCredential(String, String, File, AbstractProject) |
UserProvidedCredential(String username,
String password,
File keyFile,
hudson.model.AbstractProject inContextOf)
|
UserProvidedCredential(String username,
String password,
File keyFile,
Boolean overrideGlobal,
hudson.model.AbstractProject inContextOf)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inContextOf
public final hudson.model.AbstractProject inContextOf
- If non-null, this credential is submitted primarily to be used with this project.
This actually doesn't prevent Hudson from trying it with other projects.
UserProvidedCredential
public UserProvidedCredential(String username,
String password,
File keyFile)
- Deprecated. as of 1.18
Use
UserProvidedCredential(String, String, File, AbstractProject)
UserProvidedCredential
public UserProvidedCredential(String username,
String password,
File keyFile,
hudson.model.AbstractProject inContextOf)
UserProvidedCredential
public UserProvidedCredential(String username,
String password,
File keyFile,
Boolean overrideGlobal,
hudson.model.AbstractProject inContextOf)
getOverrideGlobal
public Boolean getOverrideGlobal()
fromForm
public static UserProvidedCredential fromForm(org.kohsuke.stapler.StaplerRequest req,
hudson.util.MultipartFormDataParser parser)
throws IOException
- Parses the credential information from a form submission.
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable
- Throws:
IOException
Copyright © 2004-2012 Hudson. All Rights Reserved.