Package org.uberfire.security.impl.authz
Class ConsensusBasedVoter
- java.lang.Object
-
- org.uberfire.security.impl.authz.ConsensusBasedVoter
-
- All Implemented Interfaces:
VotingAlgorithm
public class ConsensusBasedVoter extends Object implements VotingAlgorithm
Algorithm implementation of theVotingStrategy.CONSENSUSstrategy.
-
-
Constructor Summary
Constructors Constructor Description ConsensusBasedVoter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationResultvote(Iterable<AuthorizationResult> results)It get a list of results as input and votes for a winning result.
-
-
-
Method Detail
-
vote
public AuthorizationResult vote(Iterable<AuthorizationResult> results)
Description copied from interface:VotingAlgorithmIt get a list of results as input and votes for a winning result.- Specified by:
votein interfaceVotingAlgorithm
-
-