Search in sources :

Example 1 with DIDInfoWrapper

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

Aggregations

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