Search in sources :

Example 1 with CardSpecType

use of org.openecard.mdlw.sal.config.CardSpecType in project open-ecard by ecsec.

the class MiddlewareSAL method getCardInfo.

@Override
public CardInfoType getCardInfo(@Nonnull ConnectionHandleType handle, @Nonnull String cardType) throws RuntimeException {
    CardInfoType cif = mwSALConfig.getCardInfo(cardType);
    CardSpecType cardSpec = mwSALConfig.getCardSpecType(cardType);
    if (cif != null) {
        cif = augmentCardInfo(handle, cif, cardSpec);
        return cif;
    } else {
        LOG.error("No CIF available for card type '" + cardType + '"');
        return null;
    }
}
Also used : CardSpecType(org.openecard.mdlw.sal.config.CardSpecType) CardInfoType(iso.std.iso_iec._24727.tech.schema.CardInfoType)

Aggregations

CardInfoType (iso.std.iso_iec._24727.tech.schema.CardInfoType)1 CardSpecType (org.openecard.mdlw.sal.config.CardSpecType)1