Class OnePasswordCliMasterSource
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.OnePasswordCliMasterSource
- All Implemented Interfaces:
MasterSource
,MasterSourceMeta
@Singleton
@Named("onepassword")
public final class OnePasswordCliMasterSource
extends PrefixMasterSourceSupport
implements MasterSourceMeta
Password source that uses 1Password CLI with its
read command to retrieve passwords from
1Password vaults.
Config: onepassword:$SECRET_REFERENCE_URI
.
The secret reference URI format is outlined at Secret Reference Syntax.
- 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 String
protected SecDispatcher.ValidationResponse
doValidateConfiguration
(String transformed) execute1PasswordCli
(Collection<String> arguments, int timeoutSeconds) Methods inherited from class org.codehaus.plexus.components.secdispatcher.internal.sources.MasterSourceSupport
handle, validateConfiguration
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
OnePasswordCliMasterSource
public OnePasswordCliMasterSource()
-
-
Method Details
-
description
Description copied from interface:MasterSourceMeta
String describing what this source does.- Specified by:
description
in interfaceMasterSourceMeta
-
configTemplate
Description copied from interface:MasterSourceMeta
Optional "config template" that may serve as basis to configure this master source. The template cannot be "reused" as is as configuration.- Specified by:
configTemplate
in interfaceMasterSourceMeta
-
doHandle
- Specified by:
doHandle
in classMasterSourceSupport
- Throws:
SecDispatcherException
-
doValidateConfiguration
- Specified by:
doValidateConfiguration
in classMasterSourceSupport
-
execute1PasswordCli
public String execute1PasswordCli(Collection<String> arguments, int timeoutSeconds) throws IOException - Throws:
IOException
-