org.wildfly.security.mechanism.gssapi.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).
package org.wildfly.security.mechanism.gssapi;
import java.util.Locale;
import java.lang.IllegalStateException;
import java.io.Serializable;
import javax.annotation.Generated;
import org.jboss.logging.DelegatingBasicLogger;
import org.jboss.logging.BasicLogger;
import java.security.GeneralSecurityException;
import javax.security.auth.login.LoginException;
import java.io.IOException;
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 = "2022-09-13T14:55:06-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 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 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;
}
}