Home Manual Reference Source Test Repository
import Certificates from 'opengate-js/src/security/Certificates.js'
public class | source

Certificates

Extends:

BaseProvisionSecurity → Certificates

This is a base object that contains all you can do about Certificates.

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public

create(rawFile: File): Promise

This invoke a request to OpenGate North API and the callback is managed by promises This method create an element certificate

public

This invoke a request to OpenGate North API and the callback is managed by promises This method update an element certificate

public

Set the administrativeState attribute

public

Set the description attribute

public

Set the domains attribute

public

Set the id attribute

public

Set the name attribute

public

Set the parameters attribute

public

Set the tags attribute

public

Set the usages attribute

Inherited Summary

From class BaseProvision
public

This invoke a request to OpenGate North API and the callback is managed by promises This function create a entity of provision

public

delete(body: *): Promise

This invoke a request to OpenGate North API and the callback is managed by promises This function deletes a entity of provision

public

This invoke a request to OpenGate North API and the callback is managed by promises This function updates a entity of provision

Public Constructors

public constructor(Reference: InternalOpenGateAPI) source

Constructor

Override:

Security#constructor

Params:

NameTypeAttributeDescription
Reference InternalOpenGateAPI

to the API object.

Public Methods

public create(rawFile: File): Promise source

This invoke a request to OpenGate North API and the callback is managed by promises This method create an element certificate

Override:

BaseProvision#create

Params:

NameTypeAttributeDescription
rawFile File

this File is the certificate

Return:

Promise

Return Properties:

NameTypeAttributeDescription
then function(result: object, statusCode: number)

When request it is OK

catch function(error: string)

When request it is NOK

public update(): Promise source

This invoke a request to OpenGate North API and the callback is managed by promises This method update an element certificate

Override:

BaseProvision#update

Return:

Promise

Return Properties:

NameTypeAttributeDescription
then function(result: object, statusCode: number)

When request it is OK

catch function(error: string)

When request it is NOK

public withAdministrativeState(administrativeState: string): Certificates source

Set the administrativeState attribute

Params:

NameTypeAttributeDescription
administrativeState string

Return:

Certificates

public withDescription(description: string): Certificates source

Set the description attribute

Params:

NameTypeAttributeDescription
description string

optional field

Return:

Certificates

public withDomains(domains: Array): Certificates source

Set the domains attribute

Params:

NameTypeAttributeDescription
domains Array

Return:

Certificates

public withId(id: string): Certificates source

Set the id attribute

Params:

NameTypeAttributeDescription
id string

required field on delete

Return:

Certificates

public withName(name: string): Certificates source

Set the name attribute

Params:

NameTypeAttributeDescription
name string

required field

Return:

Certificates

public withParameters(parameters: string): Certificates source

Set the parameters attribute

Params:

NameTypeAttributeDescription
parameters string

optional field

Return:

Certificates

public withTags(tags: Array): Certificates source

Set the tags attribute

Params:

NameTypeAttributeDescription
tags Array

Return:

Certificates

public withUsages(usages: Array): Certificates source

Set the usages attribute

Params:

NameTypeAttributeDescription
usages Array

Return:

Certificates