mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix checkstyle violations
See gh-21015
This commit is contained in:
parent
286ef61071
commit
0d157e046f
@ -38,6 +38,9 @@ public enum AccessLevel {
|
|||||||
*/
|
*/
|
||||||
FULL;
|
FULL;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The request attribute used to store the {@link AccessLevel}.
|
||||||
|
*/
|
||||||
public static final String REQUEST_ATTRIBUTE = "cloudFoundryAccessLevel";
|
public static final String REQUEST_ATTRIBUTE = "cloudFoundryAccessLevel";
|
||||||
|
|
||||||
private final List<String> ids;
|
private final List<String> ids;
|
||||||
|
@ -58,24 +58,54 @@ public class CloudFoundryAuthorizationException extends RuntimeException {
|
|||||||
*/
|
*/
|
||||||
public enum Reason {
|
public enum Reason {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Access Denied.
|
||||||
|
*/
|
||||||
ACCESS_DENIED(HttpStatus.FORBIDDEN),
|
ACCESS_DENIED(HttpStatus.FORBIDDEN),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invalid Audience.
|
||||||
|
*/
|
||||||
INVALID_AUDIENCE(HttpStatus.UNAUTHORIZED),
|
INVALID_AUDIENCE(HttpStatus.UNAUTHORIZED),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invalid Issuer.
|
||||||
|
*/
|
||||||
INVALID_ISSUER(HttpStatus.UNAUTHORIZED),
|
INVALID_ISSUER(HttpStatus.UNAUTHORIZED),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invalid Key ID.
|
||||||
|
*/
|
||||||
INVALID_KEY_ID(HttpStatus.UNAUTHORIZED),
|
INVALID_KEY_ID(HttpStatus.UNAUTHORIZED),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invalid Signature.
|
||||||
|
*/
|
||||||
INVALID_SIGNATURE(HttpStatus.UNAUTHORIZED),
|
INVALID_SIGNATURE(HttpStatus.UNAUTHORIZED),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invalid Token.
|
||||||
|
*/
|
||||||
INVALID_TOKEN(HttpStatus.UNAUTHORIZED),
|
INVALID_TOKEN(HttpStatus.UNAUTHORIZED),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Missing Authorization.
|
||||||
|
*/
|
||||||
MISSING_AUTHORIZATION(HttpStatus.UNAUTHORIZED),
|
MISSING_AUTHORIZATION(HttpStatus.UNAUTHORIZED),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Token Expired.
|
||||||
|
*/
|
||||||
TOKEN_EXPIRED(HttpStatus.UNAUTHORIZED),
|
TOKEN_EXPIRED(HttpStatus.UNAUTHORIZED),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unsupported Token Signing Algorithm.
|
||||||
|
*/
|
||||||
UNSUPPORTED_TOKEN_SIGNING_ALGORITHM(HttpStatus.UNAUTHORIZED),
|
UNSUPPORTED_TOKEN_SIGNING_ALGORITHM(HttpStatus.UNAUTHORIZED),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Service Unavailable.
|
||||||
|
*/
|
||||||
SERVICE_UNAVAILABLE(HttpStatus.SERVICE_UNAVAILABLE);
|
SERVICE_UNAVAILABLE(HttpStatus.SERVICE_UNAVAILABLE);
|
||||||
|
|
||||||
private final HttpStatus status;
|
private final HttpStatus status;
|
||||||
|
Loading…
Reference in New Issue
Block a user