Package hudson.scm

Class 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
    • Constructor Detail

      • SubversionCredentialProvider

        public SubversionCredentialProvider()
    • 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.