Package org.omegat.core.team2.impl
Class GITCredentialsProvider
- java.lang.Object
-
- org.eclipse.jgit.transport.CredentialsProvider
-
- org.omegat.core.team2.impl.GITCredentialsProvider
-
public class GITCredentialsProvider extends org.eclipse.jgit.transport.CredentialsProvider
Git repository credentials provider. One credential provider created for all git instances.Git supports these protocols:
- file://
- ssh://
- git://
- https://
- See Also:
- JGit Authentication Explained, matez blog
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GITCredentialsProvider.Credentials
-
Constructor Summary
Constructors Constructor Description GITCredentialsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
get(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialItem... items)
boolean
isInteractive()
void
reset(org.eclipse.jgit.transport.URIish uri)
void
setPredefinedCredentials(java.lang.String url, java.lang.String predefinedUser, java.lang.String predefinedPass, java.lang.String predefinedFingerprint)
void
setTeamSettings(ProjectTeamSettings teamSettings)
boolean
supports(org.eclipse.jgit.transport.CredentialItem... items)
-
-
-
Method Detail
-
setTeamSettings
public void setTeamSettings(ProjectTeamSettings teamSettings)
-
setPredefinedCredentials
public void setPredefinedCredentials(java.lang.String url, java.lang.String predefinedUser, java.lang.String predefinedPass, java.lang.String predefinedFingerprint)
-
get
public boolean get(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialItem... items) throws org.eclipse.jgit.errors.UnsupportedCredentialItem
- Specified by:
get
in classorg.eclipse.jgit.transport.CredentialsProvider
- Throws:
org.eclipse.jgit.errors.UnsupportedCredentialItem
-
isInteractive
public boolean isInteractive()
- Specified by:
isInteractive
in classorg.eclipse.jgit.transport.CredentialsProvider
-
supports
public boolean supports(org.eclipse.jgit.transport.CredentialItem... items)
- Specified by:
supports
in classorg.eclipse.jgit.transport.CredentialsProvider
-
reset
public void reset(org.eclipse.jgit.transport.URIish uri)
- Overrides:
reset
in classorg.eclipse.jgit.transport.CredentialsProvider
-
-