public class GitCredentialsProviderFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
awsCodeCommitEnabled
Enable the AWS Code Commit credentials provider for Git URI's that match the AWS
Code Commit pattern of
https://git-codecommit.${AWS_REGION}.amazonaws.com/${repoPath}.
|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
GitCredentialsProviderFactory() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.jgit.transport.CredentialsProvider |
createFor(String uri,
String username,
String password,
String passphrase)
Deprecated.
in favour of
createFor(String, String, String, String, boolean) |
org.eclipse.jgit.transport.CredentialsProvider |
createFor(String uri,
String username,
String password,
String passphrase,
boolean skipSslValidation)
Search for a credential provider that will handle the specified URI.
|
boolean |
isAwsCodeCommitEnabled() |
void |
setAwsCodeCommitEnabled(boolean awsCodeCommitEnabled) |
protected org.apache.commons.logging.Log logger
protected boolean awsCodeCommitEnabled
@Deprecated public org.eclipse.jgit.transport.CredentialsProvider createFor(String uri, String username, String password, String passphrase)
createFor(String, String, String, String, boolean)
uri
- the URI of the repository (cannot be null)username
- the username provided for the repository (may be null)password
- the password provided for the repository (may be null)passphrase
- the passphrase to unlock the ssh private key (may be null)public org.eclipse.jgit.transport.CredentialsProvider createFor(String uri, String username, String password, String passphrase, boolean skipSslValidation)
uri
- the URI of the repository (cannot be null)username
- the username provided for the repository (may be null)password
- the password provided for the repository (may be null)passphrase
- the passphrase to unlock the ssh private key (may be null)skipSslValidation
- whether to skip SSL validation when connecting via HTTPSpublic boolean isAwsCodeCommitEnabled()
public void setAwsCodeCommitEnabled(boolean awsCodeCommitEnabled)
awsCodeCommitEnabled
- the awsCodeCommitEnabled to setCopyright © 2019 Pivotal Software, Inc.. All rights reserved.