com.xebialabs.deployit.security
Class LoginPermissionVoter

java.lang.Object
  extended by com.xebialabs.deployit.security.LoginPermissionVoter
All Implemented Interfaces:
org.springframework.security.access.AccessDecisionVoter<java.lang.Object>

public class LoginPermissionVoter
extends java.lang.Object
implements org.springframework.security.access.AccessDecisionVoter<java.lang.Object>


Field Summary
 
Fields inherited from interface org.springframework.security.access.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED
 
Constructor Summary
LoginPermissionVoter()
           
 
Method Summary
 boolean supports(java.lang.Class<?> clazz)
           
 boolean supports(org.springframework.security.access.ConfigAttribute attribute)
           
 int vote(org.springframework.security.core.Authentication authentication, java.lang.Object object, java.util.Collection<org.springframework.security.access.ConfigAttribute> attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginPermissionVoter

public LoginPermissionVoter()
Method Detail

supports

public boolean supports(org.springframework.security.access.ConfigAttribute attribute)
Specified by:
supports in interface org.springframework.security.access.AccessDecisionVoter<java.lang.Object>

supports

public boolean supports(java.lang.Class<?> clazz)
Specified by:
supports in interface org.springframework.security.access.AccessDecisionVoter<java.lang.Object>

vote

public int vote(org.springframework.security.core.Authentication authentication,
                java.lang.Object object,
                java.util.Collection<org.springframework.security.access.ConfigAttribute> attributes)
Specified by:
vote in interface org.springframework.security.access.AccessDecisionVoter<java.lang.Object>