com.authkit.Util Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of authkit-servlet Show documentation
Show all versions of authkit-servlet Show documentation
OpenID and JWT client for Java Servlet Applications
package com.authkit;
public final class Util {
public static final T orDefault(T value, T defaultValue) {
return value == null ? defaultValue : value;
}
public static final T required(T value, String label) {
if (value == null) {
throw new IllegalArgumentException(String.format("%s is required", label));
}
return value;
}
}