Interface PrincipalElectionStrategy

  • All Superinterfaces:
    java.io.Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface PrincipalElectionStrategy
    extends java.io.Serializable
    This is PrincipalElectionStrategy that attempts to nominate a given principal as the primary principal object amongst many authentication events.
    Since:
    4.2.0
    • Method Detail

      • nominate

        Principal nominate​(java.util.Collection<Authentication> authentications,
                           java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> principalAttributes)
        Elect the principal.
        Parameters:
        authentications - the authentications
        principalAttributes - the principal attributes
        Returns:
        the principal