Class ChainingPrincipalElectionStrategy

  • All Implemented Interfaces:
    java.io.Serializable, org.apereo.cas.authentication.PrincipalElectionStrategy, org.springframework.core.Ordered

    public class ChainingPrincipalElectionStrategy
    extends java.lang.Object
    implements org.apereo.cas.authentication.PrincipalElectionStrategy
    Since:
    6.2.0
    See Also:
    Serialized Form
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apereo.cas.authentication.principal.Principal nominate​(java.util.Collection<org.apereo.cas.authentication.Authentication> authentications, java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> principalAttributes)  
      org.apereo.cas.authentication.principal.Principal nominate​(java.util.List<org.apereo.cas.authentication.principal.Principal> principals, java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> attributes)  
      void registerElectionStrategy​(org.apereo.cas.authentication.PrincipalElectionStrategy factory)
      Register election strategy.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.authentication.PrincipalElectionStrategy

        getAttributeMerger, getOrder
    • Constructor Detail

      • ChainingPrincipalElectionStrategy

        public ChainingPrincipalElectionStrategy​(org.apereo.cas.authentication.PrincipalElectionStrategy... chain)
    • Method Detail

      • 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​(java.util.Collection<org.apereo.cas.authentication.Authentication> authentications,
                                                                          java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> principalAttributes)
        Specified by:
        nominate in interface org.apereo.cas.authentication.PrincipalElectionStrategy
      • nominate

        public org.apereo.cas.authentication.principal.Principal nominate​(java.util.List<org.apereo.cas.authentication.principal.Principal> principals,
                                                                          java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> attributes)
        Specified by:
        nominate in interface org.apereo.cas.authentication.PrincipalElectionStrategy