All files / lib issue-pkcs12-cert-request.js

57.5% Statements 46/80
100% Branches 0/0
0% Functions 0/14
57.5% Lines 46/80

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 801x 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 IssuePkcs12CertificateRequest {
 
	constructor({ orderId, password, keySize } = {}) {
		this._orderId = orderId || null;
		this._password = password || null;
		this._keySize = keySize || null;
	}
 
	//region "orderId" Accessors
 
	getOrderId() {
		return this._orderId;
	}
 
	get orderId() {
		return this._orderId;
	}
 
	setOrderId(value) {
		this._orderId = value;
	}
 
	set orderId(value) {
		this._orderId = value;
	}
 
	//endregion
 
	//region "password" Accessors
 
	getPassword() {
		return this._password;
	}
 
	get password() {
		return this._password;
	}
 
	setPassword(value) {
		this._password = value;
	}
 
	set password(value) {
		this._password = value;
	}
 
	//endregion
 
	//region "keySize" Accessors
	
	getKeySize() {
		return this._keySize;
	}
 
	get keySize() {
		return this._keySize;
	}
	
	setKeySize(value) {
		this._keySize = value;
	}
	
	set keySize(value) {
		this._keySize = value;
	}
	
	//endregion
	
	toModel() {
		return {
			orderId: this._orderId || '00000000-0000-0000-0000-000000000000',
			password: this._password,
			keySize: this._keySize || 0
		};
	}
}
 
exports.IssuePkcs12CertificateRequest = IssuePkcs12CertificateRequest;