Class MasterSourceSupport
java.lang.Object
org.codehaus.plexus.components.secdispatcher.internal.sources.MasterSourceSupport
- All Implemented Interfaces:
MasterSource
- Direct Known Subclasses:
PrefixMasterSourceSupport
Master password source support class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
protected abstract SecDispatcher.ValidationResponse
doValidateConfiguration
(String transformed) Handles the config to get master password.validateConfiguration
(String masterSource) Validates master source configuration.
-
Constructor Details
-
MasterSourceSupport
-
-
Method Details
-
handle
Description copied from interface:MasterSource
Handles the config to get master password. Implementation may do one of the following things:- if the config cannot be handled by given source, return
null
- otherwise, if master password retrieval based on config was attempted but failed, throw
SecDispatcherException
- happy path: return the master password.
- Specified by:
handle
in interfaceMasterSource
- Parameters:
masterSource
- the source of master password, and opaque string.- Returns:
- the master password, or
null
if implementation does not handle this config - Throws:
SecDispatcherException
- If implementation does handle this masterSource, but cannot obtain master password
- if the config cannot be handled by given source, return
-
doHandle
- Throws:
SecDispatcherException
-
validateConfiguration
Description copied from interface:MasterSource
Validates master source configuration.- if the config cannot be handled by given source, return
null
- otherwise, implementation performs validation and returns non-
null
validation response
- Specified by:
validateConfiguration
in interfaceMasterSource
- if the config cannot be handled by given source, return
-
doValidateConfiguration
-