use of org.openecard.common.sal.state.cif.DIDInfoWrapper in project open-ecard by ecsec.
the class CardStateEntry method checkDIDSecurityCondition.
public boolean checkDIDSecurityCondition(byte[] cardApplication, String didName, Enum<?> serviceAction) {
CardApplicationWrapper application = this.infoObject.getCardApplications().get(new ByteArrayWrapper(cardApplication));
DIDInfoWrapper dataSetInfo = application.getDIDInfo(didName);
SecurityConditionType securityCondition = dataSetInfo.getSecurityCondition(serviceAction);
if (securityCondition != null) {
return checkSecurityCondition(securityCondition);
} else {
return false;
}
}
Aggregations