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
-
Constructor Summary
-
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) 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: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
-