io.smallrye.jwt.auth.principal.AwsAlbKeyResolverMessages_$bundle Maven / Gradle / Ivy
package io.smallrye.jwt.auth.principal;
import java.util.Locale;
import java.io.Serializable;
import org.jose4j.lang.UnresolvableKeyException;
import java.util.Arrays;
/**
* Warning this class consists of generated code.
*/
public class AwsAlbKeyResolverMessages_$bundle implements AwsAlbKeyResolverMessages, Serializable {
private static final long serialVersionUID = 1L;
protected AwsAlbKeyResolverMessages_$bundle() {}
public static final AwsAlbKeyResolverMessages_$bundle INSTANCE = new AwsAlbKeyResolverMessages_$bundle();
protected Object readResolve() {
return INSTANCE;
}
private static final Locale LOCALE = Locale.ROOT;
protected Locale getLoggingLocale() {
return LOCALE;
}
protected String subPathNotAllowed$str() {
return "SRJWT15000: Key is resolved from kid. Key location is not allowed. Provide only the path like: https://public-keys.auth.elb.[REGION].amazonaws.com";
}
@Override
public final UnresolvableKeyException subPathNotAllowed() {
final UnresolvableKeyException result = new UnresolvableKeyException(String.format(getLoggingLocale(), subPathNotAllowed$str()));
_copyStackTraceMinusOne(result);
return result;
}
private static void _copyStackTraceMinusOne(final Throwable e) {
final StackTraceElement[] st = e.getStackTrace();
e.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
}
}