net.optionfactory.jma.message.AuthenticatedMessage 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 AuthenticatedMessage {
@MessageAuthentication(mode = MessageAuthentication.Mode.AUTHENTICATED)
public T value;
public static AuthenticatedMessage of(T value) {
final AuthenticatedMessage message = new AuthenticatedMessage<>();
message.value = value;
return message;
}
}