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
Since:
6.2.0
See Also:
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE

    Fields inherited from interface org.apereo.cas.authentication.PrincipalElectionStrategy

    BEAN_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChainingPrincipalElectionStrategy(List<org.apereo.cas.authentication.PrincipalElectionStrategy> chain)
     
    ChainingPrincipalElectionStrategy(org.apereo.cas.authentication.PrincipalElectionStrategy... chain)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apereo.cas.authentication.principal.merger.AttributeMerger
     
    List<org.apereo.cas.authentication.PrincipalElectionStrategy>
     
    org.apereo.cas.authentication.principal.Principal
    nominate(Collection<org.apereo.cas.authentication.Authentication> authentications, Map<String,List<Object>> principalAttributes)
     
    org.apereo.cas.authentication.principal.Principal
    nominate(List<org.apereo.cas.authentication.principal.Principal> principals, Map<String,List<Object>> attributes)
     
    void
    registerElectionStrategy(org.apereo.cas.authentication.PrincipalElectionStrategy factory)
    Register election strategy.
    void
    setAttributeMerger(org.apereo.cas.authentication.principal.merger.AttributeMerger attributeMerger)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      nominate in interface org.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:
      nominate in interface org.apereo.cas.authentication.PrincipalElectionStrategy
    • getChain

      public List<org.apereo.cas.authentication.PrincipalElectionStrategy> getChain()
    • getAttributeMerger

      public org.apereo.cas.authentication.principal.merger.AttributeMerger getAttributeMerger()
      Specified by:
      getAttributeMerger in interface org.apereo.cas.authentication.PrincipalElectionStrategy
    • setAttributeMerger

      public void setAttributeMerger(org.apereo.cas.authentication.principal.merger.AttributeMerger attributeMerger)