Class LegacyDispatcher
java.lang.Object
org.codehaus.plexus.components.secdispatcher.internal.dispatchers.LegacyDispatcher
- All Implemented Interfaces:
Dispatcher
,DispatcherMeta
@Singleton
@Named("legacy")
public class LegacyDispatcher
extends Object
implements Dispatcher, DispatcherMeta
This dispatcher is legacy, serves the purpose of migration only. Should not be used.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.codehaus.plexus.components.secdispatcher.Dispatcher
Dispatcher.EncryptPayload
Nested classes/interfaces inherited from interface org.codehaus.plexus.components.secdispatcher.DispatcherMeta
DispatcherMeta.Field
-
Field Summary
-
Constructor Summary
-
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.boolean
isHidden()
Option to hide this instance from users, like for migration or legacy purposes.name()
The name of the dispatcher.validateConfiguration
(Map<String, String> config) Validates dispatcher configuration.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
LegacyDispatcher
@Inject public LegacyDispatcher()
-
-
Method Details
-
isHidden
public boolean isHidden()Description copied from interface:DispatcherMeta
Option to hide this instance from users, like for migration or legacy purposes.- Specified by:
isHidden
in interfaceDispatcherMeta
-
name
Description copied from interface:DispatcherMeta
The name of the dispatcher.- Specified by:
name
in interfaceDispatcherMeta
-
displayName
Description copied from interface:DispatcherMeta
Returns the display (human) name of the dispatcher.- Specified by:
displayName
in interfaceDispatcherMeta
-
fields
Description copied from interface:DispatcherMeta
Returns the configuration fields of the dispatcher.- Specified by:
fields
in interfaceDispatcherMeta
-
encrypt
public Dispatcher.EncryptPayload encrypt(String str, Map<String, String> attributes, Map<String, throws SecDispatcherExceptionString> config) Description copied from interface:Dispatcher
Encrypt given plaintext string. Implementation must return at least same attributes it got, but may add more attributes to returned payload.- Specified by:
encrypt
in interfaceDispatcher
- Parameters:
str
- string to encrypt, nevernull
attributes
- attributes, nevernull
config
- 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:Dispatcher
Decrypt given encrypted string.- Specified by:
decrypt
in interfaceDispatcher
- Parameters:
str
- string to decrypt, nevernull
attributes
- attributes, nevernull
config
- configuration from settings-security.xml, nevernull
- Returns:
- decrypted string
- Throws:
SecDispatcherException
-
validateConfiguration
Description copied from interface:Dispatcher
Validates dispatcher configuration.- Specified by:
validateConfiguration
in interfaceDispatcher
-