Package com.github.gastaldi.git
Class CredentialStorageHelper
java.lang.Object
com.github.gastaldi.git.CredentialStorageHelper
public class CredentialStorageHelper
extends java.lang.Object
- Author:
- Lukas Zaruba, lukas.zaruba@gmail.com, 2019
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGIT_STORE_PATH -
Constructor Summary
Constructors Constructor Description CredentialStorageHelper() -
Method Summary
Modifier and Type Method Description voidstoreCredentials(java.nio.file.Path pwd, java.lang.String schema, java.lang.String host, java.lang.String username, java.lang.String password)Stores credentials in the git.store file in the form compatible with https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage
-
Field Details
-
GIT_STORE_PATH
public static final java.lang.String GIT_STORE_PATH- See Also:
- Constant Field Values
-
-
Constructor Details
-
CredentialStorageHelper
public CredentialStorageHelper()
-
-
Method Details
-
storeCredentials
public void storeCredentials(java.nio.file.Path pwd, java.lang.String schema, java.lang.String host, java.lang.String username, java.lang.String password) throws java.io.IOExceptionStores credentials in the git.store file in the form compatible with https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage- Throws:
java.io.IOException
-