Search in sources :

Example 1 with DataSetInfoWrapper

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;
    }
}
Also used : ByteArrayWrapper(org.openecard.common.util.ByteArrayWrapper) CardApplicationWrapper(org.openecard.common.sal.state.cif.CardApplicationWrapper) SecurityConditionType(iso.std.iso_iec._24727.tech.schema.SecurityConditionType) DataSetInfoWrapper(org.openecard.common.sal.state.cif.DataSetInfoWrapper)

Aggregations

SecurityConditionType (iso.std.iso_iec._24727.tech.schema.SecurityConditionType)1 CardApplicationWrapper (org.openecard.common.sal.state.cif.CardApplicationWrapper)1 DataSetInfoWrapper (org.openecard.common.sal.state.cif.DataSetInfoWrapper)1 ByteArrayWrapper (org.openecard.common.util.ByteArrayWrapper)1