-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
'use strict'; | ||
|
||
class IssueSoftwareCertificateRequest{ | ||
|
||
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 || 2048 | ||
}; | ||
} | ||
} | ||
exports.IssueSoftwareCertificateRequest = IssueSoftwareCertificateRequest; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,224 @@ | ||
'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; | ||
this._privateKeyPkcs12Der = privateKeyPkcs12Der || null; | ||
this._privateKeyPkcs12Pem = privateKeyPkcs12Pem || null; | ||
} | ||
|
||
//endregion | ||
|
||
//region "model" Accessors | ||
|
||
getModel() { | ||
return this._model; | ||
} | ||
|
||
get model() { | ||
return this._model; | ||
} | ||
|
||
setModel(value) { | ||
this._model = value; | ||
} | ||
|
||
set model(value) { | ||
this._model = value; | ||
} | ||
|
||
//endregion | ||
|
||
//endregion | ||
|
||
//region "certificateDer" Accessors | ||
|
||
getCertificateDer() { | ||
return this._certificateDer; | ||
} | ||
|
||
get certificateDer() { | ||
return this._certificateDer; | ||
} | ||
|
||
setDertificateDer(value) { | ||
this._certificateDer = value; | ||
} | ||
|
||
set certificateDer(value) { | ||
this._certificateDer = value; | ||
} | ||
|
||
//endregion | ||
|
||
//region "certificatePem" Accessors | ||
|
||
getCertificatePem() { | ||
return this._certificatePem; | ||
} | ||
|
||
get certificatePem() { | ||
return this._certificatePem; | ||
} | ||
|
||
setCertificatePem(value) { | ||
this._certificatePem = value; | ||
} | ||
|
||
set certificatePem(value) { | ||
this._certificatePem = value; | ||
} | ||
|
||
//endregion | ||
|
||
//region "publicKeyDer" Accessors | ||
|
||
getPublicKeyDer() { | ||
return this._publicKeyDer; | ||
} | ||
|
||
get publicKeyDer() { | ||
return this._publicKeyDer; | ||
} | ||
|
||
setPublicKeyDer(value) { | ||
this._publicKeyDer = value; | ||
} | ||
|
||
set publicKeyDer(value) { | ||
this._publicKeyDer = value; | ||
} | ||
|
||
//endregion | ||
|
||
//region "publicKeyPem" Accessors | ||
|
||
getPublicKeyPem() { | ||
return this._publicKeyDer; | ||
} | ||
|
||
get publicKeyPem() { | ||
return this._publicKeyPem; | ||
} | ||
|
||
setPublicKeyPem(value) { | ||
this._publicKeyPem = value; | ||
} | ||
|
||
set publicKeyPem(value) { | ||
this._publicKeyPem = value; | ||
} | ||
|
||
//endregion | ||
|
||
//region "privateKeyPkcs8Der" Accessors | ||
|
||
getPrivateKeyPkcs8Der() { | ||
return this._publicKeyDer; | ||
} | ||
|
||
get privateKeyPkcs8Der() { | ||
return this._privateKeyPkcs8Der; | ||
} | ||
|
||
setPrivateKeyPkcs8Der(value) { | ||
this._privateKeyPkcs8Der = value; | ||
} | ||
|
||
set privateKeyPkcs8Der(value) { | ||
this._privateKeyPkcs8Der = value; | ||
} | ||
|
||
//endregion | ||
|
||
//region "privateKeyPkcs8Pem" Accessors | ||
|
||
getPrivateKeyPkcs8Pem() { | ||
return this._publicKeyPem; | ||
} | ||
|
||
get privateKeyPkcs8Pem() { | ||
return this._privateKeyPkcs8Pem; | ||
} | ||
|
||
setPrivateKeyPkcs8Pem(value) { | ||
this._privateKeyPkcs8Pem = value; | ||
} | ||
|
||
set privateKeyPkcs8Pem(value) { | ||
this._privateKeyPkcs8Pem = value; | ||
} | ||
|
||
//endregion | ||
|
||
//region "privateKeyPkcs8Pem" Accessors | ||
|
||
getPrivateKeyPkcs12Pem() { | ||
return this._publicKeyPem; | ||
} | ||
|
||
get privateKeyPkcs12Pem() { | ||
return this._privateKeyPkcs12Pem; | ||
} | ||
|
||
setPrivateKeyPkcs12Pem(value) { | ||
this._privateKeyPkcs12Pem = value; | ||
} | ||
|
||
set privateKeyPkcs12Pem(value) { | ||
this._privateKeyPkcs12Pem = value; | ||
} | ||
|
||
//endregion | ||
|
||
//region "privateKeyPkcs8Der" Accessors | ||
|
||
getPrivateKeyPkcs12Der() { | ||
return this._publicKeyDer; | ||
} | ||
|
||
get privateKeyPkcs12Der() { | ||
return this._privateKeyPkcs12Der; | ||
} | ||
|
||
setPrivateKeyPkcs12Der(value) { | ||
this._privateKeyPkcs12Der = value; | ||
} | ||
|
||
set privateKeyPkcs12Der(value) { | ||
this._privateKeyPkcs12Der = value; | ||
} | ||
|
||
//endregion | ||
|
||
toModel() { | ||
return { | ||
model: this._model, | ||
certificateDer: this_certificateDer, | ||
Check failure on line 212 in lib/issue-software-certificate-response.js GitHub Actions / lint (12.x)
Check failure on line 212 in lib/issue-software-certificate-response.js GitHub Actions / lint (14.x)
|
||
certificatePem: this_certificatePem, | ||
Check failure on line 213 in lib/issue-software-certificate-response.js GitHub Actions / lint (12.x)
Check failure on line 213 in lib/issue-software-certificate-response.js GitHub Actions / lint (14.x)
|
||
publicKeyDer: this_publicKeyDer, | ||
Check failure on line 214 in lib/issue-software-certificate-response.js GitHub Actions / lint (12.x)
Check failure on line 214 in lib/issue-software-certificate-response.js GitHub Actions / lint (14.x)
|
||
publicKeyPem: this_publicKeyPem, | ||
Check failure on line 215 in lib/issue-software-certificate-response.js GitHub Actions / lint (12.x)
Check failure on line 215 in lib/issue-software-certificate-response.js GitHub Actions / lint (14.x)
|
||
privateKeyPkcs8Der: this_privateKeyPkcs8Der, | ||
Check failure on line 216 in lib/issue-software-certificate-response.js GitHub Actions / lint (12.x)
Check failure on line 216 in lib/issue-software-certificate-response.js GitHub Actions / lint (14.x)
|
||
privateKeyPkcs8Pem: this_privateKeyPkcs8Pem, | ||
Check failure on line 217 in lib/issue-software-certificate-response.js GitHub Actions / lint (12.x)
Check failure on line 217 in lib/issue-software-certificate-response.js GitHub Actions / lint (14.x)
|
||
privateKeyPkcs12Der: this_privateKeyPkcs12Der, | ||
Check failure on line 218 in lib/issue-software-certificate-response.js GitHub Actions / lint (12.x)
Check failure on line 218 in lib/issue-software-certificate-response.js GitHub Actions / lint (14.x)
|
||
privateKeyPkcs12Pem: this_privateKeyPkcs12Pem | ||
Check failure on line 219 in lib/issue-software-certificate-response.js GitHub Actions / lint (12.x)
Check failure on line 219 in lib/issue-software-certificate-response.js GitHub Actions / lint (14.x)
|
||
}; | ||
} | ||
} | ||
|
||
exports.IssueSoftwareCertificateResponse = IssueSoftwareCertificateResponse; |