Class ExchangeRolesVoter
java.lang.Object
org.qubership.integration.platform.engine.security.ExchangeRolesVoter
- All Implemented Interfaces:
org.springframework.security.access.AccessDecisionVoter<org.apache.camel.Exchange>
@Component
public class ExchangeRolesVoter
extends Object
implements org.springframework.security.access.AccessDecisionVoter<org.apache.camel.Exchange>
-
Field Summary
Fields inherited from interface org.springframework.security.access.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED -
Constructor Summary
ConstructorsConstructorDescriptionExchangeRolesVoter(org.springframework.security.access.vote.RoleVoter roleVoter, DevModeUtil devModeUtil) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleansupports(org.springframework.security.access.ConfigAttribute attribute) intvote(org.springframework.security.core.Authentication authentication, org.apache.camel.Exchange object, Collection<org.springframework.security.access.ConfigAttribute> attributes)
-
Constructor Details
-
ExchangeRolesVoter
@Autowired public ExchangeRolesVoter(org.springframework.security.access.vote.RoleVoter roleVoter, DevModeUtil devModeUtil)
-
-
Method Details
-
supports
public boolean supports(org.springframework.security.access.ConfigAttribute attribute) - Specified by:
supportsin interfaceorg.springframework.security.access.AccessDecisionVoter<org.apache.camel.Exchange>
-
supports
- Specified by:
supportsin interfaceorg.springframework.security.access.AccessDecisionVoter<org.apache.camel.Exchange>
-
vote
public int vote(org.springframework.security.core.Authentication authentication, org.apache.camel.Exchange object, Collection<org.springframework.security.access.ConfigAttribute> attributes) - Specified by:
votein interfaceorg.springframework.security.access.AccessDecisionVoter<org.apache.camel.Exchange>
-