Skip to main content

Class: ADVSignedDeviceIdentityHMAC

Defined in: WAProto/index.d.ts:383

Represents a ADVSignedDeviceIdentityHMAC.

Implements

Constructors

new ADVSignedDeviceIdentityHMAC()

new ADVSignedDeviceIdentityHMAC(properties?): ADVSignedDeviceIdentityHMAC

Defined in: WAProto/index.d.ts:389

Constructs a new ADVSignedDeviceIdentityHMAC.

Parameters

properties?

IADVSignedDeviceIdentityHMAC

Properties to set

Returns

ADVSignedDeviceIdentityHMAC

Properties

accountType?

optional accountType: null | ADVEncryptionType

Defined in: WAProto/index.d.ts:398

ADVSignedDeviceIdentityHMAC accountType.

Implementation of

IADVSignedDeviceIdentityHMAC.accountType


details?

optional details: null | Uint8Array<ArrayBufferLike>

Defined in: WAProto/index.d.ts:392

ADVSignedDeviceIdentityHMAC details.

Implementation of

IADVSignedDeviceIdentityHMAC.details


hmac?

optional hmac: null | Uint8Array<ArrayBufferLike>

Defined in: WAProto/index.d.ts:395

ADVSignedDeviceIdentityHMAC hmac.

Implementation of

IADVSignedDeviceIdentityHMAC.hmac

Methods

toJSON()

toJSON(): object

Defined in: WAProto/index.d.ts:468

Converts this ADVSignedDeviceIdentityHMAC to JSON.

Returns

object

JSON object


create()

static create(properties?): ADVSignedDeviceIdentityHMAC

Defined in: WAProto/index.d.ts:405

Creates a new ADVSignedDeviceIdentityHMAC instance using the specified properties.

Parameters

properties?

IADVSignedDeviceIdentityHMAC

Properties to set

Returns

ADVSignedDeviceIdentityHMAC

ADVSignedDeviceIdentityHMAC instance


decode()

static decode(reader, length?): ADVSignedDeviceIdentityHMAC

Defined in: WAProto/index.d.ts:431

Decodes a ADVSignedDeviceIdentityHMAC message from the specified reader or buffer.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

length?

number

Message length if known beforehand

Returns

ADVSignedDeviceIdentityHMAC

ADVSignedDeviceIdentityHMAC

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): ADVSignedDeviceIdentityHMAC

Defined in: WAProto/index.d.ts:440

Decodes a ADVSignedDeviceIdentityHMAC message from the specified reader or buffer, length delimited.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

ADVSignedDeviceIdentityHMAC

ADVSignedDeviceIdentityHMAC

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode()

static encode(message, writer?): Writer

Defined in: WAProto/index.d.ts:413

Encodes the specified ADVSignedDeviceIdentityHMAC message. Does not implicitly verify messages.

Parameters

message

IADVSignedDeviceIdentityHMAC

ADVSignedDeviceIdentityHMAC message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


encodeDelimited()

static encodeDelimited(message, writer?): Writer

Defined in: WAProto/index.d.ts:421

Encodes the specified ADVSignedDeviceIdentityHMAC message, length delimited. Does not implicitly verify messages.

Parameters

message

IADVSignedDeviceIdentityHMAC

ADVSignedDeviceIdentityHMAC message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): ADVSignedDeviceIdentityHMAC

Defined in: WAProto/index.d.ts:454

Creates a ADVSignedDeviceIdentityHMAC message from a plain object. Also converts values to their respective internal types.

Parameters

object

Plain object

Returns

ADVSignedDeviceIdentityHMAC

ADVSignedDeviceIdentityHMAC


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

Defined in: WAProto/index.d.ts:475

Gets the default type url for ADVSignedDeviceIdentityHMAC

Parameters

typeUrlPrefix?

string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject()

static toObject(message, options?): object

Defined in: WAProto/index.d.ts:462

Creates a plain object from a ADVSignedDeviceIdentityHMAC message. Also converts values to other types if specified.

Parameters

message

ADVSignedDeviceIdentityHMAC

ADVSignedDeviceIdentityHMAC

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

Defined in: WAProto/index.d.ts:447

Verifies a ADVSignedDeviceIdentityHMAC message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not