Constructors
constructor
- new Macaroon(location: string, identifier: string, signature: Buffer, caveats?: CaveatPacket[]): Macaroon
-
Parameters
-
location: string
-
identifier: string
-
signature: Buffer
-
Properties
caveatPackets
identifier
identifier: string
location
location: string
signature
signature: string
signatureBuffer
signatureBuffer: Buffer
Methods
Private createCaveatsPackets
- createCaveatsPackets(caveats: any): any
-
Parameters
Returns any
Private createKeyValuePacket
- createKeyValuePacket(type: any, value: any): any
-
Parameters
Returns any
inspect
-
Returns string
serialize
-
Returns string
Macaroons: Cookies with Contextual Caveats for Decentralized Authorization in the Cloud
This is an immutable and serializable object. Use MacaroonsBuilder to modify it. Use MacaroonsVerifier to verify it.http://research.google.com/pubs/pub41892.html