@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 |
---|---|
|
|
Returns#
Defined in#
Properties#
vc#
• Private
vc: DatasetWithId
Defined in#
Methods#
getAccessModes#
▸ getAccessModes(): AccessModes
Returns#
Defined in#
getExpirationDate#
▸ getExpirationDate(): undefined
| Date
Returns#
undefined
| Date
Defined in#
getId#
▸ getId(): string
Returns#
string
Defined in#
getInbox#
▸ getInbox(): undefined
| string
Returns#
undefined
| string
Defined in#
getInherit#
▸ getInherit(): boolean
Returns#
boolean
Defined in#
getIssuanceDate#
▸ getIssuanceDate(): Date
Returns#
Date
Defined in#
getIssuer#
▸ getIssuer(): string
Returns#
string
Defined in#
getPurposes#
▸ getPurposes(): string
[]
Returns#
string
[]
Defined in#
getRequestor#
▸ getRequestor(): string
Returns#
string
Defined in#
getResourceOwner#
▸ getResourceOwner(): undefined
| string
Returns#
undefined
| string
Defined in#
getResources#
▸ getResources(): string
[]
Returns#
string
[]
Defined in#
getTypes#
▸ getTypes(): string
[]
Returns#
string
[]