Class Jsr250Voter

    • Constructor Detail

      • Jsr250Voter

        public Jsr250Voter()
        Deprecated.
    • Method Detail

      • supports

        public boolean supports​(ConfigAttribute configAttribute)
        Deprecated.
        The specified config attribute is supported if its an instance of a Jsr250SecurityConfig.
        Specified by:
        supports in interface AccessDecisionVoter<java.lang.Object>
        Parameters:
        configAttribute - The config attribute.
        Returns:
        whether the config attribute is supported.
      • supports

        public boolean supports​(java.lang.Class<?> clazz)
        Deprecated.
        All classes are supported.
        Specified by:
        supports in interface AccessDecisionVoter<java.lang.Object>
        Parameters:
        clazz - the class.
        Returns:
        true
      • vote

        public int vote​(Authentication authentication,
                        java.lang.Object object,
                        java.util.Collection<ConfigAttribute> definition)
        Deprecated.
        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.

        Specified by:
        vote in interface AccessDecisionVoter<java.lang.Object>
        Parameters:
        authentication - The authentication object.
        object - The access object.
        definition - The configuration definition.
        Returns:
        The vote.