Class GitCredentialHelperMasterSource
java.lang.Object
org.codehaus.plexus.components.secdispatcher.internal.sources.MasterSourceSupport
org.codehaus.plexus.components.secdispatcher.internal.sources.PrefixMasterSourceSupport
org.codehaus.plexus.components.secdispatcher.internal.sources.GitCredentialHelperMasterSource
- All Implemented Interfaces:
MasterSource, MasterSourceMeta
@Singleton
@Named("git-credential")
public final class GitCredentialHelperMasterSource
extends PrefixMasterSourceSupport
implements MasterSourceMeta
Password source that uses Git Credential Helpers.
Git credential helpers have a common interface for retrieving credentials. This master source allows using any git credential helper to retrieve passwords.
Config: git-credential:helper-name?url=protocol://host/path
Examples:
git-credential:cache?url=https://maven.apache.org/mastergit-credential:store?url=https://maven.apache.org/mastergit-credential:/usr/local/bin/git-credential-osxkeychain?url=https://maven.apache.org/master
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional "config template" that may serve as basis to configure this master source.String describing what this source does.protected Stringprotected SecDispatcher.ValidationResponsedoValidateConfiguration(String transformed) Methods inherited from class MasterSourceSupport
handle, validateConfiguration
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
GitCredentialHelperMasterSource
public GitCredentialHelperMasterSource()
-
-
Method Details
-
description
Description copied from interface:MasterSourceMetaString describing what this source does.- Specified by:
descriptionin interfaceMasterSourceMeta
-
configTemplate
Description copied from interface:MasterSourceMetaOptional "config template" that may serve as basis to configure this master source. The template cannot be "reused" as is as configuration.- Specified by:
configTemplatein interfaceMasterSourceMeta
-
doHandle
- Specified by:
doHandlein classMasterSourceSupport- Throws:
SecDispatcherException
-
doValidateConfiguration
- Specified by:
doValidateConfigurationin classMasterSourceSupport
-