Class CredentialsProviderImpl
java.lang.Object
org.eclipse.jgit.transport.CredentialsProvider
org.jenkinsci.plugins.gitclient.jgit.CredentialsProviderImpl
public class CredentialsProviderImpl
extends org.eclipse.jgit.transport.CredentialsProvider
Provides the credential to authenticate Git connection.
 
 For HTTP transport we work through CredentialsProvider,
 in which case this must be supplied with a StandardUsernamePasswordCredentials.
 downcasts CredentialsProvider to this class.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal com.cloudbees.plugins.credentials.common.StandardUsernameCredentialsCredential that should be used.
- 
Constructor SummaryConstructorsConstructorDescriptionCredentialsProviderImpl(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 SummaryModifier and TypeMethodDescriptionbooleanget(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialItem... items) If username/password is given, use it for HTTP auth.booleanbooleansupports(org.eclipse.jgit.transport.CredentialItem... items) If username/password is given, use it for HTTP auth.Methods inherited from class org.eclipse.jgit.transport.CredentialsProviderget, getDefault, isAnyNull, reset, setDefault
- 
Field Details- 
credpublic final com.cloudbees.plugins.credentials.common.StandardUsernameCredentials credCredential that should be used.
 
- 
- 
Constructor Details- 
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- a- TaskListenerobject.
- cred- a- StandardUsernameCredentialsobject.
 
- 
CredentialsProviderImplpublic CredentialsProviderImpl(com.cloudbees.plugins.credentials.common.StandardUsernameCredentials cred) Constructor for CredentialsProviderImpl.- Parameters:
- cred- a- StandardUsernameCredentialsobject.
 
 
- 
- 
Method Details- 
isInteractivepublic boolean isInteractive()- Specified by:
- isInteractivein class- org.eclipse.jgit.transport.CredentialsProvider
 
- 
supportspublic boolean supports(org.eclipse.jgit.transport.CredentialItem... items) If username/password is given, use it for HTTP auth.- Specified by:
- supportsin class- org.eclipse.jgit.transport.CredentialsProvider
 
- 
getpublic boolean get(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialItem... items) throws org.eclipse.jgit.errors.UnsupportedCredentialItem If username/password is given, use it for HTTP auth.- Specified by:
- getin class- org.eclipse.jgit.transport.CredentialsProvider
- Throws:
- org.eclipse.jgit.errors.UnsupportedCredentialItem
 
 
- 
CredentialsProviderImpl(StandardUsernameCredentials)