public class AuthenticationFailureExceptionMapping extends Object
Constructor and Description |
---|
AuthenticationFailureExceptionMapping(@NonNull Class<?> exception,
@NonNull String redirectUrl) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Class<?> |
getException()
The target exception when redirecting
|
String |
getRedirectUrl()
The redirect URL when the target exception happens.
|
int |
hashCode() |
String |
toString() |
public Class<?> getException()
public String getRedirectUrl()
Except in some special circumstances, the redirect URL should generally redirect to the login page with an "error=true" and "errorCode" param. For example:
/login?error=true&errorCode=login.error.user-inactive
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.