Interface Dispatcher
- All Known Implementing Classes:
LegacyDispatcher,MasterDispatcher,MasterSourceLookupDispatcher
public interface Dispatcher
Dispatcher.
- Version:
- $Id$
- Author:
- Oleg Gusakov
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThe "encrypt payload" prepared by dispatcher. -
Method Summary
Modifier and TypeMethodDescriptionDecrypt given encrypted string.Encrypt given plaintext string.validateConfiguration(Map<String, String> config) Validates dispatcher configuration.
-
Method Details
-
encrypt
Dispatcher.EncryptPayload encrypt(String str, Map<String, String> attributes, Map<String, throws SecDispatcherExceptionString> config) Encrypt given plaintext string. Implementation must return at least same attributes it got, but may add more attributes to returned payload.- 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
String decrypt(String str, Map<String, String> attributes, Map<String, throws SecDispatcherExceptionString> config) Decrypt given encrypted string.- Parameters:
str- string to decrypt, nevernullattributes- attributes, nevernullconfig- configuration from settings-security.xml, nevernull- Returns:
- decrypted string
- Throws:
SecDispatcherException
-
validateConfiguration
Validates dispatcher configuration.
-