All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.smallrye.jwt.auth.principal.AwsAlbKeyResolverMessages_$bundle Maven / Gradle / Ivy

There is a newer version: 4.6.0
Show newest version
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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy