
net.optionfactory.jma.MessageAuthenticationModule 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 com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.databind.Module;
public class MessageAuthenticationModule extends Module {
private final Version version;
private final MessageAuthenticationOps ops;
public MessageAuthenticationModule(MessageAuthenticationOps ops) {
this.version = new Version(1, 0, 0, null, "net.optionfactory", "json-authenticated");
this.ops = ops;
}
@Override
public String getModuleName() {
return this.getClass().getSimpleName();
}
@Override
public Version version() {
return version;
}
@Override
public void setupModule(SetupContext ctx) {
ctx.appendAnnotationIntrospector(new MessageAuthenticationAnnotationIntrospector(version, ops));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy