AclAuthorization

data class AclAuthorization(val subject: String, val accessTo: List<String> = emptyList(), val default: List<String> = emptyList(), val modes: Set<String> = emptySet(), val agents: List<String> = emptyList(), val agentClasses: List<String> = emptyList(), val agentGroups: List<String> = emptyList(), val origins: List<String> = emptyList())

A single WAC authorization rule (acl:Authorization).

Each authorization grants a set of modes to a set of agents / agentClasses / agentGroups on the resources identified by accessTo (direct) or inherited by members of containers in default.

Spec: https://solidproject.org/TR/wac

Constructors

Link copied to clipboard
constructor(subject: String, accessTo: List<String> = emptyList(), default: List<String> = emptyList(), modes: Set<String> = emptySet(), agents: List<String> = emptyList(), agentClasses: List<String> = emptyList(), agentGroups: List<String> = emptyList(), origins: List<String> = emptyList())

Properties

Link copied to clipboard

IRIs of specific resources this authorization applies to directly.

Link copied to clipboard

Agent classes granted access. Common values: foaf:Agent (public), acl:AuthenticatedAgent.

Link copied to clipboard

Group resources (vcard:Group) whose members are granted access.

Link copied to clipboard

Individual agents granted access, identified by WebID.

Link copied to clipboard

IRIs of containers whose members inherit this authorization (acl:default).

Link copied to clipboard

Access modes granted (e.g. acl:Read, acl:Write, acl:Append, acl:Control).

Link copied to clipboard

HTTP Origins that are permitted for this authorization. Empty means all origins are permitted.

Link copied to clipboard

Identifier of this authorization node (blank node or IRI).

Functions

Link copied to clipboard

true if this authorization permits appending. Folds in acl:Write for convenience, since a write grant subsumes the ability to append even though WAC asserts the modes independently.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns true if this authorization applies to the public (foaf:Agent agentClass).