Class AgentGroupAccessChecker

Checks if the given WebID belongs to a group that has access. Implements the behaviour of groups from the WAC specification.




  • Checks if the input can be handled by this class. If it cannot handle the input, rejects with an error explaining why.


    Returns Promise<void>

    A promise resolving if the input can be handled, rejecting with an Error if not.

  • Checks if the given agent is member of a given vCard group.


    • webId: string

      WebID of the agent that needs access.

    • group: Term

      URL of the vCard group that needs to be checked.

    Returns Promise<boolean>

    If the agent is member of the given vCard group.