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;
}
Aggregations