net.optionfactory.jma.MessageAuthentication 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;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MessageAuthentication {
public enum Mode {
AUTHENTICATED, AUTHENTICATED_ENCRYPTED;
}
Mode mode() default Mode.AUTHENTICATED_ENCRYPTED;
long validityMs() default 0;
}