Class MasterSourceLookupDispatcher
java.lang.Object
org.codehaus.plexus.components.secdispatcher.internal.dispatchers.MasterSourceLookupDispatcher
- All Implemented Interfaces:
Dispatcher,DispatcherMeta
@Singleton
@Named("masterSourceLookup")
public class MasterSourceLookupDispatcher
extends Object
implements Dispatcher, DispatcherMeta
This dispatcher does not actually perform any crypto operations, but just forwards the string to be decrypted
to a
MasterSource. The given string is supposed to contain a valid source reference which is resolvable
by one of the bound MasterSource implementations (and not actually an encrypted value).
This dispatcher doesn't support encryption, but just validates and returns the given master source reference.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.codehaus.plexus.components.secdispatcher.Dispatcher
Dispatcher.EncryptPayloadNested classes/interfaces inherited from interface org.codehaus.plexus.components.secdispatcher.DispatcherMeta
DispatcherMeta.Field -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDecrypt given encrypted string.Returns the display (human) name of the dispatcher.Encrypt given plaintext string.fields()Returns the configuration fields of the dispatcher.name()The name of the dispatcher.validateConfiguration(Map<String, String> config) Validates dispatcher configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.plexus.components.secdispatcher.DispatcherMeta
isHidden
-
Field Details
-
NAME
- See Also:
-
sources
-
-
Constructor Details
-
MasterSourceLookupDispatcher
-
-
Method Details
-
name
Description copied from interface:DispatcherMetaThe name of the dispatcher.- Specified by:
namein interfaceDispatcherMeta
-
displayName
Description copied from interface:DispatcherMetaReturns the display (human) name of the dispatcher.- Specified by:
displayNamein interfaceDispatcherMeta
-
fields
Description copied from interface:DispatcherMetaReturns the configuration fields of the dispatcher.- Specified by:
fieldsin interfaceDispatcherMeta
-
encrypt
public Dispatcher.EncryptPayload encrypt(String str, Map<String, String> attributes, Map<String, throws SecDispatcherExceptionString> config) Description copied from interface:DispatcherEncrypt given plaintext string. Implementation must return at least same attributes it got, but may add more attributes to returned payload.- Specified by:
encryptin interfaceDispatcher- Parameters:
str- string to encrypt, nevernullattributes- attributes, nevernullconfig- configuration from settings-security.xml, nevernull- Returns:
- encrypted string and attributes in
Dispatcher.EncryptPayload - Throws:
SecDispatcherException
-
decrypt
public String decrypt(String str, Map<String, String> attributes, Map<String, throws SecDispatcherExceptionString> config) Description copied from interface:DispatcherDecrypt given encrypted string.- Specified by:
decryptin interfaceDispatcher- Parameters:
str- string to decrypt, nevernullattributes- attributes, nevernullconfig- configuration from settings-security.xml, nevernull- Returns:
- decrypted string
- Throws:
SecDispatcherException
-
validateConfiguration
Description copied from interface:DispatcherValidates dispatcher configuration.- Specified by:
validateConfigurationin interfaceDispatcher
-