|
||||||||||
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).
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. |
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 |
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)
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 |