Package hudson.scm
Class SubversionCredentialProvider
- java.lang.Object
-
- hudson.scm.SubversionCredentialProvider
-
- All Implemented Interfaces:
ExtensionPoint
public abstract class SubversionCredentialProvider extends Object implements ExtensionPoint
Extension point for programmatically providing a credential (such as username/password) for Subversion access.Put
Extension
on your implementation to have it registered.- Since:
- 1.301
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SubversionCredentialProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<SubversionCredentialProvider>
all()
All regsitered instances.abstract SubversionSCM.DescriptorImpl.Credential
getCredential(org.tmatesoft.svn.core.SVNURL url, String realm)
Called whenever Jenkins needs to connect to an authenticated subversion repository, to obtain a credential.
-
-
-
Method Detail
-
getCredential
public abstract SubversionSCM.DescriptorImpl.Credential getCredential(org.tmatesoft.svn.core.SVNURL url, String realm)
Called whenever Jenkins needs to connect to an authenticated subversion repository, to obtain a credential.- Parameters:
realm
- This is a non-null string that represents the realm of authentication.url
- URL that is being accessed. Never null.- Returns:
- null if the implementation doesn't understand the given realm. When null is returned, Jenkins searches other sources of credentials to come up with one.
-
all
public static ExtensionList<SubversionCredentialProvider> all()
All regsitered instances.
-
-