Skip to content

Commit 9f4b0ca

Browse files
timtebeekjzheaux
authored andcommitted
Use Collection<ConfigAttribute> in examples
To match `org.springframework.security.access.ConfigAttribute`.
1 parent 60652af commit 9f4b0ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/modules/ROOT/pages/servlet/authorization/architecture.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public class AccessDecisionManagerAuthorizationManagerAdapter implements Authori
129129
@Override
130130
public AuthorizationDecision check(Supplier<Authentication> authentication, Object object) {
131131
try {
132-
Collection<ConfigAttributes> attributes = this.securityMetadataSource.getAttributes(object);
132+
Collection<ConfigAttribute> attributes = this.securityMetadataSource.getAttributes(object);
133133
this.accessDecisionManager.decide(authentication.get(), object, attributes);
134134
return new AuthorizationDecision(true);
135135
} catch (AccessDeniedException ex) {
@@ -139,7 +139,7 @@ public class AccessDecisionManagerAuthorizationManagerAdapter implements Authori
139139
140140
@Override
141141
public void verify(Supplier<Authentication> authentication, Object object) {
142-
Collection<ConfigAttributes> attributes = this.securityMetadataSource.getAttributes(object);
142+
Collection<ConfigAttribute> attributes = this.securityMetadataSource.getAttributes(object);
143143
this.accessDecisionManager.decide(authentication.get(), object, attributes);
144144
}
145145
}
@@ -162,7 +162,7 @@ public class AccessDecisionVoterAuthorizationManagerAdapter implements Authoriza
162162
163163
@Override
164164
public AuthorizationDecision check(Supplier<Authentication> authentication, Object object) {
165-
Collection<ConfigAttributes> attributes = this.securityMetadataSource.getAttributes(object);
165+
Collection<ConfigAttribute> attributes = this.securityMetadataSource.getAttributes(object);
166166
int decision = this.accessDecisionVoter.vote(authentication.get(), object, attributes);
167167
switch (decision) {
168168
case ACCESS_GRANTED:

0 commit comments

Comments
 (0)