Home Reference Source Test
public class | source

MessageBody

Extends:

RethinkObject → MessageBody

Constructor Summary

Public Constructor
public

constructor(idToken: Identity.JWT, accessToken: Identity.JWT, resource: URL.URL, schema: URL.HypertyCatalogueURL, assertedIdentity: Identity.Identity)

Member Summary

Public Members
public
public
public

idToken: *

public
public

schema: *

public

via: *

Method Summary

Public Methods
public

addVia(token: Identity.JWT): MessageBody

Adds a via URL to the given message body.

Inherited Summary

From class RethinkObject
public

validate(schema: *): boolean

Validates this RethinkObject against the provided schema.

Public Constructors

public constructor(idToken: Identity.JWT, accessToken: Identity.JWT, resource: URL.URL, schema: URL.HypertyCatalogueURL, assertedIdentity: Identity.Identity) source

Params:

NameTypeAttributeDescription
idToken Identity.JWT

token for Identity assertion purpose

accessToken Identity.JWT

token for access control

resource URL.URL

URL of the object

schema URL.HypertyCatalogueURL

URL of the Data object schema stored in the Catalogue

assertedIdentity Identity.Identity

AssertedIdentity is compliant with User Identity Data Model

Public Members

public accessToken: * source

public assertedIdentity: * source

public idToken: * source

public resource: * source

public schema: * source

public via: * source

Public Methods

public addVia(token: Identity.JWT): MessageBody source

Adds a via URL to the given message body. The "MessageBody.via" attribute contains a list of all Protostub addresses (Protostub) that the message has been passed through. It is used to prevent infinite cycles in the Hyperty Messaging Framework.

Params:

NameTypeAttributeDescription
token Identity.JWT

identity token to include in the message

Return:

MessageBody

the updated message body