public static enum IAuthenticationListener.Reason extends java.lang.Enum<IAuthenticationListener.Reason>
enumeration lists the possible reasons for the message authentication exception.| Enum Constant and Description |
|---|
CHANNEL_NOT_ALLOWED
User is not allowed to use this communication channel
|
INVALID_LOGIN_OR_PASSWORD
Login or password are invalid
|
INVALID_ROLE
User does not have the required role
|
LOCKED_USER
User account is locked
|
NOT_ALLOWED
Authentication is not expected
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumericalId()
Gets the numerical identifier of the reason.
|
static IAuthenticationListener.Reason |
getReasonFromId(int id)
Gets the
reason from the identifier. |
static IAuthenticationListener.Reason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IAuthenticationListener.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IAuthenticationListener.Reason INVALID_LOGIN_OR_PASSWORD
public static final IAuthenticationListener.Reason INVALID_ROLE
public static final IAuthenticationListener.Reason LOCKED_USER
public static final IAuthenticationListener.Reason CHANNEL_NOT_ALLOWED
public static final IAuthenticationListener.Reason NOT_ALLOWED
public static IAuthenticationListener.Reason[] values()
for (IAuthenticationListener.Reason c : IAuthenticationListener.Reason.values()) System.out.println(c);
public static IAuthenticationListener.Reason valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getNumericalId()
public static final IAuthenticationListener.Reason getReasonFromId(int id)
reason from the identifier.