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