Interface IUserReferenceResolver

  • All Superinterfaces:
    ISerializablePredicate<org.pac4j.core.profile.UserProfile>, Predicate<org.pac4j.core.profile.UserProfile>, Serializable

    public interface IUserReferenceResolver
    extends ISerializablePredicate<org.pac4j.core.profile.UserProfile>
    Common interface for user reference resolvers that help with identification of users defined by their user reference. Since Version 8.0.0 the user reference is defined as the universal reference ID.
    Since:
    8.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getClientDescriptor

        IClientDescriptor getClientDescriptor()
        Returns:
        the authentication client used by the user.
      • test

        boolean test​(org.pac4j.core.profile.UserProfile profile)
        Checks if the given user profile is the user defined by the user reference.
        Specified by:
        test in interface Predicate<org.pac4j.core.profile.UserProfile>
        Parameters:
        profile - to check.
        Returns:
        true if the given user profile is the user defined by the user reference and false otherwise.