Class DefaultPrincipalElectionStrategy

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

    public class DefaultPrincipalElectionStrategy
    extends java.lang.Object
    implements org.apereo.cas.authentication.PrincipalElectionStrategy
    This is DefaultPrincipalElectionStrategy that selects the primary principal to be the first principal in the chain of authentication history.
    Since:
    4.2.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apereo.cas.authentication.principal.Principal getPrincipalFromAuthentication​(java.util.Collection<org.apereo.cas.authentication.Authentication> authentications)
      Gets principal from authentication.
      org.apereo.cas.authentication.principal.Principal nominate​(java.util.Collection<org.apereo.cas.authentication.Authentication> authentications, java.util.Map<java.lang.String,java.lang.Object> principalAttributes)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultPrincipalElectionStrategy

        public DefaultPrincipalElectionStrategy()
    • Method Detail

      • 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.lang.Object> principalAttributes)
        Specified by:
        nominate in interface org.apereo.cas.authentication.PrincipalElectionStrategy
      • getPrincipalFromAuthentication

        protected org.apereo.cas.authentication.principal.Principal getPrincipalFromAuthentication​(java.util.Collection<org.apereo.cas.authentication.Authentication> authentications)
        Gets principal from authentication.
        Parameters:
        authentications - the authentications
        Returns:
        the principal from authentication