public class

Jsr250Voter

extends Object
implements AccessDecisionVoter<S>
java.lang.Object
   ↳ org.springframework.security.access.annotation.Jsr250Voter

Class Overview

Voter on JSR-250 configuration attributes.

Summary

[Expand]
Inherited Constants
From interface org.springframework.security.access.AccessDecisionVoter
Public Constructors
Jsr250Voter()
Public Methods
boolean supports(Class<?> clazz)
All classes are supported.
boolean supports(ConfigAttribute configAttribute)
The specified config attribute is supported if its an instance of a Jsr250SecurityConfig.
int vote(Authentication authentication, Object object, Collection<ConfigAttribute> definition)
Votes according to JSR 250.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.security.access.AccessDecisionVoter

Public Constructors

public Jsr250Voter ()

Public Methods

public boolean supports (Class<?> clazz)

All classes are supported.

Parameters
clazz the class.
Returns
  • true

public boolean supports (ConfigAttribute configAttribute)

The specified config attribute is supported if its an instance of a Jsr250SecurityConfig.

Parameters
configAttribute The config attribute.
Returns
  • whether the config attribute is supported.

public int vote (Authentication authentication, Object object, Collection<ConfigAttribute> definition)

Votes according to JSR 250.

If no JSR-250 attributes are found, it will abstain, otherwise it will grant or deny access based on the attributes that are found.

Parameters
authentication The authentication object.
object The access object.
definition The configuration definition.
Returns
  • The vote.