public class AuthenticationExceptionToLabelConverter extends java.lang.Object implements Converter<AuthenticationException,Label>
AuthenticationException to a localized label key to be displayed on the login form. Use
configurable authenticationExceptionMessageMapping to match labels with authentication exception class.| Constructor and Description |
|---|
AuthenticationExceptionToLabelConverter() |
| Modifier and Type | Method and Description |
|---|---|
Label |
convert(AuthenticationException source)
Converts the source object, creating a new instance of the destination type
|
Label |
convert(AuthenticationException source,
Label prototype)
Convert the source object by filling the prototype
|
protected java.util.Map<java.lang.Class,java.lang.String> |
getAuthenticationExceptionMessageMapping() |
protected java.lang.String |
getDefaultLabel() |
protected java.util.List<java.lang.Class> |
getWarningExceptions() |
void |
setAuthenticationExceptionMessageMapping(java.util.Map<java.lang.Class,java.lang.String> authenticationExceptionMessageMapping) |
void |
setDefaultLabel(java.lang.String defaultLabel) |
void |
setWarningExceptions(java.util.List<java.lang.Class> warningExceptions) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertAll, convertAllIgnoreExceptions, getLoggerpublic AuthenticationExceptionToLabelConverter()
public Label convert(AuthenticationException source)
throws ConversionException
Converterconvert in interface Converter<AuthenticationException,Label>source - the source objectConversionException - if an error occursprotected java.lang.String getDefaultLabel()
public Label convert(AuthenticationException source,
Label prototype)
throws ConversionException
Converterconvert in interface Converter<AuthenticationException,Label>source - the source objectprototype - the prototype to fillConversionException - if an error occursprotected java.util.Map<java.lang.Class,java.lang.String> getAuthenticationExceptionMessageMapping()
public void setAuthenticationExceptionMessageMapping(java.util.Map<java.lang.Class,java.lang.String> authenticationExceptionMessageMapping)
authenticationExceptionMessageMapping - the authenticationExceptionMessageMapping to setpublic void setDefaultLabel(java.lang.String defaultLabel)
defaultLabel - the defaultLabel to setprotected java.util.List<java.lang.Class> getWarningExceptions()
public void setWarningExceptions(java.util.List<java.lang.Class> warningExceptions)
warningExceptions - the warningExceptions to setCopyright © 2018 SAP SE. All Rights Reserved.