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

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

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

import java.util.Locale;
import java.lang.IllegalStateException;
import java.io.Serializable;
import javax.annotation.Generated;
import org.jboss.logging.DelegatingBasicLogger;
import java.security.GeneralSecurityException;
import java.io.IOException;
import java.lang.String;
import org.jboss.logging.Logger;
import org.jboss.logging.BasicLogger;
import javax.security.auth.login.LoginException;
import java.lang.Throwable;
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 = "2021-11-18T10:40:58-0500")
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 builderAlreadyBuilt$str() {
        return "ELY00003: This builder has already been built";
    }
    @Override
    public final IllegalStateException builderAlreadyBuilt() {
        final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), builderAlreadyBuilt$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 patternRequiresCaptureGroup$str() {
        return "ELY01065: Pattern requires a capture group";
    }
    @Override
    public final IllegalArgumentException patternRequiresCaptureGroup() {
        final IllegalArgumentException result = new IllegalArgumentException(String.format(getLoggingLocale(), patternRequiresCaptureGroup$str()));
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String unableToPerformInitialLogin$str() {
        return "ELY01121: Unable to perform initial JAAS login.";
    }
    @Override
    public final GeneralSecurityException unableToPerformInitialLogin(final LoginException cause) {
        final GeneralSecurityException result = new GeneralSecurityException(String.format(getLoggingLocale(), unableToPerformInitialLogin$str()), cause);
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String noKerberosPrincipalsFound$str() {
        return "ELY01122: No Kerberos principals found.";
    }
    @Override
    public final GeneralSecurityException noKerberosPrincipalsFound() {
        final GeneralSecurityException result = new GeneralSecurityException(String.format(getLoggingLocale(), noKerberosPrincipalsFound$str()));
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String tooManyKerberosPrincipalsFound$str() {
        return "ELY01123: Too many Kerberos principals found.";
    }
    @Override
    public final GeneralSecurityException tooManyKerberosPrincipalsFound() {
        final GeneralSecurityException result = new GeneralSecurityException(String.format(getLoggingLocale(), tooManyKerberosPrincipalsFound$str()));
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String keyTabDoesNotExists$str() {
        return "ELY01160: KeyTab [%s] does not exists.";
    }
    @Override
    public final IOException keyTabDoesNotExists(final String keyTab) {
        final IOException result = new IOException(String.format(getLoggingLocale(), keyTabDoesNotExists$str(), keyTab));
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String noKeysForPrincipalInKeyTab$str() {
        return "ELY01161: No keys for Kerberos principal [%s] was found in KeyTab [%s].";
    }
    @Override
    public final IOException noKeysForPrincipalInKeyTab(final String principal, final String keyTab) {
        final IOException result = new IOException(String.format(getLoggingLocale(), noKeysForPrincipalInKeyTab$str(), principal, keyTab));
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String initialLoginSkipped$str() {
        return "ELY01165: Initial JAAS login skipped as it has failed in last %d seconds";
    }
    @Override
    public final GeneralSecurityException initialLoginSkipped(final long seconds) {
        final GeneralSecurityException result = new GeneralSecurityException(String.format(getLoggingLocale(), initialLoginSkipped$str(), seconds));
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String tooManyKerberosTicketsFound$str() {
        return "ELY03031: Too many KerberosTicket instances in private credentials";
    }
    @Override
    public final GeneralSecurityException tooManyKerberosTicketsFound() {
        final GeneralSecurityException result = new GeneralSecurityException(String.format(getLoggingLocale(), tooManyKerberosTicketsFound$str()));
        _copyStackTraceMinusOne(result);
        return result;
    }
    protected String xmlFailedToCreateCredential$str() {
        return "ELY17000: Failed to create credential";
    }
    @Override
    public final IOException xmlFailedToCreateCredential(final Throwable cause) {
        final IOException result = new IOException(String.format(getLoggingLocale(), xmlFailedToCreateCredential$str()), cause);
        _copyStackTraceMinusOne(result);
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy