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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Stringprotected abstract SecDispatcher.ValidationResponsedoValidateConfiguration(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:MasterSourceHandles 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:
handlein interfaceMasterSource- Parameters:
masterSource- the source of master password, and opaque string.- Returns:
- the master password, or
nullif 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:MasterSourceValidates master source configuration.- if the config cannot be handled by given source, return
null - otherwise, implementation performs validation and returns non-
nullvalidation response
- Specified by:
validateConfigurationin interfaceMasterSource
- if the config cannot be handled by given source, return
-
doValidateConfiguration
-