Interface Dispatcher
- All Known Implementing Classes:
LegacyDispatcher
,MasterDispatcher
public interface Dispatcher
Dispatcher.
- Version:
- $Id$
- Author:
- Oleg Gusakov
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
The "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, nevernull
attributes
- attributes, nevernull
config
- 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, nevernull
attributes
- attributes, nevernull
config
- configuration from settings-security.xml, nevernull
- Returns:
- decrypted string
- Throws:
SecDispatcherException
-
validateConfiguration
Validates dispatcher configuration.
-