Package jadex.ipc
Interface ISecurity
- All Known Implementing Classes:
Security
public interface ISecurity
Security is responsible for validating (remote) requests.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
Encrypts and signs the message for a receiver. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondecryptAndAuth
(jadex.core.impl.GlobalProcessIdentifier sender, byte[] content) Decrypt and authenticates the message from a sender.static ISecurity
get()
Get the security instance.
-
Field Details
-
TRUSTED
Special "trusted" role indicating that flagged entity may invoke any service remotely.- See Also:
-
-
Method Details
-
get
Get the security instance. -
decryptAndAuth
ISecurity.DecodedMessage decryptAndAuth(jadex.core.impl.GlobalProcessIdentifier sender, byte[] content) Decrypt and authenticates the message from a sender.- Parameters:
sender
- The sender.content
- The content.- Returns:
- Decrypted/authenticated message or null on invalid message.
-