hudson.scm
Class UserProvidedCredential

java.lang.Object
  extended by hudson.scm.UserProvidedCredential
All Implemented Interfaces:
java.io.Closeable

public class UserProvidedCredential
extends java.lang.Object
implements java.io.Closeable

Represents the SVN authentication credential given by the user via the <enterCredential> form fragment.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 class UserProvidedCredential.AuthenticationManagerImpl
          ISVNAuthenticationManager that uses the user provided credential.
 
Constructor Summary
UserProvidedCredential(java.lang.String username, java.lang.String password, java.io.File keyFile)
           
 
Method Summary
 void close()
           
static UserProvidedCredential fromForm(org.kohsuke.stapler.StaplerRequest req, hudson.util.MultipartFormDataParser parser)
          Parses the credential information from a form submission.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProvidedCredential

public UserProvidedCredential(java.lang.String username,
                              java.lang.String password,
                              java.io.File keyFile)
Method Detail

fromForm

public static UserProvidedCredential fromForm(org.kohsuke.stapler.StaplerRequest req,
                                              hudson.util.MultipartFormDataParser parser)
                                       throws java.io.IOException
Parses the credential information from a form submission.

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.