public enum SecurityErrorType extends java.lang.Enum<SecurityErrorType>
| Enum Constant and Description |
|---|
AUTHORIZATION_HEADER_MISSING
When the HTTP Authorization header is not present
|
AUTHORIZATION_HEADER_WRONG_FORMAT
When the HTTP Authorization header does not contain a schema and a token
|
AUTHORIZATION_HEADER_WRONG_SCHEME
When the HTTP Authorization header does not have the "Bearer" scheme.
|
JWT_EXPIRED
[io.jsonwebtoken.ExpiredJwtException]
|
JWT_MALFORMED
[io.jsonwebtoken.MalformedJwtException]
|
JWT_UNSUPPORTED
see [io.jsonwebtoken.UnsupportedJwtException]
|
JWT_WRONG_SIGNATURE
[io.jsonwebtoken.SignatureException]
|
UNKWOWN |
VALIDATION
When a
TokenValidator has rejected a token. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getReason() |
be.looorent.micronaut.security.SecurityException |
toException() |
static SecurityErrorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SecurityErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityErrorType JWT_UNSUPPORTED
public static final SecurityErrorType JWT_MALFORMED
public static final SecurityErrorType JWT_EXPIRED
public static final SecurityErrorType JWT_WRONG_SIGNATURE
public static final SecurityErrorType UNKWOWN
public static final SecurityErrorType AUTHORIZATION_HEADER_MISSING
public static final SecurityErrorType AUTHORIZATION_HEADER_WRONG_FORMAT
public static final SecurityErrorType AUTHORIZATION_HEADER_WRONG_SCHEME
public static final SecurityErrorType VALIDATION
TokenValidator has rejected a token.public static SecurityErrorType[] values()
for (SecurityErrorType c : SecurityErrorType.values()) System.out.println(c);
public static SecurityErrorType 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 be.looorent.micronaut.security.SecurityException toException()
public java.lang.String getReason()