net.optionfactory.jma.MessageAuthenticationError 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;
public class MessageAuthenticationError extends IllegalArgumentException {
public MessageAuthenticationError(String message) {
super(message);
}
public static void enforce(boolean test, String message) {
if (test) {
return;
}
throw new MessageAuthenticationError(message);
}
}