Class AuthorizationPolicyVoter
- java.lang.Object
-
- org.pentaho.platform.security.policy.rolebased.springsecurity.AuthorizationPolicyVoter
-
- All Implemented Interfaces:
org.springframework.security.access.AccessDecisionVoter
public class AuthorizationPolicyVoter extends Object implements org.springframework.security.access.AccessDecisionVoter
AnAccessDecisionVoter
that delegates to anIAuthorizationPolicy
instance.- Author:
- mlowery
-
-
Constructor Summary
Constructors Constructor Description AuthorizationPolicyVoter(org.pentaho.platform.api.engine.IAuthorizationPolicy policy, String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
AuthorizationPolicyVoter
public AuthorizationPolicyVoter(org.pentaho.platform.api.engine.IAuthorizationPolicy policy, String prefix)
-
-
Method Detail
-
supports
public boolean supports(org.springframework.security.access.ConfigAttribute attribute)
- Specified by:
supports
in interfaceorg.springframework.security.access.AccessDecisionVoter
-
supports
public boolean supports(Class clazz)
This implementation supports any type of class, because it does not query the presented secure object.- Specified by:
supports
in interfaceorg.springframework.security.access.AccessDecisionVoter
- Parameters:
clazz
- the secure object- Returns:
- always
true
-
vote
public int vote(org.springframework.security.core.Authentication authentication, Object object, Collection configAttributes)
- Specified by:
vote
in interfaceorg.springframework.security.access.AccessDecisionVoter
-
-