Package org.apereo.cas.authentication
Class DefaultPrincipalElectionStrategy
- java.lang.Object
-
- org.apereo.cas.authentication.DefaultPrincipalElectionStrategy
-
- All Implemented Interfaces:
java.io.Serializable,org.apereo.cas.authentication.PrincipalElectionStrategy
public class DefaultPrincipalElectionStrategy extends java.lang.Object implements org.apereo.cas.authentication.PrincipalElectionStrategyThis isDefaultPrincipalElectionStrategythat selects the primary principal to be the first principal in the chain of authentication history.- Since:
- 4.2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultPrincipalElectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apereo.cas.authentication.principal.PrincipalgetPrincipalFromAuthentication(java.util.Collection<org.apereo.cas.authentication.Authentication> authentications)Gets principal from authentication.org.apereo.cas.authentication.principal.Principalnominate(java.util.Collection<org.apereo.cas.authentication.Authentication> authentications, java.util.Map<java.lang.String,java.lang.Object> principalAttributes)
-
-
-
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:
nominatein interfaceorg.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
-
-