Module org.github.gestalt.git
Class GitModuleConfigBuilder
- java.lang.Object
-
- org.github.gestalt.config.git.builder.GitModuleConfigBuilder
-
public final class GitModuleConfigBuilder extends java.lang.ObjectBuilder for creating Git specific configuration. You can either specify the CredentialsProvider or SshSessionFactory.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GitModuleConfigbuild()static GitModuleConfigBuilderbuilder()Create a builder to create the Google config.org.eclipse.jgit.transport.CredentialsProvidergetCredentials()Get the credentials.org.eclipse.jgit.transport.SshSessionFactorygetSshSessionFactory()Get the SshSessionFactory.GitModuleConfigBuildersetCredentials(org.eclipse.jgit.transport.CredentialsProvider credentials)Sets the credentials.GitModuleConfigBuildersetSshSessionFactory(org.eclipse.jgit.transport.SshSessionFactory sshSessionFactory)Set the SshSessionFactory.
-
-
-
Method Detail
-
builder
public static GitModuleConfigBuilder builder()
Create a builder to create the Google config.- Returns:
- a builder to create the Google config.
-
getCredentials
public org.eclipse.jgit.transport.CredentialsProvider getCredentials()
Get the credentials.- Returns:
- the credentials.
-
setCredentials
public GitModuleConfigBuilder setCredentials(org.eclipse.jgit.transport.CredentialsProvider credentials)
Sets the credentials.- Parameters:
credentials- the credentials.- Returns:
- the builder
-
getSshSessionFactory
public org.eclipse.jgit.transport.SshSessionFactory getSshSessionFactory()
Get the SshSessionFactory.- Returns:
- the SshSessionFactory
-
setSshSessionFactory
public GitModuleConfigBuilder setSshSessionFactory(org.eclipse.jgit.transport.SshSessionFactory sshSessionFactory)
Set the SshSessionFactory.- Parameters:
sshSessionFactory- the SshSessionFactory- Returns:
- the builder.
-
build
public GitModuleConfig build()
-
-