File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/com/uid2/shared/secure/azurecc Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11package com .uid2 .shared .secure .azurecc ;
22
3+ import com .uid2 .shared .secure .AttestationClientException ;
4+ import com .uid2 .shared .secure .AttestationException ;
5+ import com .uid2 .shared .secure .AttestationFailure ;
36import lombok .Builder ;
47import lombok .Value ;
58
@@ -26,11 +29,13 @@ public boolean isSevSnpVM(){
2629 return SEV_SNP_VM_TYPE .equalsIgnoreCase (attestationType );
2730 }
2831
29- public boolean isUtilityVMCompliant (){
32+ public boolean isUtilityVMCompliant () throws AttestationClientException {
3033 if (azureProtocol == AZURE_CC_ACI_PROTOCOL ) {
3134 return AZURE_COMPLIANT_UVM .equalsIgnoreCase (complianceStatus );
3235 } else if (azureProtocol == AZURE_CC_AKS_PROTOCOL ) {
3336 return AZURE_COMPLIANT_UVM_AKS .equalsIgnoreCase (complianceStatus );
37+ } else {
38+ throw new AttestationClientException (String .format ("Azure protocol: %s not supported" , azureProtocol ), AttestationFailure .INVALID_PROTOCOL );
3439 }
3540 return false ;
3641 }
You can’t perform that action at this time.
0 commit comments