Constructor and Description |
---|
ConsumerSecurityVoter() |
Modifier and Type | Method and Description |
---|---|
boolean |
supports(Class<?> clazz)
All classes are supported.
|
boolean |
supports(org.springframework.security.access.ConfigAttribute attribute)
The config attribute is supported if it's an instance of
ConsumerSecurityConfig . |
int |
vote(org.springframework.security.core.Authentication authentication,
Object object,
Collection<org.springframework.security.access.ConfigAttribute> configAttributes)
Votes on giving access to the specified authentication based on the security attributes.
|
public boolean supports(org.springframework.security.access.ConfigAttribute attribute)
ConsumerSecurityConfig
.supports
in interface org.springframework.security.access.AccessDecisionVoter<Object>
attribute
- The attribute.ConsumerSecurityConfig
.public boolean supports(Class<?> clazz)
supports
in interface org.springframework.security.access.AccessDecisionVoter<Object>
clazz
- The class.public int vote(org.springframework.security.core.Authentication authentication, Object object, Collection<org.springframework.security.access.ConfigAttribute> configAttributes)
vote
in interface org.springframework.security.access.AccessDecisionVoter<Object>
authentication
- The authentication.object
- The object.configAttributes
- the ConfigAttributes.Copyright © 2019. All rights reserved.