Search in sources :

Example 6 with SlotCapabilityType

use of iso.std.iso_iec._24727.tech.schema.SlotCapabilityType in project open-ecard by ecsec.

the class TerminalInfo method getSlotCapability.

public SlotCapabilityType getSlotCapability() throws SCIOException {
    if (!slotCapRead) {
        SlotCapabilityType cap = new SlotCapabilityType();
        cap.setIndex(BigInteger.ZERO);
        if (supportsPace()) {
            List<PACECapabilities.PACECapability> capabilities = getPACECapabilities();
            List<String> protos = buildPACEProtocolList(capabilities);
            cap.getProtocol().addAll(protos);
        }
        if (supportsPinCompare()) {
            cap.getProtocol().add(ECardConstants.Protocol.PIN_COMPARE);
        }
        slotCap = cap;
        slotCapRead = true;
    }
    return slotCap;
}
Also used : SlotCapabilityType(iso.std.iso_iec._24727.tech.schema.SlotCapabilityType)

Aggregations

SlotCapabilityType (iso.std.iso_iec._24727.tech.schema.SlotCapabilityType)6 GetIFDCapabilitiesResponse (iso.std.iso_iec._24727.tech.schema.GetIFDCapabilitiesResponse)3 BioSensorCapabilityType (iso.std.iso_iec._24727.tech.schema.BioSensorCapabilityType)2 DisplayCapabilityType (iso.std.iso_iec._24727.tech.schema.DisplayCapabilityType)2 GetIFDCapabilities (iso.std.iso_iec._24727.tech.schema.GetIFDCapabilities)2 KeyPadCapabilityType (iso.std.iso_iec._24727.tech.schema.KeyPadCapabilityType)2 LocalizedString (org.openecard.addon.manifest.LocalizedString)2 IFDCapabilitiesType (iso.std.iso_iec._24727.tech.schema.IFDCapabilitiesType)1 BigInteger (java.math.BigInteger)1 JAXBElement (javax.xml.bind.JAXBElement)1 Result (oasis.names.tc.dss._1_0.core.schema.Result)1 NoSuchTerminal (org.openecard.common.ifd.scio.NoSuchTerminal)1 SCIOErrorCode (org.openecard.common.ifd.scio.SCIOErrorCode)1 SCIOException (org.openecard.common.ifd.scio.SCIOException)1 SCIOTerminal (org.openecard.common.ifd.scio.SCIOTerminal)1 SingleThreadChannel (org.openecard.ifd.scio.wrapper.SingleThreadChannel)1 TerminalInfo (org.openecard.ifd.scio.wrapper.TerminalInfo)1 Element (org.w3c.dom.Element)1