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

org.wildfly.security.encryption.ElytronMessages_$logger Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

There is a newer version: 34.0.0.Final
Show newest version
package org.wildfly.security.encryption;

import java.util.Locale;
import java.io.Serializable;
import javax.annotation.Generated;
import org.jboss.logging.DelegatingBasicLogger;
import org.jboss.logging.BasicLogger;
import java.security.GeneralSecurityException;
import java.lang.Throwable;
import java.lang.String;
import org.jboss.logging.Logger;
import java.util.Arrays;

/**
 * Warning this class consists of generated code.
 */
@Generated(value = "org.jboss.logging.processor.generator.model.MessageLoggerImplementor", date = "2024-08-29T11:45:25-0400")
public class ElytronMessages_$logger extends DelegatingBasicLogger implements ElytronMessages, BasicLogger, Serializable {
    private static final long serialVersionUID = 1L;
    private static final String FQCN = ElytronMessages_$logger.class.getName();
    public ElytronMessages_$logger(final Logger log) {
        super(log);
    }
    private static final Locale LOCALE = Locale.ROOT;
    protected Locale getLoggingLocale() {
        return LOCALE;
    }
    protected String badKeySize$str() {
        return "ELY19000: Invalid size value. Must be one of 128, 192, or 256";
    }
    @Override
    public final GeneralSecurityException badKeySize() {
        final GeneralSecurityException result = new GeneralSecurityException(String.format(getLoggingLocale(), badKeySize$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));
    }
    protected String badKeyPrefix$str() {
        return "ELY19001: Invalid prefix importing SecretKey";
    }
    @Override
    public final GeneralSecurityException badKeyPrefix() {
        final GeneralSecurityException result = new GeneralSecurityException(String.format(getLoggingLocale(), badKeyPrefix$str()));
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String unsupportedVersion$str() {
        return "ELY19002: Unsupported version '%d' the maximum supported version is '%d'";
    }
    @Override
    public final GeneralSecurityException unsupportedVersion(final int discovered, final int maxSupported) {
        final GeneralSecurityException result = new GeneralSecurityException(String.format(getLoggingLocale(), unsupportedVersion$str(), discovered, maxSupported));
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String unexpectedTokenType$str() {
        return "ELY19003: Unexpected token type '%s', expected '%s'";
    }
    @Override
    public final GeneralSecurityException unexpectedTokenType(final String actual, final String expected) {
        final GeneralSecurityException result = new GeneralSecurityException(String.format(getLoggingLocale(), unexpectedTokenType$str(), actual, expected));
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String unableToDecodeBase64Token$str() {
        return "ELY19004: Unable to decode Base64 token.";
    }
    @Override
    public final GeneralSecurityException unableToDecodeBase64Token(final Throwable cause) {
        final GeneralSecurityException result = new GeneralSecurityException(String.format(getLoggingLocale(), unableToDecodeBase64Token$str()), cause);
        _copyStackTraceMinusOne(result);
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy