Browse Source

Use Collection<ConfigAttribute> in examples

To match `org.springframework.security.access.ConfigAttribute`.
Tim te Beek 3 years ago
parent
commit
9f4b0ca8b5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/modules/ROOT/pages/servlet/authorization/architecture.adoc

+ 3 - 3
docs/modules/ROOT/pages/servlet/authorization/architecture.adoc

@@ -129,7 +129,7 @@ public class AccessDecisionManagerAuthorizationManagerAdapter implements Authori
     @Override
     public AuthorizationDecision check(Supplier<Authentication> authentication, Object object) {
         try {
-            Collection<ConfigAttributes> attributes = this.securityMetadataSource.getAttributes(object);
+            Collection<ConfigAttribute> attributes = this.securityMetadataSource.getAttributes(object);
             this.accessDecisionManager.decide(authentication.get(), object, attributes);
             return new AuthorizationDecision(true);
         } catch (AccessDeniedException ex) {
@@ -139,7 +139,7 @@ public class AccessDecisionManagerAuthorizationManagerAdapter implements Authori
 
     @Override
     public void verify(Supplier<Authentication> authentication, Object object) {
-        Collection<ConfigAttributes> attributes = this.securityMetadataSource.getAttributes(object);
+        Collection<ConfigAttribute> attributes = this.securityMetadataSource.getAttributes(object);
         this.accessDecisionManager.decide(authentication.get(), object, attributes);
     }
 }
@@ -162,7 +162,7 @@ public class AccessDecisionVoterAuthorizationManagerAdapter implements Authoriza
 
     @Override
     public AuthorizationDecision check(Supplier<Authentication> authentication, Object object) {
-        Collection<ConfigAttributes> attributes = this.securityMetadataSource.getAttributes(object);
+        Collection<ConfigAttribute> attributes = this.securityMetadataSource.getAttributes(object);
         int decision = this.accessDecisionVoter.vote(authentication.get(), object, attributes);
         switch (decision) {
         case ACCESS_GRANTED: