Example usage for org.springframework.security.access AccessDecisionVoter interface-usage

List of usage examples for org.springframework.security.access AccessDecisionVoter interface-usage

Introduction

In this page you can find the example usage for org.springframework.security.access AccessDecisionVoter interface-usage.

Usage

From source file authentication.RoleVetor.java

/**
 * 
 * 
 * @author Joo Batista
 * @version 1.0 27 de out de 2016
 */

From source file grails.plugin.springsecurity.acl.access.GroovyAwareAclVoter.java

/**
 * Dummy voter that votes yes on Groovy methods like getMetaClass() since they wouldn't be
 * secured but if all voters abstain access is denied.
 *
 * @author <a href='mailto:burt@burtbeckwith.com'>Burt Beckwith</a>
 */

From source file com.sample.webserviceprocess.security.RoleVoter.java

/**
 * Votes if any {@link ConfigAttribute#getAttribute()} starts with a prefix
 * indicating that it is a role. The default prefix string is <Code>ROLE_</code>,
 * but this may be overridden to any value. It may also be set to empty, which
 * means that essentially any attribute will be voted on. As described further
 * below, the effect of an empty prefix may not be quite desirable.

From source file de.iew.framework.security.access.WebResourceAccessDecisionVoter.java

/**
 * Implements the {@link AccessDecisionVoter} interface to test web resource
 * access against access rule defined by our domain model.
 *
 * @author Manuel Schulze <manuel_schulze@i-entwicklung.de>
 * @since 12.01.13 - 00:09

From source file org.springframework.security.access.prepost.PreInvocationAuthorizationAdviceVoter.java

/**
 * Voter which performs the actions using a PreInvocationAuthorizationAdvice
 * implementation generated from @PreFilter and @PreAuthorize annotations.
 * <p>
 * In practice, if these annotations are being used, they will normally contain all the
 * necessary access control logic, so a voter-based system is not really necessary and a

From source file org.codehaus.groovy.grails.plugins.springsecurity.acl.GroovyAwareAclVoter.java

/**
 * Dummy voter that votes yes on Groovy methods like getMetaClass() since they wouldn't be
 * secured but if all voters abstain access is denied.
 *
 * @author <a href='mailto:burt@burtbeckwith.com'>Burt Beckwith</a>
 */

From source file org.ngrinder.security.UserSwitchPermissionVoter.java

/**
 * User Switch Recognized Voter for SVN.
 *
 * @author JunHo Yoon
 * @since 3.2
 */

From source file grails.plugin.springsecurity.web.access.expression.WebExpressionVoter.java

/**
 * Based on the class of the same name in Spring Security which uses the
 * package-default WebExpressionConfigAttribute.
 *
 * @author Luke Taylor
 * @author <a href='mailto:burt@burtbeckwith.com'>Burt Beckwith</a>

From source file be.dnsbelgium.rate.spring.security.LeakyBucketVoter.java

public class LeakyBucketVoter<T extends LeakyBucketKey> implements AccessDecisionVoter<Object> {

    private static final Logger LOGGER = LoggerFactory.getLogger(LeakyBucketVoter.class);

    public static final int TOO_MANY_REQUESTS_HTTP_CODE = 429;

From source file grails.plugin.springsecurity.access.vote.ClosureVoter.java

/**
 * @author <a href='mailto:burt@burtbeckwith.com'>Burt Beckwith</a>
 */
public class ClosureVoter implements AccessDecisionVoter<FilterInvocation>, ApplicationContextAware {

    protected final Logger log = LoggerFactory.getLogger(getClass());