public class AuthorizationPolicyVoter extends Object implements org.springframework.security.access.AccessDecisionVoter
AccessDecisionVoter
that delegates to an IAuthorizationPolicy
instance.Constructor and Description |
---|
AuthorizationPolicyVoter(org.pentaho.platform.api.engine.IAuthorizationPolicy policy,
String prefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
supports(Class clazz)
This implementation supports any type of class, because it does not query the presented secure object.
|
boolean |
supports(org.springframework.security.access.ConfigAttribute attribute) |
int |
vote(org.springframework.security.core.Authentication authentication,
Object object,
Collection configAttributes) |
public AuthorizationPolicyVoter(org.pentaho.platform.api.engine.IAuthorizationPolicy policy, String prefix)
public boolean supports(org.springframework.security.access.ConfigAttribute attribute)
supports
in interface org.springframework.security.access.AccessDecisionVoter
public boolean supports(Class clazz)
supports
in interface org.springframework.security.access.AccessDecisionVoter
clazz
- the secure objecttrue
public int vote(org.springframework.security.core.Authentication authentication, Object object, Collection configAttributes)
vote
in interface org.springframework.security.access.AccessDecisionVoter
Copyright © 2019 Hitachi Vantara. All rights reserved.