All files / lib issue-software-certificate-response.js

60.86% Statements 84/138
100% Branches 0/0
0% Functions 0/16
60.86% Lines 84/138

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 1381x 1x 1x 1x 1x                                 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x     1x 1x 1x 1x 1x 1x 1x     1x 1x 1x     1x 1x 1x 1x 1x 1x 1x     1x 1x 1x     1x 1x 1x 1x 1x 1x     1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x 1x     1x 1x                     1x 1x 1x
'use strict';
 
class IssueSoftwareCertificateResponse {
 
	constructor({ model,
		certificateDer,
		certificatePem,
		publicKeyDer,
		publicKeyPem,
		privateKeyPkcs8Der,
		privateKeyPkcs8Pem,
		privateKeyPkcs12Der,
		privateKeyPkcs12Pem } = {}) {
		this._model = model || null;
		this._certificateDer = certificateDer || null;
		this._certificatePem = certificatePem || null;
		this._publicKeyDer = publicKeyDer || null;
		this._publicKeyPem = publicKeyPem || null;
		this._privateKeyPkcs8Der = privateKeyPkcs8Der || null;
		this._privateKeyPkcs8Pem = privateKeyPkcs8Pem || null;
	}
 
	//endregion
 
	//region "model" Accessors
 
 
	get model() {
		return this._model;
	}
 
 
	set model(value) {
		this._model = value;
	}
 
	//endregion
 
	//endregion
 
	//region "certificateDer" Accessors
 
 
	get certificateDer() {
		return this._certificateDer;
	}
 
 
	set certificateDer(value) {
		this._certificateDer = value;
	}
 
	//endregion
 
	//region "certificatePem" Accessors
 
 
 
	get certificatePem() {
		return this._certificatePem;
	}
 
 
	set certificatePem(value) {
		this._certificatePem = value;
	}
 
	//endregion
 
	//region "publicKeyDer" Accessors
 
 
	get publicKeyDer() {
		return this._publicKeyDer;
	}
 
 
	set publicKeyDer(value) {
		this._publicKeyDer = value;
	}
 
	//endregion
 
	//region "publicKeyPem" Accessors
 
 
	get publicKeyPem() {
		return this._publicKeyPem;
	}
 
 
	set publicKeyPem(value) {
		this._publicKeyPem = value;
	}
 
	//endregion
 
	//region "privateKeyPkcs8Der" Accessors
 
	get privateKeyPkcs8Der() {
		return this._privateKeyPkcs8Der;
	}
 
 
	set privateKeyPkcs8Der(value) {
		this._privateKeyPkcs8Der = value;
	}
 
	//endregion
 
	//region "privateKeyPkcs8Pem" Accessors
 
 
 
	get privateKeyPkcs8Pem() {
		return this._privateKeyPkcs8Pem;
	}
 
 
 
	set privateKeyPkcs8Pem(value) {
		this._privateKeyPkcs8Pem = value;
	}
 
	toModel() {
		return {
			model: this._model,
			certificateDer: this._certificateDer,
			certificatePem: this._certificatePem,
			publicKeyDer: this._publicKeyDer,
			publicKeyPem: this._publicKeyPem,
			privateKeyPkcs8Der: this._privateKeyPkcs8Der,
			privateKeyPkcs8Pem: this._privateKeyPkcs8Pem,
		};
	}
}
 
exports.IssueSoftwareCertificateResponse = IssueSoftwareCertificateResponse;