Skip to main content

@bloock/sdk / SubjectCertificateParams

Class: SubjectCertificateParams

Represents parameters for generating a subject certificate.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SubjectCertificateParams(commonName, organization?, organizationUnit?, location?, state?, country?): SubjectCertificateParams

Constructs a SubjectCertificateParams object with the specified parameters.

Parameters

NameType
commonNamestring
organization?string
organizationUnit?string
location?string
state?string
country?string

Returns

SubjectCertificateParams

Defined in

entity/key/subject_certificate_params.ts:41

Properties

commonName

commonName: string

Is the common name (CN) for the certificate. Required.

Defined in

entity/key/subject_certificate_params.ts:10


country

Optional country: string

Is the country (C) for the certificate. (Optional)

Defined in

entity/key/subject_certificate_params.ts:30


location

Optional location: string

Is the location (L) for the certificate. (Optional)

Defined in

entity/key/subject_certificate_params.ts:22


organization

Optional organization: string

Is the organization (O) for the certificate. (Optional)

Defined in

entity/key/subject_certificate_params.ts:14


organizationUnit

Optional organizationUnit: string

Is the organizational unit (OU) for the certificate. (Optional)

Defined in

entity/key/subject_certificate_params.ts:18


state

Optional state: string

Is the state or province (ST) for the certificate. (Optional)

Defined in

entity/key/subject_certificate_params.ts:26

Methods

toProto

toProto(): CertificateSubject

Returns

CertificateSubject

Defined in

entity/key/subject_certificate_params.ts:57