public interface PrincipalElectionStrategy
extends java.io.Serializable
PrincipalElectionStrategy
that attempts to nominate a given principal
as the primary principal object amongst many authentication events.Modifier and Type | Method and Description |
---|---|
Principal |
nominate(java.util.Collection<Authentication> authentications,
java.util.Map<java.lang.String,java.lang.Object> principalAttributes)
Elect the principal.
|
Principal nominate(java.util.Collection<Authentication> authentications, java.util.Map<java.lang.String,java.lang.Object> principalAttributes)
authentications
- the authenticationsprincipalAttributes
- the principal attributes