com.datahub.authentication.AuthenticationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datahub-auth-api Show documentation
Show all versions of datahub-auth-api Show documentation
DataHub Auth API for developers to write custom Authentication & Authorization plugins for DataHub
package com.datahub.authentication;
import com.datahub.plugins.auth.authentication.Authenticator;
/**
* An {@link Exception} thrown when an {@link Authenticator} is unable to be resolved an instance of
* {@link Authentication} for the current request.
*/
public class AuthenticationException extends Exception {
public AuthenticationException(final String message) {
this(message, null);
}
public AuthenticationException(final String message, final Throwable cause) {
super(String.format("Failed to authenticate inbound request: %s", message), cause);
}
}