Skip to main content

Class: MtlsAuthSpec

namespace.v1.MtlsAuthSpec

Represents a MtlsAuthSpec.

Implements

Constructors

constructor

new MtlsAuthSpec(properties?): MtlsAuthSpec

Constructs a new MtlsAuthSpec.

Parameters

NameTypeDescription
properties?IMtlsAuthSpecProperties to set

Returns

MtlsAuthSpec

Properties

acceptedClientCa

acceptedClientCa: string

The base64 encoded ca cert(s) in PEM format that the clients can use for authentication and authorization. This must only be one value, but the CA can have a chain.

(-- api-linter: core::0140::base64=disabled --)

Implementation of

IMtlsAuthSpec.acceptedClientCa


certificateFilters

certificateFilters: ICertificateFilterSpec[]

Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters. This allows limiting access to specific end-entity certificates. Optional, default is empty.

Implementation of

IMtlsAuthSpec.certificateFilters


enabled

enabled: boolean

Flag to enable mTLS auth (default: disabled). Note: disabling mTLS auth will cause existing mTLS connections to fail. temporal:versioning:min_version=2024-05-13-00

Implementation of

IMtlsAuthSpec.enabled

Methods

toJSON

toJSON(): Object

Converts this MtlsAuthSpec to JSON.

Returns

Object

JSON object


create

create(properties?): MtlsAuthSpec

Creates a new MtlsAuthSpec instance using the specified properties.

Parameters

NameTypeDescription
properties?IMtlsAuthSpecProperties to set

Returns

MtlsAuthSpec

MtlsAuthSpec instance


decode

decode(reader, length?): MtlsAuthSpec

Decodes a MtlsAuthSpec message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

MtlsAuthSpec

MtlsAuthSpec

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): MtlsAuthSpec

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

MtlsAuthSpec

MtlsAuthSpec

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

Encodes the specified MtlsAuthSpec message. Does not implicitly temporal.api.cloud.namespace.v1.MtlsAuthSpec.verify|verify messages.

Parameters

NameTypeDescription
messageIMtlsAuthSpecMtlsAuthSpec message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified MtlsAuthSpec message, length delimited. Does not implicitly temporal.api.cloud.namespace.v1.MtlsAuthSpec.verify|verify messages.

Parameters

NameTypeDescription
messageIMtlsAuthSpecMtlsAuthSpec message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): MtlsAuthSpec

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

MtlsAuthSpec

MtlsAuthSpec


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for MtlsAuthSpec

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageMtlsAuthSpecMtlsAuthSpec
options?IConversionOptionsConversion options

Returns

Object

Plain object