Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## madkit.kernel
Interface SecuredMessage

All Superinterfaces:
  java.lang.Cloneable

    public interface SecuredMessage

extends java.lang.Cloneable

If security is an issue for the application, implementing the `SecuredMessage` interface should be considered as, although the default fields of a message could not be altered by receivers (read only or copy), other messages (subclasses of Message) and their content could be intercepted via the hooking mechanism of the kernel or modified by the receiver. Thus, additional content could be altered by any receiver.

Implementing the `SecuredMessage` interface (and Overriding the default `clone` method of `Message`; Do not forget to call super.clone()) will tell the kernel to do a copy of the message for each receiver, ensuring the data security of the original object/content used to build a message.

Since:
  Madkit 4.3
Version:
  1.0
Author:
  Fabien Michel
See Also:
  `PrivateMessage`

Method Summary
`Message` | `clone()` returns a copy of the message.

Method Detail

### clone

    Message clone()

  returns a copy of the message. This is for subclasses of `Message` that need to define a deep copy. If you do not override this method, you probably do not need to implement this interface as the `Message` class is already secured.

  Returns:
    a copy of the message.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.