Class ChainingPrincipalElectionStrategy
java.lang.Object
org.apereo.cas.authentication.principal.ChainingPrincipalElectionStrategy
- All Implemented Interfaces:
Serializable,org.apereo.cas.authentication.PrincipalElectionStrategy,org.springframework.core.Ordered
public class ChainingPrincipalElectionStrategy
extends Object
implements org.apereo.cas.authentication.PrincipalElectionStrategy
This is
ChainingPrincipalElectionStrategy.- Since:
- 6.2.0
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface org.apereo.cas.authentication.PrincipalElectionStrategy
BEAN_NAME -
Constructor Summary
ConstructorsConstructorDescriptionChainingPrincipalElectionStrategy(List<org.apereo.cas.authentication.PrincipalElectionStrategy> chain) ChainingPrincipalElectionStrategy(org.apereo.cas.authentication.PrincipalElectionStrategy... chain) -
Method Summary
Modifier and TypeMethodDescriptionorg.apereo.cas.authentication.principal.merger.AttributeMergerList<org.apereo.cas.authentication.PrincipalElectionStrategy> getChain()org.apereo.cas.authentication.principal.Principalnominate(Collection<org.apereo.cas.authentication.Authentication> authentications, Map<String, List<Object>> principalAttributes) org.apereo.cas.authentication.principal.Principalnominate(List<org.apereo.cas.authentication.principal.Principal> principals, Map<String, List<Object>> attributes) voidregisterElectionStrategy(org.apereo.cas.authentication.PrincipalElectionStrategy factory) Register election strategy.voidsetAttributeMerger(org.apereo.cas.authentication.principal.merger.AttributeMerger attributeMerger) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apereo.cas.authentication.PrincipalElectionStrategy
getOrder
-
Constructor Details
-
ChainingPrincipalElectionStrategy
public ChainingPrincipalElectionStrategy(org.apereo.cas.authentication.PrincipalElectionStrategy... chain) -
ChainingPrincipalElectionStrategy
public ChainingPrincipalElectionStrategy(List<org.apereo.cas.authentication.PrincipalElectionStrategy> chain)
-
-
Method Details
-
registerElectionStrategy
public void registerElectionStrategy(org.apereo.cas.authentication.PrincipalElectionStrategy factory) Register election strategy.- Parameters:
factory- the factory
-
nominate
public org.apereo.cas.authentication.principal.Principal nominate(Collection<org.apereo.cas.authentication.Authentication> authentications, Map<String, List<Object>> principalAttributes) - Specified by:
nominatein interfaceorg.apereo.cas.authentication.PrincipalElectionStrategy
-
nominate
public org.apereo.cas.authentication.principal.Principal nominate(List<org.apereo.cas.authentication.principal.Principal> principals, Map<String, List<Object>> attributes) - Specified by:
nominatein interfaceorg.apereo.cas.authentication.PrincipalElectionStrategy
-
getChain
-
getAttributeMerger
public org.apereo.cas.authentication.principal.merger.AttributeMerger getAttributeMerger()- Specified by:
getAttributeMergerin interfaceorg.apereo.cas.authentication.PrincipalElectionStrategy
-
setAttributeMerger
public void setAttributeMerger(org.apereo.cas.authentication.principal.merger.AttributeMerger attributeMerger)
-