@@ -53,7 +53,7 @@ public AclAuthorizationHandler(AuthConfig config, Supplier<?> metadataService) {
5353
5454 @ Override
5555 public CompletableFuture <Void > handle (DefaultAuthorizationContext context ,
56- HandlerChain <DefaultAuthorizationContext , CompletableFuture <Void >> chain ) {
56+ HandlerChain <DefaultAuthorizationContext , CompletableFuture <Void >> chain ) {
5757 if (this .authorizationMetadataProvider == null ) {
5858 throw new AuthorizationException ("The authorizationMetadataProvider is not configured" );
5959 }
@@ -112,10 +112,10 @@ private List<PolicyEntry> matchPolicyEntries(DefaultAuthorizationContext context
112112 return null ;
113113 }
114114 return entries .stream ()
115- .filter (entry -> entry .isMatchResource (context .getResource ()))
116- .filter (entry -> entry .isMatchAction (context .getActions ()))
117- .filter (entry -> entry .isMatchEnvironment (Environment .of (context .getSourceIp ())))
118- .collect (Collectors .toList ());
115+ .filter (entry -> entry .isMatchResource (context .getResource ()))
116+ .filter (entry -> entry .isMatchAction (context .getActions ()))
117+ .filter (entry -> entry .isMatchEnvironment (Environment .of (context .getSourceIp ())))
118+ .collect (Collectors .toList ());
119119 }
120120
121121 private int comparePolicyEntries (PolicyEntry o1 , PolicyEntry o2 ) {
@@ -159,6 +159,6 @@ private int comparePolicyEntries(PolicyEntry o1, PolicyEntry o2) {
159159
160160 private static void throwException (DefaultAuthorizationContext context , String detail ) {
161161 throw new AuthorizationException ("{} has no permission to access {} from {}, " + detail ,
162- context .getSubject ().getSubjectKey (), context .getResource ().getResourceKey (), context .getSourceIp ());
162+ context .getSubject ().getSubjectKey (), context .getResource ().getResourceKey (), context .getSourceIp ());
163163 }
164164}
0 commit comments