|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectmessageProcessor.MessageProcessorController
public class MessageProcessorController
Controller class of component MessageProcessor
.
Takes messages from component InputOutputHandler
, processes
them (recoding, checking for replays, removing/adding padding,
initiating message authentication) and bypasses them to component
OutputStrategy
.
Can handle Request
s and Replies
in parallel.
The functions mentioned above can be performed in parallel as well, except for detecting replays (for security reasons).
Nested Class Summary | |
---|---|
private class |
MessageProcessorController.ReplyMixThread
Thread, which coordinates the mixing process of replies. |
private class |
MessageProcessorController.RequestMixThread
Thread, which coordinates the mixing process of request. |
Field Summary | |
---|---|
private AccessControlController |
accessControl
Reference on component AccessControl (used to check if
messages have integrity). |
private InputOutputHandlerController |
inputOutputHandler
Reference on component InputOutputHandler (used to get
unprocessed messages from). |
private static InternalInformationPortController |
internalInformationPort
Reference on component InternalInformationPort . |
private OutputStrategyController |
outputStrategy
Reference on component OutputStrategy (used to hand over
processed messages). |
private Recoder |
recoder
Reference on Recoder , used to decrypt data. |
Constructor Summary | |
---|---|
MessageProcessorController()
Generates a new MessageProcessor component, which takes
messages from component InputOutputHandler , processes
them (recoding, checking for replays, removing/adding padding,
initiating message authentication) and bypasses them to the
OutputStrategy component. |
Method Summary | |
---|---|
byte[] |
decrypt(byte[] data,
java.lang.String transformation)
Decrypts the bypassed data using the internal asymmetric cipher (and private key) and the specified transformation. |
private int |
getNumberOfThreads()
Returns the number of message that shall be processed in parallel (as specified in property file). |
void |
initialize(java.security.KeyPair keyPair)
Initialization method for this component. |
void |
initialize(java.security.KeyPair keyPair,
InputOutputHandlerController inputOutputHandler,
AccessControlController accessControl,
OutputStrategyController outputStrategy)
Initialization method for this component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static InternalInformationPortController internalInformationPort
InternalInformationPort
.
Used to display and/or log data and read general settings.
private InputOutputHandlerController inputOutputHandler
InputOutputHandler
(used to get
unprocessed messages from).
private AccessControlController accessControl
AccessControl
(used to check if
messages have integrity).
private OutputStrategyController outputStrategy
OutputStrategy
(used to hand over
processed messages).
private Recoder recoder
Recoder
, used to decrypt data.
decrypt(byte[], String)
,
initialize(KeyPair)
Constructor Detail |
---|
public MessageProcessorController()
MessageProcessor
component, which takes
messages from component InputOutputHandler
, processes
them (recoding, checking for replays, removing/adding padding,
initiating message authentication) and bypasses them to the
OutputStrategy
component.
Can handle Request
s and Replies
in parallel.
The functions mentioned above can be performed in parallel as well, except for detecting replays (for security reasons).
Component can't be used before calling initialize()
.
initialize(KeyPair)
,
initialize( KeyPair,
InputOutputHandlerController,
AccessControlController,
OutputStrategyController
)
Method Detail |
---|
public void initialize(java.security.KeyPair keyPair, InputOutputHandlerController inputOutputHandler, AccessControlController accessControl, OutputStrategyController outputStrategy)
InputOutputHandler
, processes them (recoding, checking for
replays, removing/adding padding, initiating message authentication)
and bypass them to the OutputStrategy
component.
keyPair
- Reference on this mix'
KeyPair
. Used for
asymmetric cryptography.inputOutputHandler
- Reference on component
InputOutputHandler
(used
to get unprocessed messages from).accessControl
- Reference on component
AccessControl
(used to
check if messages have integrity).outputStrategy
- Reference on component
OutputStrategy
(used to
hand over processed messages).initialize(KeyPair)
public void initialize(java.security.KeyPair keyPair)
initialize(KeyPair, InternalInformationPortController,
InputOutputHandlerController, AccessControlController,
OutputStrategyController)
for an initializer causing this
component to process messages, too).
keyPair
- Reference on this mix' KeyPair
.
Used to decrypt data.initialize( KeyPair,
InputOutputHandlerController,
AccessControlController,
OutputStrategyController)
private int getNumberOfThreads()
public byte[] decrypt(byte[] data, java.lang.String transformation) throws java.lang.Exception
data
- Data to be decrypted.transformation
- Transformation that shall be used for
decryption.
java.lang.Exception
- Any type of error preventing the data from being
decrypted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |