Package org.apereo.cas.authentication
Interface PrincipalElectionStrategy
- All Superinterfaces:
org.springframework.core.Ordered,Serializable
This is
PrincipalElectionStrategy that attempts to nominate a given principal
as the primary principal object amongst many authentication events.- Since:
- 4.2.0
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionGets attribute merger.default intgetOrder()nominate(Collection<Authentication> authentications, Map<String, List<Object>> principalAttributes) Elect the principal.Nominate principal.
-
Field Details
-
BEAN_NAME
Default implementation bean name.- See Also:
-
-
Method Details
-
nominate
Principal nominate(Collection<Authentication> authentications, Map<String, List<Object>> principalAttributes) throws ThrowableElect the principal.- Parameters:
authentications- the authenticationsprincipalAttributes- the principal attributes- Returns:
- the principal
- Throws:
Throwable
-
nominate
Principal nominate(List<Principal> principals, Map<String, List<Object>> attributes) throws ThrowableNominate principal.- Parameters:
principals- the principalsattributes- the attributes- Returns:
- the principal
- Throws:
Throwable
-
getOrder
default int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
getAttributeMerger
AttributeMerger getAttributeMerger()Gets attribute merger.- Returns:
- the attribute merger
-