Skip to content

Commit 0d157e0

Browse files
committed
Fix checkstyle violations
See gh-21015
1 parent 286ef61 commit 0d157e0

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/AccessLevel.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public enum AccessLevel {
3838
*/
3939
FULL;
4040

41+
/**
42+
* The request attribute used to store the {@link AccessLevel}.
43+
*/
4144
public static final String REQUEST_ATTRIBUTE = "cloudFoundryAccessLevel";
4245

4346
private final List<String> ids;

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/CloudFoundryAuthorizationException.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,54 @@ public Reason getReason() {
5858
*/
5959
public enum Reason {
6060

61+
/**
62+
* Access Denied.
63+
*/
6164
ACCESS_DENIED(HttpStatus.FORBIDDEN),
6265

66+
/**
67+
* Invalid Audience.
68+
*/
6369
INVALID_AUDIENCE(HttpStatus.UNAUTHORIZED),
6470

71+
/**
72+
* Invalid Issuer.
73+
*/
6574
INVALID_ISSUER(HttpStatus.UNAUTHORIZED),
6675

76+
/**
77+
* Invalid Key ID.
78+
*/
6779
INVALID_KEY_ID(HttpStatus.UNAUTHORIZED),
6880

81+
/**
82+
* Invalid Signature.
83+
*/
6984
INVALID_SIGNATURE(HttpStatus.UNAUTHORIZED),
7085

86+
/**
87+
* Invalid Token.
88+
*/
7189
INVALID_TOKEN(HttpStatus.UNAUTHORIZED),
7290

91+
/**
92+
* Missing Authorization.
93+
*/
7394
MISSING_AUTHORIZATION(HttpStatus.UNAUTHORIZED),
7495

96+
/**
97+
* Token Expired.
98+
*/
7599
TOKEN_EXPIRED(HttpStatus.UNAUTHORIZED),
76100

101+
/**
102+
* Unsupported Token Signing Algorithm.
103+
*/
77104
UNSUPPORTED_TOKEN_SIGNING_ALGORITHM(HttpStatus.UNAUTHORIZED),
78105

106+
/**
107+
* Service Unavailable.
108+
*/
79109
SERVICE_UNAVAILABLE(HttpStatus.SERVICE_UNAVAILABLE);
80110

81111
private final HttpStatus status;

0 commit comments

Comments
 (0)