@inrupt/solid-client-access-grants / common/getters / AccessGrantWrapper

Class: AccessGrantWrapper#

common/getters.AccessGrantWrapper

This class wraps all the accessor functions on a raw Access Grant JSON object. It wraps all the supported Access Grants data models, namely GConsent.

Example

const rawGrant = await getAccessGrantFromRedirectUrl(someUrl, { fetch: session.fetch });
const grant = new AccessGrant(grant);
const grantOwner = grant.getResourceOwner();

Constructors#

constructor#

new AccessGrantWrapper(vc): AccessGrantWrapper

Parameters#

Name

Type

vc

DatasetWithId

Returns#

AccessGrantWrapper

Defined in#

src/common/getters.ts:454

Properties#

vc#

Private vc: DatasetWithId

Defined in#

src/common/getters.ts:452

Methods#

getAccessModes#

getAccessModes(): AccessModes

Returns#

AccessModes

Defined in#

src/common/getters.ts:478


getExpirationDate#

getExpirationDate(): undefined | Date

Returns#

undefined | Date

Defined in#

src/common/getters.ts:494


getId#

getId(): string

Returns#

string

Defined in#

src/common/getters.ts:482


getInbox#

getInbox(): undefined | string

Returns#

undefined | string

Defined in#

src/common/getters.ts:462


getInherit#

getInherit(): boolean

Returns#

boolean

Defined in#

src/common/getters.ts:502


getIssuanceDate#

getIssuanceDate(): Date

Returns#

Date

Defined in#

src/common/getters.ts:490


getIssuer#

getIssuer(): string

Returns#

string

Defined in#

src/common/getters.ts:498


getPurposes#

getPurposes(): string[]

Returns#

string[]

Defined in#

src/common/getters.ts:458


getRequestor#

getRequestor(): string

Returns#

string

Defined in#

src/common/getters.ts:474


getResourceOwner#

getResourceOwner(): undefined | string

Returns#

undefined | string

Defined in#

src/common/getters.ts:470


getResources#

getResources(): string[]

Returns#

string[]

Defined in#

src/common/getters.ts:466


getTypes#

getTypes(): string[]

Returns#

string[]

Defined in#

src/common/getters.ts:486