hudson.scm
Class SubversionCredentialProvider
java.lang.Object
hudson.scm.SubversionCredentialProvider
- All Implemented Interfaces:
- hudson.ExtensionPoint
public abstract class SubversionCredentialProvider
- extends java.lang.Object
- implements hudson.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 classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubversionCredentialProvider
public SubversionCredentialProvider()
getCredential
public abstract SubversionSCM.DescriptorImpl.Credential getCredential(org.tmatesoft.svn.core.SVNURL url,
java.lang.String realm)
- Called whenever Hudson 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,
Hudson searches other sources of credentials to come up with one.
all
public static hudson.ExtensionList<SubversionCredentialProvider> all()
- All regsitered instances.
Copyright © 2011. All Rights Reserved.