org.wildfly.security.credential.source.ElytronMessages2_$logger Maven / Gradle / Ivy
The newest version!
package org.wildfly.security.credential.source;
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.lang.Throwable;
import org.jboss.logging.Logger;
import java.util.Arrays;
import org.wildfly.security.mechanism.AuthenticationMechanismException;
/**
* Warning this class consists of generated code.
*/
@Generated(value = "org.jboss.logging.processor.generator.model.MessageLoggerImplementor", date = "2024-09-20T10:45:29-0400")
public class ElytronMessages2_$logger extends DelegatingBasicLogger implements ElytronMessages2, BasicLogger, Serializable {
private static final long serialVersionUID = 1L;
private static final String FQCN = ElytronMessages2_$logger.class.getName();
public ElytronMessages2_$logger(final Logger log) {
super(log);
}
private static final Locale LOCALE = Locale.ROOT;
protected Locale getLoggingLocale() {
return LOCALE;
}
protected String failedToObtainSSLContext$str() {
return "ELY01106: Could not obtain SSLContext";
}
@Override
public final IllegalStateException failedToObtainSSLContext(final Throwable cause) {
final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), failedToObtainSSLContext$str()), cause);
_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 mechCallbackHandlerFailedForUnknownReason$str() {
return "ELY05053: Callback handler failed for unknown reason";
}
@Override
public final AuthenticationMechanismException mechCallbackHandlerFailedForUnknownReason(final Throwable cause) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechCallbackHandlerFailedForUnknownReason$str()), cause);
_copyStackTraceMinusOne(result);
return result;
}
protected String mechUnableToHandleResponseFromServer$str() {
return "ELY05125: Unable to handle response from server";
}
@Override
public final AuthenticationMechanismException mechUnableToHandleResponseFromServer(final Throwable cause) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechUnableToHandleResponseFromServer$str()), cause);
_copyStackTraceMinusOne(result);
return result;
}
protected String oauth2ClientCredentialsNotProvided$str() {
return "ELY09001: Client credentials not provided";
}
@Override
public final IllegalStateException oauth2ClientCredentialsNotProvided() {
final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), oauth2ClientCredentialsNotProvided$str()));
_copyStackTraceMinusOne(result);
return result;
}
}