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

org.wildfly.security.ssh.util._pivate.ElytronMessages_$logger Maven / Gradle / Ivy

There is a newer version: 2.4.1.Final
Show newest version
package org.wildfly.security.ssh.util._pivate;

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

/**
 * Warning this class consists of generated code.
 */
@Generated(value = "org.jboss.logging.processor.generator.model.MessageLoggerImplementor", date = "2023-05-23T16:53:46-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 openSshParseError$str() {
        return "ELY40000: Malformed OpenSSH Private Key: %s";
    }
    @Override
    public final IllegalArgumentException openSshParseError(final String e) {
        final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), openSshParseError$str(), e));
        _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 openSshGeneratingError$str() {
        return "ELY40001: Unable to Generate Key: %s";
    }
    @Override
    public final IllegalArgumentException openSshGeneratingError(final String e) {
        final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), openSshGeneratingError$str(), e));
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String malformedSshPemContent$str() {
        return "ELY40002: Malformed PEM content when parsing SSH at offset %d";
    }
    @Override
    public final IllegalArgumentException malformedSshPemContent(final long offset) {
        final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), malformedSshPemContent$str(), offset));
        _copyStackTraceMinusOne(result);
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy