Class AuthenticationExceptionsProperties
- All Implemented Interfaces:
Serializable
AuthenticationExceptionsProperties
.- Since:
- 5.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDefine custom exceptions that can then be mapped to message bundles for custom error handling.Handle exceptions using a groovy script.setExceptions
(List<Class<? extends Throwable>> exceptions) Define custom exceptions that can then be mapped to message bundles for custom error handling.Handle exceptions using a groovy script.
-
Constructor Details
-
AuthenticationExceptionsProperties
public AuthenticationExceptionsProperties()
-
-
Method Details
-
getExceptions
Define custom exceptions that can then be mapped to message bundles for custom error handling.By default CAS is configured to recognize and handle a number of exceptions for during authentication. Each exception has the specific message bundle mapping so that a specific message could be presented to end users on the login form. Any un-recognized or un-mapped exceptions results in a generic message. To map custom exceptions, one would need map the exception, they can be defined here and then linked to custom messages.
-
getGroovy
Handle exceptions using a groovy script. -
setExceptions
public AuthenticationExceptionsProperties setExceptions(List<Class<? extends Throwable>> exceptions) Define custom exceptions that can then be mapped to message bundles for custom error handling.By default CAS is configured to recognize and handle a number of exceptions for during authentication. Each exception has the specific message bundle mapping so that a specific message could be presented to end users on the login form. Any un-recognized or un-mapped exceptions results in a generic message. To map custom exceptions, one would need map the exception, they can be defined here and then linked to custom messages.
- Returns:
this
.
-
setGroovy
public AuthenticationExceptionsProperties setGroovy(GroovyAuthenticationExceptionsProperties groovy) Handle exceptions using a groovy script.- Returns:
this
.
-