Testing travis

This commit is contained in:
Cyrus 2020-11-16 14:49:53 -05:00
parent 3a3919d9bc
commit ea03737234

View File

@ -361,9 +361,13 @@ public abstract class AbstractAttestationCertificateAuthority
// generate the identity credential
LOG.debug("generating credential from identity proof");
// check the policy set valid date
SupplyChainPolicy scp = this.supplyChainValidationService.getPolicy();
if (scp != null) {
this.validDays = Integer.getInteger(scp.getValidityDays());
try {
SupplyChainPolicy scp = this.supplyChainValidationService.getPolicy();
if (scp != null) {
this.validDays = Integer.getInteger(scp.getValidityDays());
}
} catch (Exception ex) {
LOG.error("Error");
}
// transform the public key struct into a public key
PublicKey publicKey = assemblePublicKey(proof.getIdentityKey().getStorePubKey().getKey());