Class GitUtil
java.lang.Object
org.apache.maven.scm.provider.git.util.GitUtil
- Author:
- Emmanuel Venisse
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Settingsstatic Filestatic StringmaskPasswordInUrl(String urlWithCredentials) Provides an anonymous output to mask password.static Settingsstatic voidsetSettingsDirectory(File directory)
-
Field Details
-
GIT_SETTINGS_FILENAME
- See Also:
-
DEFAULT_SETTINGS_DIRECTORY
-
PASSWORD_PLACE_HOLDER_WITH_DELIMITERS
The password placeholder must contain delimiters. Otherwise replacing may replace other portions of the URL as well and in worst case passwords could be guessed.- See Also:
-
-
Method Details
-
getSettings
-
readSettings
-
setSettingsDirectory
-
getSettingsFile
-
maskPasswordInUrl
Provides an anonymous output to mask password. Considering URL of type : <<protocol>>://<<user>>:<<password>>@ <<host_definition>>- Parameters:
urlWithCredentials-- Returns:
- urlWithCredentials but password masked with stars
-