Skip to content

Commit 9bf55d3

Browse files
committed
Print out tokenPayload
1 parent ca94655 commit 9bf55d3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/uid2/shared/secure/AzureCCCoreAttestationService.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ public void attest(byte[] attestationRequest, byte[] publicKey, Handler<AsyncRes
4646
log.debug("Validating policy...");
4747
var encodedPublicKey = Utils.toBase64String(publicKey);
4848

49-
log.info("Kat debug attestation...tokenPayload: ");
50-
log.info(tokenString);
49+
if (tokenPayload != null) {
50+
log.info("Kat debug attestation...tokenPayload: ");
51+
log.info(tokenPayload.toString());
52+
}
5153
var enclaveId = policyValidator.validate(tokenPayload, encodedPublicKey);
5254

5355
if (allowedEnclaveIds.contains(enclaveId)) {

0 commit comments

Comments
 (0)