Class IndirectClientAuthorizationAPI

    • Constructor Detail

      • IndirectClientAuthorizationAPI

        public IndirectClientAuthorizationAPI()
    • Method Detail

      • getAllByIds

        public Set<IndirectClientAuthorization> getAllByIds​(UserContext uc,
                                                            Set<Long> ids)
        Retrieves all indirect client authorizations with one of the given IDs.
        Parameters:
        uc - User context for database transactions.
        ids - of the entities.
        Returns:
        A set of indirect client authorizations that have one of the given IDs.
        Since:
        8.0.4
      • getByAuthenticator

        public List<IndirectClientAuthorization> getByAuthenticator​(UserContext uc,
                                                                    IAuthenticator<?> auth)
        Retrieves all indirect client authorizations that use the given authenticator.
        Parameters:
        uc - User context for database transactions.
        auth - The authenticator that is used by the indirect client authorization.
        Returns:
        A list of all indirect client authorizations that use the authenticator.
      • getByUserProfile

        public List<IndirectClientAuthorization> getByUserProfile​(UserContext uc,
                                                                  org.pac4j.core.profile.UserProfile userProfile)
        Returns all indirect client authorizations which match the profile based on the configured filter.
        Parameters:
        uc - user context for database transactions
        userProfile - to check for
        Returns:
        a list of indirect client authorizations which match the profile based on the configured filter.