Class CredentialsProviderImpl
- java.lang.Object
-
- org.eclipse.jgit.transport.CredentialsProvider
-
- org.jenkinsci.plugins.gitclient.jgit.CredentialsProviderImpl
-
public class CredentialsProviderImpl extends org.eclipse.jgit.transport.CredentialsProviderProvides the credential to authenticate Git connection.For HTTP transport we work through
CredentialsProvider, in which case this must be supplied with aStandardUsernamePasswordCredentials. downcastsCredentialsProviderto this class.
-
-
Field Summary
Fields Modifier and Type Field Description com.cloudbees.plugins.credentials.common.StandardUsernameCredentialscredCredential that should be used.
-
Constructor Summary
Constructors Constructor Description CredentialsProviderImpl(com.cloudbees.plugins.credentials.common.StandardUsernameCredentials cred)Constructor for CredentialsProviderImpl.CredentialsProviderImpl(TaskListener listener, com.cloudbees.plugins.credentials.common.StandardUsernameCredentials cred)Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanget(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialItem... items)If username/password is given, use it for HTTP auth.booleanisInteractive()booleansupports(org.eclipse.jgit.transport.CredentialItem... items)If username/password is given, use it for HTTP auth.
-
-
-
Constructor Detail
-
CredentialsProviderImpl
@Deprecated(forRemoval=true, since="4.7.1") public CredentialsProviderImpl(TaskListener listener, com.cloudbees.plugins.credentials.common.StandardUsernameCredentials cred)
Deprecated, for removal: This API element is subject to removal in a future version.Constructor for CredentialsProviderImpl.- Parameters:
listener- aTaskListenerobject.cred- aStandardUsernameCredentialsobject.
-
CredentialsProviderImpl
public CredentialsProviderImpl(com.cloudbees.plugins.credentials.common.StandardUsernameCredentials cred)
Constructor for CredentialsProviderImpl.- Parameters:
cred- aStandardUsernameCredentialsobject.
-
-
Method Detail
-
isInteractive
public boolean isInteractive()
- Specified by:
isInteractivein classorg.eclipse.jgit.transport.CredentialsProvider
-
supports
public boolean supports(org.eclipse.jgit.transport.CredentialItem... items)
If username/password is given, use it for HTTP auth.- Specified by:
supportsin classorg.eclipse.jgit.transport.CredentialsProvider
-
get
public boolean get(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialItem... items) throws org.eclipse.jgit.errors.UnsupportedCredentialItemIf username/password is given, use it for HTTP auth.- Specified by:
getin classorg.eclipse.jgit.transport.CredentialsProvider- Throws:
org.eclipse.jgit.errors.UnsupportedCredentialItem
-
-