Class FileMasterSource
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.FileMasterSource
- All Implemented Interfaces:
MasterSource,MasterSourceMeta
@Singleton
@Named("file")
public final class FileMasterSource
extends PrefixMasterSourceSupport
implements MasterSourceMeta
Password source that uses a plain file with plaintext master password (residing on things like an encrypted pen-drive
or partition). Idea is to "delegate" all the security to that data carrier (for example, it may ask for permission
or password on access to that path). Not recommended to be used on any unprotected data storage or partition.
Config: file:$fileName
The file may start with "#" for human comments, and first non-commented line (trimmed) will be used as master password.
-
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 org.codehaus.plexus.components.secdispatcher.internal.sources.MasterSourceSupport
handle, validateConfiguration
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
FileMasterSource
public FileMasterSource()
-
-
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
-