net.optionfactory.jma.message.EncryptedMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-message-authentication Show documentation
Show all versions of json-message-authentication Show documentation
A JSON message authentication module for jackson
The newest version!
package net.optionfactory.jma.message;
import net.optionfactory.jma.MessageAuthentication;
public class EncryptedMessage {
@MessageAuthentication(mode = MessageAuthentication.Mode.AUTHENTICATED_ENCRYPTED)
public T value;
public static EncryptedMessage of(T value) {
final EncryptedMessage message = new EncryptedMessage<>();
message.value = value;
return message;
}
}