Skip to main content

Class: MtlsAuthSpec

namespace.v1.MtlsAuthSpec

Represents a MtlsAuthSpec.

Properties​

acceptedClientCa​

• acceptedClientCa: Uint8Array

The 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. temporal:versioning:min_version=v0.2.0


acceptedClientCaDeprecated​

• acceptedClientCaDeprecated: 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 --) Deprecated: Not supported after v0.2.0 api version. Use accepted_client_ca instead. temporal:versioning:max_version=v0.2.0


certificateFilters​

• certificateFilters: $Properties[]

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.


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=v0.2.0

Methods​

toJSON​

▸ toJSON(): Object

Converts this MtlsAuthSpec to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): MtlsAuthSpec & $Properties

Creates a new MtlsAuthSpec instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

MtlsAuthSpec & $Properties

MtlsAuthSpec instance

▸ create(properties?): MtlsAuthSpec

Parameters​

NameType
properties?$Properties

Returns​

MtlsAuthSpec


decode​

▸ decode(reader, length?): MtlsAuthSpec & $Properties

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 & $Properties

MtlsAuthSpec

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): MtlsAuthSpec & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

MtlsAuthSpec & $Properties

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
message$PropertiesMtlsAuthSpec 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
message$PropertiesMtlsAuthSpec 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


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