Search in sources :

Example 1 with IFDCapabilitiesType

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

the class IfdEventManager method resetCard.

/**
 * Resets a card given as connection handle.
 *
 * @param cHandleRm {@link ConnectionHandleType} object representing a card which shall be removed.
 * @param cHandleIn {@link ConnectionHandleType} object representing a card which shall be inserted.
 * @param ifaceProtocol Interface protocol of the connected card.
 */
public void resetCard(ConnectionHandleType cHandleRm, ConnectionHandleType cHandleIn, String ifaceProtocol) {
    env.getEventDispatcher().notify(EventType.CARD_REMOVED, new IfdEventObject(cHandleRm, null));
    // determine if the reader has a protected auth path
    IFDCapabilitiesType slotCapabilities = getCapabilities(cHandleRm.getContextHandle(), cHandleRm.getIFDName());
    boolean protectedAuthPath = slotCapabilities != null ? !slotCapabilities.getKeyPadCapability().isEmpty() : false;
    HandlerBuilder chBuilder = HandlerBuilder.create();
    ConnectionHandleType cInNew = chBuilder.setSessionId(sessionId).setCardType(cHandleIn.getRecognitionInfo()).setCardIdentifier(cHandleIn.getRecognitionInfo()).setContextHandle(cHandleIn.getContextHandle()).setIfdName(cHandleIn.getIFDName()).setSlotIdx(BigInteger.ZERO).setSlotHandle(cHandleIn.getSlotHandle()).setProtectedAuthPath(protectedAuthPath).buildConnectionHandle();
    env.getEventDispatcher().notify(EventType.CARD_INSERTED, new IfdEventObject(cInNew));
    if (isRecognize()) {
        Recognizer rec = new Recognizer(env, cInNew, ifaceProtocol);
        Thread recThread = new Thread(rec, "Recoginiton-" + THREAD_NUM.getAndIncrement());
        recThread.start();
    }
}
Also used : ConnectionHandleType(iso.std.iso_iec._24727.tech.schema.ConnectionHandleType) IFDCapabilitiesType(iso.std.iso_iec._24727.tech.schema.IFDCapabilitiesType) IfdEventObject(org.openecard.common.event.IfdEventObject) HandlerBuilder(org.openecard.common.util.HandlerBuilder)

Example 2 with IFDCapabilitiesType

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

the class IfdEventRunner method fireEvents.

private void fireEvents(@Nonnull List<IFDStatusType> diff) {
    for (IFDStatusType term : diff) {
        String ifdName = term.getIFDName();
        // find out if the terminal is new, or only a slot got updated
        IFDStatusType oldTerm = getCorresponding(ifdName, currentState);
        boolean terminalAdded = oldTerm == null;
        IFDCapabilitiesType slotCapabilities = getCapabilities(ifdName);
        if (terminalAdded) {
            // TERMINAL ADDED
            // make copy of term
            oldTerm = new IFDStatusType();
            oldTerm.setIFDName(ifdName);
            oldTerm.setConnected(true);
            // add to current list
            currentState.add(oldTerm);
            // create event
            ConnectionHandleType h = makeConnectionHandle(ifdName, null, slotCapabilities);
            LOG.debug("Found a terminal added event ({}).", ifdName);
            env.getEventDispatcher().notify(EventType.TERMINAL_ADDED, new IfdEventObject(h));
        }
        // check each slot
        for (SlotStatusType slot : term.getSlotStatus()) {
            SlotStatusType oldSlot = getCorresponding(slot.getIndex(), oldTerm.getSlotStatus());
            boolean cardPresent = slot.isCardAvailable();
            boolean cardWasPresent = oldSlot != null && oldSlot.isCardAvailable();
            if (cardPresent && !cardWasPresent) {
                // CARD INSERTED
                // copy slot and add to list
                SlotStatusType newSlot = oldSlot;
                if (newSlot == null) {
                    newSlot = new SlotStatusType();
                    oldTerm.getSlotStatus().add(newSlot);
                }
                newSlot.setIndex(slot.getIndex());
                newSlot.setCardAvailable(true);
                newSlot.setATRorATS(slot.getATRorATS());
                // create event
                LOG.debug("Found a card insert event ({}).", ifdName);
                LOG.info("Card with ATR={} inserted.", ByteUtils.toHexString(slot.getATRorATS()));
                ConnectionHandleType handle = makeUnknownCardHandle(ifdName, newSlot, slotCapabilities);
                env.getEventDispatcher().notify(EventType.CARD_INSERTED, new IfdEventObject(handle));
                try {
                    SingleThreadChannel ch = cm.openMasterChannel(ifdName);
                    if (evtManager.isRecognize()) {
                        String proto = ch.getChannel().getCard().getProtocol().toUri();
                        evtManager.threadPool.submit(new Recognizer(env, handle, proto));
                    }
                } catch (NoSuchTerminal | SCIOException ex) {
                    LOG.error("Failed to connect card, nevertheless sending CARD_INSERTED event.", ex);
                }
            } else if (!terminalAdded && !cardPresent && cardWasPresent) {
                // this makes only sense when the terminal was already there
                // CARD REMOVED
                // remove slot entry
                BigInteger idx = oldSlot.getIndex();
                Iterator<SlotStatusType> it = oldTerm.getSlotStatus().iterator();
                while (it.hasNext()) {
                    SlotStatusType next = it.next();
                    if (idx.equals(next.getIndex())) {
                        it.remove();
                        break;
                    }
                }
                LOG.debug("Found a card removed event ({}).", ifdName);
                ConnectionHandleType h = makeConnectionHandle(ifdName, idx, slotCapabilities);
                env.getEventDispatcher().notify(EventType.CARD_REMOVED, new IfdEventObject(h));
            }
        }
        // terminal removed event comes after card removed events
        boolean terminalPresent = term.isConnected();
        if (!terminalPresent) {
            // TERMINAL REMOVED
            Iterator<IFDStatusType> it = currentState.iterator();
            while (it.hasNext()) {
                IFDStatusType toDel = it.next();
                if (toDel.getIFDName().equals(term.getIFDName())) {
                    it.remove();
                }
            }
            ConnectionHandleType h = makeConnectionHandle(ifdName, null, slotCapabilities);
            LOG.debug("Found a terminal removed event ({}).", ifdName);
            env.getEventDispatcher().notify(EventType.TERMINAL_REMOVED, new IfdEventObject(h));
        }
    }
}
Also used : ConnectionHandleType(iso.std.iso_iec._24727.tech.schema.ConnectionHandleType) NoSuchTerminal(org.openecard.common.ifd.scio.NoSuchTerminal) SingleThreadChannel(org.openecard.ifd.scio.wrapper.SingleThreadChannel) SCIOException(org.openecard.common.ifd.scio.SCIOException) IFDCapabilitiesType(iso.std.iso_iec._24727.tech.schema.IFDCapabilitiesType) Iterator(java.util.Iterator) BigInteger(java.math.BigInteger) IFDStatusType(iso.std.iso_iec._24727.tech.schema.IFDStatusType) SlotStatusType(iso.std.iso_iec._24727.tech.schema.SlotStatusType) IfdEventObject(org.openecard.common.event.IfdEventObject)

Example 3 with IFDCapabilitiesType

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

the class IfdEventRunner method getCapabilities.

@Nullable
private IFDCapabilitiesType getCapabilities(String ifdName) {
    GetIFDCapabilities req = new GetIFDCapabilities();
    req.setContextHandle(ctxHandle);
    req.setIFDName(ifdName);
    GetIFDCapabilitiesResponse res = (GetIFDCapabilitiesResponse) env.getDispatcher().safeDeliver(req);
    return res.getIFDCapabilities();
}
Also used : GetIFDCapabilities(iso.std.iso_iec._24727.tech.schema.GetIFDCapabilities) GetIFDCapabilitiesResponse(iso.std.iso_iec._24727.tech.schema.GetIFDCapabilitiesResponse) Nullable(javax.annotation.Nullable)

Example 4 with IFDCapabilitiesType

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

the class IFD method getIFDCapabilities.

@Override
public GetIFDCapabilitiesResponse getIFDCapabilities(GetIFDCapabilities parameters) {
    GetIFDCapabilitiesResponse response;
    // you thought of a different IFD obviously
    if (!ByteUtils.compare(ctxHandle, parameters.getContextHandle())) {
        String msg = "Invalid context handle specified.";
        Result r = WSHelper.makeResultError(ECardConstants.Minor.IFD.INVALID_CONTEXT_HANDLE, msg);
        response = WSHelper.makeResponse(GetIFDCapabilitiesResponse.class, r);
        return response;
    }
    try {
        TerminalInfo info;
        String ifdName = parameters.getIFDName();
        try {
            SingleThreadChannel channel = cm.openMasterChannel(ifdName);
            info = new TerminalInfo(cm, channel);
        } catch (NoSuchTerminal ex) {
            // continue without a channel
            SCIOTerminal term = cm.getTerminals().getTerminal(ifdName);
            info = new TerminalInfo(cm, term);
        }
        IFDCapabilitiesType cap = new IFDCapabilitiesType();
        // slot capability
        SlotCapabilityType slotCap = info.getSlotCapability();
        cap.getSlotCapability().add(slotCap);
        // ask protocol factory which types it supports
        List<String> protocols = slotCap.getProtocol();
        for (String proto : protocolFactories.protocols()) {
            if (!protocols.contains(proto)) {
                protocols.add(proto);
            }
        }
        // TODO: PIN Compare should be a part of establishChannel and thus just appear in the software protocol list
        if (!protocols.contains(ECardConstants.Protocol.PIN_COMPARE)) {
            protocols.add(ECardConstants.Protocol.PIN_COMPARE);
        }
        // display capability
        DisplayCapabilityType dispCap = info.getDisplayCapability();
        if (dispCap != null) {
            cap.getDisplayCapability().add(dispCap);
        }
        // keypad capability
        KeyPadCapabilityType keyCap = info.getKeypadCapability();
        if (keyCap != null) {
            cap.getKeyPadCapability().add(keyCap);
        }
        // biosensor capability
        BioSensorCapabilityType bioCap = info.getBiosensorCapability();
        if (bioCap != null) {
            cap.getBioSensorCapability().add(bioCap);
        }
        // acoustic and optical elements
        cap.setOpticalSignalUnit(info.isOpticalSignal());
        cap.setAcousticSignalUnit(info.isAcousticSignal());
        // prepare response
        response = WSHelper.makeResponse(GetIFDCapabilitiesResponse.class, WSHelper.makeResultOK());
        response.setIFDCapabilities(cap);
        return response;
    } catch (NullPointerException | NoSuchTerminal ex) {
        String msg = String.format("Requested terminal not found.");
        LOG.warn(msg, ex);
        Result r = WSHelper.makeResultError(ECardConstants.Minor.IFD.Terminal.UNKNOWN_IFD, msg);
        response = WSHelper.makeResponse(GetIFDCapabilitiesResponse.class, r);
        return response;
    } catch (SCIOException ex) {
        String msg = String.format("Failed to request status from terminal.");
        // use debug when card has been removed, as this happens all the time
        SCIOErrorCode code = ex.getCode();
        if (!(code == SCIOErrorCode.SCARD_E_NO_SMARTCARD || code == SCIOErrorCode.SCARD_W_REMOVED_CARD)) {
            LOG.warn(msg, ex);
        } else {
            LOG.debug(msg, ex);
        }
        Result r = WSHelper.makeResultUnknownError(msg);
        response = WSHelper.makeResponse(GetIFDCapabilitiesResponse.class, r);
        return response;
    }
}
Also used : SlotCapabilityType(iso.std.iso_iec._24727.tech.schema.SlotCapabilityType) NoSuchTerminal(org.openecard.common.ifd.scio.NoSuchTerminal) SingleThreadChannel(org.openecard.ifd.scio.wrapper.SingleThreadChannel) SCIOException(org.openecard.common.ifd.scio.SCIOException) SCIOTerminal(org.openecard.common.ifd.scio.SCIOTerminal) DisplayCapabilityType(iso.std.iso_iec._24727.tech.schema.DisplayCapabilityType) IFDCapabilitiesType(iso.std.iso_iec._24727.tech.schema.IFDCapabilitiesType) TerminalInfo(org.openecard.ifd.scio.wrapper.TerminalInfo) Result(oasis.names.tc.dss._1_0.core.schema.Result) KeyPadCapabilityType(iso.std.iso_iec._24727.tech.schema.KeyPadCapabilityType) SCIOErrorCode(org.openecard.common.ifd.scio.SCIOErrorCode) GetIFDCapabilitiesResponse(iso.std.iso_iec._24727.tech.schema.GetIFDCapabilitiesResponse) BioSensorCapabilityType(iso.std.iso_iec._24727.tech.schema.BioSensorCapabilityType)

Example 5 with IFDCapabilitiesType

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

the class AndroidMarshaller method parse.

private synchronized Object parse(XmlPullParser parser) throws XmlPullParserException, IOException, ParserConfigurationException, DatatypeConfigurationException {
    if (parser.getName().equals("DestroyChannelResponse")) {
        DestroyChannelResponse destroyChannelResponse = new DestroyChannelResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Profile")) {
                    destroyChannelResponse.setProfile(parser.nextText());
                } else if (parser.getName().equals("RequestID")) {
                    destroyChannelResponse.setRequestID(parser.nextText());
                } else if (parser.getName().equals("Result")) {
                    destroyChannelResponse.setResult(this.parseResult(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("DestroyChannelResponse")));
        return destroyChannelResponse;
    } else if (parser.getName().equals("DestroyChannel")) {
        DestroyChannel destroyChannel = new DestroyChannel();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("SlotHandle")) {
                    destroyChannel.setSlotHandle(StringUtils.toByteArray(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("DestroyChannel")));
        return destroyChannel;
    } else if (parser.getName().equals("EstablishChannelResponse")) {
        EstablishChannelResponse establishChannelResponse = new EstablishChannelResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Profile")) {
                    establishChannelResponse.setProfile(parser.nextText());
                } else if (parser.getName().equals("RequestID")) {
                    establishChannelResponse.setRequestID(parser.nextText());
                } else if (parser.getName().equals("Result")) {
                    establishChannelResponse.setResult(this.parseResult(parser));
                } else if (parser.getName().equals("AuthenticationProtocolData")) {
                    establishChannelResponse.setAuthenticationProtocolData(this.parseDIDAuthenticationDataType(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("EstablishChannelResponse")));
        return establishChannelResponse;
    } else if (parser.getName().equals("DIDAuthenticate")) {
        DIDAuthenticate didAuthenticate = new DIDAuthenticate();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("DIDName")) {
                    didAuthenticate.setDIDName(parser.nextText());
                } else if (parser.getName().equals("SlotHandle")) {
                    ConnectionHandleType cht = new ConnectionHandleType();
                    cht.setSlotHandle(StringUtils.toByteArray(parser.nextText()));
                    didAuthenticate.setConnectionHandle(cht);
                } else if (parser.getName().equals("AuthenticationProtocolData")) {
                    didAuthenticate.setAuthenticationProtocolData(this.parseDIDAuthenticationDataType(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("DIDAuthenticate")));
        return didAuthenticate;
    } else if (parser.getName().equals("DIDAuthenticateResponse")) {
        DIDAuthenticateResponse response = new DIDAuthenticateResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Result")) {
                    response.setResult(this.parseResult(parser));
                }
                if (parser.getName().equals("AuthenticationProtocolData")) {
                    response.setAuthenticationProtocolData(this.parseDIDAuthenticationDataType(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("DIDAuthenticateResponse")));
        return response;
    } else if (parser.getName().equals("StartPAOSResponse")) {
        StartPAOSResponse startPAOSResponse = new StartPAOSResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Result")) {
                    startPAOSResponse.setResult(this.parseResult(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("StartPAOSResponse")));
        return startPAOSResponse;
    } else if (parser.getName().equals("InitializeFramework")) {
        InitializeFramework initializeFramework = new InitializeFramework();
        return initializeFramework;
    } else if (parser.getName().equals("Conclusion")) {
        return parseConclusion(parser);
    } else if (parser.getName().equals("WaitResponse")) {
        WaitResponse waitResponse = new WaitResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Result")) {
                    waitResponse.setResult(this.parseResult(parser));
                } else if (parser.getName().equals("IFDEvent")) {
                    waitResponse.getIFDEvent().add(parseIFDStatusType(parser, "IFDEvent"));
                } else if (parser.getName().equals("SessionIdentifier")) {
                    waitResponse.setSessionIdentifier(parser.nextText());
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("WaitResponse")));
        return waitResponse;
    } else if (parser.getName().equals("GetStatusResponse")) {
        GetStatusResponse getStatusResponse = new GetStatusResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Result")) {
                    getStatusResponse.setResult(this.parseResult(parser));
                } else if (parser.getName().equals("IFDStatus")) {
                    getStatusResponse.getIFDStatus().add(parseIFDStatusType(parser, "IFDStatus"));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("GetStatusResponse")));
        return getStatusResponse;
    } else if (parser.getName().equals("ListIFDs")) {
        ListIFDs listIFDs = new ListIFDs();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("ContextHandle")) {
                    listIFDs.setContextHandle(StringUtils.toByteArray(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("ListIFDs")));
        return listIFDs;
    } else if (parser.getName().equals("GetIFDCapabilities")) {
        GetIFDCapabilities getIFDCapabilities = new GetIFDCapabilities();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("ContextHandle")) {
                    getIFDCapabilities.setContextHandle(StringUtils.toByteArray(parser.nextText()));
                } else if (parser.getName().equals("IFDName")) {
                    getIFDCapabilities.setIFDName(parser.nextText());
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("GetIFDCapabilities")));
        return getIFDCapabilities;
    } else if (parser.getName().equals("GetIFDCapabilitiesResponse")) {
        GetIFDCapabilitiesResponse resp = new GetIFDCapabilitiesResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Profile")) {
                    resp.setProfile(parser.nextText());
                } else if (parser.getName().equals("RequestID")) {
                    resp.setRequestID(parser.nextText());
                } else if (parser.getName().equals("Result")) {
                    resp.setResult(this.parseResult(parser));
                } else if (parser.getName().equals("GetIFDCapabilitiesResponse")) {
                    resp.setIFDCapabilities((IFDCapabilitiesType) this.parse(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("GetIFDCapabilitiesResponse")));
        return resp;
    } else if (parser.getName().equals("IFDCapabilitiesType")) {
        IFDCapabilitiesType cap = new IFDCapabilitiesType();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("OpticalSignalUnit")) {
                    cap.setOpticalSignalUnit(Boolean.getBoolean(parser.nextText()));
                } else if (parser.getName().equals("AcousticSignalUnit")) {
                    cap.setAcousticSignalUnit(Boolean.getBoolean(parser.nextText()));
                } else if (parser.getName().equals("SlotCapability")) {
                    cap.getSlotCapability().add(parseSlotCapability(parser));
                } else if (parser.getName().equals("DisplayCapability")) {
                    cap.getDisplayCapability().add(parseDisplayCapability(parser));
                } else if (parser.getName().equals("KeyPadCapability")) {
                    cap.getKeyPadCapability().add(parseKeyPadCapability(parser));
                } else if (parser.getName().equals("BioSensorCapability")) {
                    cap.getBioSensorCapability().add(parseBioSensorCapability(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("IFDCapabilitiesType")));
        return cap;
    } else if (parser.getName().equals("BeginTransaction")) {
        BeginTransaction trans = new BeginTransaction();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("SlotHandle")) {
                    trans.setSlotHandle(StringUtils.toByteArray(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("BeginTransaction")));
        return trans;
    } else if (parser.getName().equals("BeginTransactionResponse")) {
        BeginTransactionResponse response = new BeginTransactionResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Profile")) {
                    response.setProfile(parser.nextText());
                } else if (parser.getName().equals("RequestID")) {
                    response.setRequestID(parser.nextText());
                } else if (parser.getName().equals("Result")) {
                    response.setResult(this.parseResult(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("BeginTransactionResponse")));
        return response;
    } else if (parser.getName().equals("EndTransaction")) {
        EndTransaction end = new EndTransaction();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("SlotHandle")) {
                    end.setSlotHandle(StringUtils.toByteArray(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("EndTransaction")));
        return end;
    } else if (parser.getName().equals("EndTransactionResponse")) {
        EndTransactionResponse response = new EndTransactionResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Profile")) {
                    response.setProfile(parser.nextText());
                } else if (parser.getName().equals("RequestID")) {
                    response.setRequestID(parser.nextText());
                } else if (parser.getName().equals("Result")) {
                    response.setResult(this.parseResult(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("EndTransactionResponse")));
        return response;
    } else if (parser.getName().equals("CardApplicationPath")) {
        CardApplicationPath path = new CardApplicationPath();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("CardAppPathRequest")) {
                    path.setCardAppPathRequest((CardApplicationPathType) parse(parser));
                } else if (parser.getName().equals("Profile")) {
                    path.setProfile(parser.nextText());
                } else if (parser.getName().equals("RequestID")) {
                    path.setRequestID(parser.nextText());
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("CardApplicationPath")));
        return path;
    } else if (parser.getName().equals("CardAppPathRequest") || parser.getName().equals("CardApplicationPathResult")) {
        CardApplicationPathType type = new CardApplicationPathType();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("ChannelHandle")) {
                    type.setChannelHandle((ChannelHandleType) parse(parser));
                } else if (parser.getName().equals("ContextHandle")) {
                    type.setContextHandle(StringUtils.toByteArray(parser.nextText()));
                } else if (parser.getName().equals("IFDName")) {
                    type.setIFDName(parser.nextText());
                } else if (parser.getName().equals("SlotIndex")) {
                    type.setSlotIndex(new BigInteger(parser.nextText()));
                } else if (parser.getName().equals("CardApplication")) {
                    type.setCardApplication(StringUtils.toByteArray(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("CardAppPathRequest")));
        return type;
    } else if (parser.getName().equals("ChannelHandle")) {
        ChannelHandleType ch = new ChannelHandleType();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("ProtocolTerminationPoint")) {
                    ch.setProtocolTerminationPoint(parser.nextText());
                } else if (parser.getName().equals("SessionIdentifier")) {
                    ch.setSessionIdentifier(parser.nextText());
                } else if (parser.getName().equals("Binding")) {
                    ch.setBinding(parser.nextText());
                } else if (parser.getName().equals("PathSecurity")) {
                    ch.setPathSecurity((PathSecurityType) parse(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("ChannelHandle")));
        return ch;
    } else if (parser.getName().equals("PathSecurity")) {
        PathSecurityType p = new PathSecurityType();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Protocol")) {
                    p.setProtocol(parser.nextText());
                } else if (parser.getName().equals("Parameters")) {
                    // TODO this object is an any type
                    p.setParameters((Object) parse(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("PathSecurity")));
        return p;
    } else if (parser.getName().equals("CardApplicationPathResponse")) {
        CardApplicationPathResponse resp = new CardApplicationPathResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("CardAppPathResultSet")) {
                    resp.setCardAppPathResultSet((CardApplicationPathResponse.CardAppPathResultSet) parse(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("CardApplicationPathResponse")));
        return resp;
    } else if (parser.getName().equals("CardAppPathResultSet")) {
        CardApplicationPathResponse.CardAppPathResultSet result = new CardApplicationPathResponse.CardAppPathResultSet();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("CardApplicationPathResult")) {
                    result.getCardApplicationPathResult().add((CardApplicationPathType) parse(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("CardAppPathResultSet")));
        return result;
    } else if (parser.getName().equals("CardApplicationConnect")) {
        CardApplicationConnect result = new CardApplicationConnect();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("CardApplicationPath")) {
                    result.setCardApplicationPath(parseCardApplicationPath(parser));
                } else if (parser.getName().equals("Output")) {
                    result.setOutput((OutputInfoType) parse(parser));
                } else if (parser.getName().equals("ExclusiveUse")) {
                    result.setExclusiveUse(Boolean.getBoolean(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("CardApplicationConnect")));
        return result;
    } else if (parser.getName().equals("Output")) {
        OutputInfoType result = new OutputInfoType();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Timeout")) {
                    result.setTimeout(new BigInteger(parser.nextText()));
                } else if (parser.getName().equals("DisplayIndex")) {
                    result.setDisplayIndex(new BigInteger(parser.nextText()));
                } else if (parser.getName().equals("Message")) {
                    result.setMessage(parser.nextText());
                } else if (parser.getName().equals("AcousticalSignal")) {
                    result.setAcousticalSignal(Boolean.getBoolean(parser.nextText()));
                } else if (parser.getName().equals("OpticalSignal")) {
                    result.setOpticalSignal(Boolean.getBoolean(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("Output")));
        return result;
    } else if (parser.getName().equals("CardApplicationConnectResponse")) {
        CardApplicationConnectResponse result = new CardApplicationConnectResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Profile")) {
                    result.setProfile(parser.nextText());
                } else if (parser.getName().equals("RequestID")) {
                    result.setRequestID(parser.nextText());
                } else if (parser.getName().equals("Result")) {
                    result.setResult(this.parseResult(parser));
                } else if (parser.getName().equals("ConnectionHandle")) {
                    result.setConnectionHandle((ConnectionHandleType) parse(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("CardApplicationConnectResponse")));
        return result;
    } else if (parser.getName().equals("ConnectionHandle")) {
        ConnectionHandleType result = new ConnectionHandleType();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("ChannelHandle")) {
                    result.setChannelHandle((ChannelHandleType) parse(parser));
                } else if (parser.getName().equals("ContextHandle")) {
                    result.setContextHandle(StringUtils.toByteArray(parser.nextText()));
                } else if (parser.getName().equals("IFDName")) {
                    result.setIFDName(parser.nextText());
                } else if (parser.getName().equals("SlotIndex")) {
                    result.setSlotIndex(new BigInteger(parser.nextText()));
                } else if (parser.getName().equals("CardApplication")) {
                    result.setCardApplication(StringUtils.toByteArray(parser.nextText()));
                } else if (parser.getName().equals("SlotHandle")) {
                    result.setSlotHandle(StringUtils.toByteArray(parser.nextText()));
                } else if (parser.getName().equals("RecognitionInfo")) {
                    result.setRecognitionInfo((RecognitionInfo) parse(parser));
                } else if (parser.getName().equals("SlotInfo")) {
                    result.setSlotInfo((SlotInfo) parse(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("ConnectionHandle")));
        return result;
    } else if (parser.getName().equals("RecognitionInfo")) {
        RecognitionInfo result = new RecognitionInfo();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("CardType")) {
                    result.setCardType(parser.nextText());
                } else if (parser.getName().equals("CardIdentifier")) {
                    result.setCardIdentifier(StringUtils.toByteArray(parser.nextText()));
                } else if (parser.getName().equals("CaptureTime")) {
                // TODO
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("RecognitionInfo")));
        return result;
    } else if (parser.getName().equals("SlotInfo")) {
        SlotInfo result = new SlotInfo();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("ProtectedAuthPath")) {
                    result.setProtectedAuthPath(Boolean.getBoolean(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("SlotInfo")));
        return result;
    } else if (parser.getName().equals("CardApplicationDisconnect")) {
        CardApplicationDisconnect result = new CardApplicationDisconnect();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("ConnectionHandle")) {
                    result.setConnectionHandle(parseConnectionHandle(parser));
                } else if (parser.getName().equals("Action")) {
                    result.setAction(ActionType.fromValue(parser.nextText()));
                } else if (parser.getName().equals("Profile")) {
                    result.setProfile(parser.nextText());
                } else if (parser.getName().equals("RequestID")) {
                    result.setRequestID(parser.nextText());
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("CardApplicationDisconnect")));
        return result;
    } else if (parser.getName().equals("CardApplicationDisconnectResponse")) {
        CardApplicationDisconnectResponse result = new CardApplicationDisconnectResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Profile")) {
                    result.setProfile(parser.nextText());
                } else if (parser.getName().equals("RequestID")) {
                    result.setRequestID(parser.nextText());
                } else if (parser.getName().equals("Result")) {
                    result.setResult(this.parseResult(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("CardApplicationDisconnectResponse")));
        return result;
    } else if (parser.getName().equals("GetRecognitionTreeResponse")) {
        GetRecognitionTreeResponse resp = new GetRecognitionTreeResponse();
        RecognitionTree recTree = new RecognitionTree();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Result")) {
                    resp.setResult(this.parseResult(parser));
                } else if (parser.getName().equals("CardCall")) {
                    recTree.getCardCall().add(this.parseCardCall(parser));
                }
            } else if (eventType == XmlPullParser.END_TAG) {
                if (parser.getName().equals("CardCall")) {
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("GetRecognitionTreeResponse")));
        resp.setRecognitionTree(recTree);
        return resp;
    } else if (parser.getName().equals("EstablishContext")) {
        EstablishContext establishContext = new EstablishContext();
        return establishContext;
    } else if (parser.getName().equals("EstablishContextResponse")) {
        EstablishContextResponse establishContextResponse = new EstablishContextResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Result")) {
                    establishContextResponse.setResult(this.parseResult(parser));
                } else if (parser.getName().equals("ContextHandle")) {
                    establishContextResponse.setContextHandle(StringUtils.toByteArray(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("EstablishContextResponse")));
        return establishContextResponse;
    } else if (parser.getName().equals("ListIFDsResponse")) {
        ListIFDsResponse listIFDsResponse = new ListIFDsResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Result")) {
                    listIFDsResponse.setResult(this.parseResult(parser));
                } else if (parser.getName().equals("IFDName")) {
                    listIFDsResponse.getIFDName().add(parser.nextText());
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("ListIFDsResponse")));
        return listIFDsResponse;
    } else if (parser.getName().equals("ConnectResponse")) {
        ConnectResponse connectResponse = new ConnectResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Result")) {
                    connectResponse.setResult(this.parseResult(parser));
                } else if (parser.getName().equals("SlotHandle")) {
                    connectResponse.setSlotHandle(StringUtils.toByteArray(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("ConnectResponse")));
        return connectResponse;
    } else if (parser.getName().equals("Connect")) {
        Connect c = new Connect();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("IFDName")) {
                    c.setIFDName(parser.nextText());
                } else if (parser.getName().equals("ContextHandle")) {
                    c.setContextHandle(StringUtils.toByteArray(parser.nextText()));
                } else if (parser.getName().equals("Slot")) {
                    c.setSlot(new BigInteger(parser.nextText()));
                }
            // TODO exclusive
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("Connect")));
        return c;
    } else if (parser.getName().equals("Disconnect")) {
        Disconnect d = new Disconnect();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("SlotHandle")) {
                    d.setSlotHandle(StringUtils.toByteArray(parser.nextText()));
                } else if (parser.getName().equals("Action")) {
                    d.setAction(ActionType.fromValue(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("Disconnect")));
        return d;
    } else if (parser.getName().equals("DisconnectResponse")) {
        DisconnectResponse response = new DisconnectResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Profile")) {
                    response.setProfile(parser.nextText());
                } else if (parser.getName().equals("RequestID")) {
                    response.setRequestID(parser.nextText());
                } else if (parser.getName().equals("Result")) {
                    response.setResult(this.parseResult(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("DisconnectResponse")));
        return response;
    } else if (parser.getName().equals("Transmit")) {
        Transmit t = new Transmit();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("InputAPDUInfo")) {
                    t.getInputAPDUInfo().add(this.parseInputAPDUInfo(parser));
                } else if (parser.getName().equals("SlotHandle")) {
                    t.setSlotHandle(StringUtils.toByteArray(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("Transmit")));
        return t;
    } else if (parser.getName().equals("TransmitResponse")) {
        TransmitResponse transmitResponse = new TransmitResponse();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("Result")) {
                    transmitResponse.setResult(this.parseResult(parser));
                } else if (parser.getName().equals("OutputAPDU")) {
                    transmitResponse.getOutputAPDU().add(StringUtils.toByteArray(parser.nextText()));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("TransmitResponse")));
        return transmitResponse;
    } else if (parser.getName().equals("CardInfo")) {
        // TODO CardIdentification and CardCapabilities are ignored
        CardInfo cardInfo = new CardInfo();
        ApplicationCapabilitiesType applicationCapabilities = new ApplicationCapabilitiesType();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("ObjectIdentifier")) {
                    CardTypeType cardType = new CardTypeType();
                    cardType.setObjectIdentifier(parser.nextText());
                    cardInfo.setCardType(cardType);
                } else if (parser.getName().equals("ImplicitlySelectedApplication")) {
                    try {
                        // TODO iso:Path, see CardInfo_ecard-AT_0-9-0
                        String selectedApplication = parser.nextText();
                        applicationCapabilities.setImplicitlySelectedApplication(StringUtils.toByteArray(selectedApplication));
                    } catch (XmlPullParserException ex) {
                    }
                } else if (parser.getName().equals("CardApplication")) {
                    applicationCapabilities.getCardApplication().add(this.parseCardApplication(parser));
                } else if (parser.getName().equals("CardTypeName")) {
                    InternationalStringType internationalString = new InternationalStringType();
                    String lang = parser.getAttributeValue("http://www.w3.org/XML/1998/namespace", "lang");
                    internationalString.setLang(lang);
                    internationalString.setValue(parser.nextText());
                    cardInfo.getCardType().getCardTypeName().add(internationalString);
                } else if (parser.getName().equals("SpecificationBodyOrIssuer")) {
                    cardInfo.getCardType().setSpecificationBodyOrIssuer(parser.nextText());
                } else if (parser.getName().equals("Status")) {
                    cardInfo.getCardType().setStatus(parser.nextText());
                } else if (parser.getName().equals("Date")) {
                // currently not working; see http://code.google.com/p/android/issues/detail?id=14379
                /*String text = parser.nextText();
			XMLGregorianCalendar date = DatatypeFactory.newInstance().newXMLGregorianCalendar(text);
			cardInfo.getCardType().setDate(date);*/
                } else if (parser.getName().equals("Version")) {
                    cardInfo.getCardType().setVersion(this.parseVersion(parser));
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("CardInfo")));
        cardInfo.setApplicationCapabilities(applicationCapabilities);
        return cardInfo;
    } else if (parser.getName().equals("AddonSpecification")) {
        AddonSpecification addonBundleDescription = new AddonSpecification();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("ID")) {
                    addonBundleDescription.setId(parser.nextText());
                } else if (parser.getName().equals("Version")) {
                    addonBundleDescription.setVersion(parser.nextText());
                } else if (parser.getName().equals("License")) {
                    addonBundleDescription.setLicense(parser.nextText());
                } else if (parser.getName().equals("LocalizedName")) {
                    LocalizedString string = new LocalizedString();
                    string.setLang(parser.getAttributeValue("http://www.w3.org/XML/1998/namespace", "lang"));
                    string.setValue(parser.nextText());
                    addonBundleDescription.getLocalizedName().add(string);
                } else if (parser.getName().equals("LocalizedDescription")) {
                    LocalizedString string = new LocalizedString();
                    string.setLang(parser.getAttributeValue("http://www.w3.org/XML/1998/namespace", "lang"));
                    string.setValue(parser.nextText());
                    addonBundleDescription.getLocalizedDescription().add(string);
                } else if (parser.getName().equals("About")) {
                    LocalizedString string = new LocalizedString();
                    string.setLang(parser.getAttributeValue("http://www.w3.org/XML/1998/namespace", "lang"));
                    string.setValue(parser.nextText());
                    addonBundleDescription.getAbout().add(string);
                } else if (parser.getName().equals("Logo")) {
                    addonBundleDescription.setLogo(parser.nextText());
                } else if (parser.getName().equals("ConfigDescription")) {
                    addonBundleDescription.setConfigDescription(parseConfigDescription(parser));
                } else if (parser.getName().equals("BindingActions")) {
                    addonBundleDescription.getBindingActions().addAll(parseBindingActions(parser));
                } else if (parser.getName().equals("ApplicationActions")) {
                    addonBundleDescription.getApplicationActions().addAll(parseApplicationActions(parser));
                } else if (parser.getName().equals("IFDActions")) {
                    addonBundleDescription.getIfdActions().addAll(parseProtocolPluginSpecification(parser, "IFDActions"));
                } else if (parser.getName().equals("SALActions")) {
                    addonBundleDescription.getSalActions().addAll(parseProtocolPluginSpecification(parser, "SALActions"));
                } else {
                    throw new IllegalArgumentException(parser.getName() + " in AddonSpecification is not supported.");
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("AddonSpecification")));
        return addonBundleDescription;
    } else if (parser.getName().equals("EstablishChannel")) {
        EstablishChannel result = new EstablishChannel();
        int eventType;
        do {
            parser.next();
            eventType = parser.getEventType();
            if (eventType == XmlPullParser.START_TAG) {
                if (parser.getName().equals("SlotHandle")) {
                    result.setSlotHandle(StringUtils.toByteArray(parser.nextText()));
                } else if (parser.getName().equals("AuthenticationProtocolData")) {
                    result.setAuthenticationProtocolData(parseDIDAuthenticationDataType(parser));
                } else if (parser.getName().equals("Profile")) {
                    result.setProfile(parser.nextText());
                } else if (parser.getName().equals("RequestID")) {
                    result.setRequestID(parser.nextText());
                } else {
                    throw new IOException("Unmarshalling of " + parser.getName() + " in EstablishChannel not supported.");
                }
            }
        } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("EstablishChannel")));
        return result;
    } else {
        throw new IOException("Unmarshalling of " + parser.getName() + " is not yet supported.");
    }
}
Also used : ConnectionHandleType(iso.std.iso_iec._24727.tech.schema.ConnectionHandleType) InitializeFramework(de.bund.bsi.ecard.api._1.InitializeFramework) GetStatusResponse(iso.std.iso_iec._24727.tech.schema.GetStatusResponse) ChannelHandleType(iso.std.iso_iec._24727.tech.schema.ChannelHandleType) LocalizedString(org.openecard.addon.manifest.LocalizedString) GetIFDCapabilities(iso.std.iso_iec._24727.tech.schema.GetIFDCapabilities) BeginTransaction(iso.std.iso_iec._24727.tech.schema.BeginTransaction) PathSecurityType(iso.std.iso_iec._24727.tech.schema.PathSecurityType) CardApplicationConnect(iso.std.iso_iec._24727.tech.schema.CardApplicationConnect) XmlPullParserException(org.xmlpull.v1.XmlPullParserException) AddonSpecification(org.openecard.addon.manifest.AddonSpecification) EstablishContext(iso.std.iso_iec._24727.tech.schema.EstablishContext) EndTransaction(iso.std.iso_iec._24727.tech.schema.EndTransaction) OutputInfoType(iso.std.iso_iec._24727.tech.schema.OutputInfoType) CardApplicationPathResponse(iso.std.iso_iec._24727.tech.schema.CardApplicationPathResponse) EstablishChannelResponse(iso.std.iso_iec._24727.tech.schema.EstablishChannelResponse) CardApplicationConnect(iso.std.iso_iec._24727.tech.schema.CardApplicationConnect) Connect(iso.std.iso_iec._24727.tech.schema.Connect) CardInfo(iso.std.iso_iec._24727.tech.schema.CardInfo) EstablishContextResponse(iso.std.iso_iec._24727.tech.schema.EstablishContextResponse) DestroyChannelResponse(iso.std.iso_iec._24727.tech.schema.DestroyChannelResponse) BeginTransactionResponse(iso.std.iso_iec._24727.tech.schema.BeginTransactionResponse) EstablishChannel(iso.std.iso_iec._24727.tech.schema.EstablishChannel) BigInteger(java.math.BigInteger) GetIFDCapabilitiesResponse(iso.std.iso_iec._24727.tech.schema.GetIFDCapabilitiesResponse) ListIFDs(iso.std.iso_iec._24727.tech.schema.ListIFDs) CardApplicationDisconnect(iso.std.iso_iec._24727.tech.schema.CardApplicationDisconnect) CardTypeType(iso.std.iso_iec._24727.tech.schema.CardTypeType) ConnectResponse(iso.std.iso_iec._24727.tech.schema.ConnectResponse) CardApplicationConnectResponse(iso.std.iso_iec._24727.tech.schema.CardApplicationConnectResponse) IFDCapabilitiesType(iso.std.iso_iec._24727.tech.schema.IFDCapabilitiesType) StartPAOSResponse(iso.std.iso_iec._24727.tech.schema.StartPAOSResponse) WaitResponse(iso.std.iso_iec._24727.tech.schema.WaitResponse) EndTransactionResponse(iso.std.iso_iec._24727.tech.schema.EndTransactionResponse) LocalizedString(org.openecard.addon.manifest.LocalizedString) CardApplicationPathType(iso.std.iso_iec._24727.tech.schema.CardApplicationPathType) Disconnect(iso.std.iso_iec._24727.tech.schema.Disconnect) CardApplicationDisconnect(iso.std.iso_iec._24727.tech.schema.CardApplicationDisconnect) DisconnectResponse(iso.std.iso_iec._24727.tech.schema.DisconnectResponse) CardApplicationDisconnectResponse(iso.std.iso_iec._24727.tech.schema.CardApplicationDisconnectResponse) DestroyChannel(iso.std.iso_iec._24727.tech.schema.DestroyChannel) RecognitionInfo(iso.std.iso_iec._24727.tech.schema.ConnectionHandleType.RecognitionInfo) RecognitionTree(iso.std.iso_iec._24727.tech.schema.RecognitionTree) DIDAuthenticate(iso.std.iso_iec._24727.tech.schema.DIDAuthenticate) Transmit(iso.std.iso_iec._24727.tech.schema.Transmit) ListIFDsResponse(iso.std.iso_iec._24727.tech.schema.ListIFDsResponse) GetRecognitionTreeResponse(iso.std.iso_iec._24727.tech.schema.GetRecognitionTreeResponse) CardApplicationDisconnectResponse(iso.std.iso_iec._24727.tech.schema.CardApplicationDisconnectResponse) CardApplicationConnectResponse(iso.std.iso_iec._24727.tech.schema.CardApplicationConnectResponse) IOException(java.io.IOException) InternationalStringType(oasis.names.tc.dss._1_0.core.schema.InternationalStringType) DIDAuthenticateResponse(iso.std.iso_iec._24727.tech.schema.DIDAuthenticateResponse) CardApplicationPath(iso.std.iso_iec._24727.tech.schema.CardApplicationPath) ApplicationCapabilitiesType(iso.std.iso_iec._24727.tech.schema.ApplicationCapabilitiesType) TransmitResponse(iso.std.iso_iec._24727.tech.schema.TransmitResponse) SlotInfo(iso.std.iso_iec._24727.tech.schema.ConnectionHandleType.SlotInfo)

Aggregations

GetIFDCapabilitiesResponse (iso.std.iso_iec._24727.tech.schema.GetIFDCapabilitiesResponse)4 IFDCapabilitiesType (iso.std.iso_iec._24727.tech.schema.IFDCapabilitiesType)4 ConnectionHandleType (iso.std.iso_iec._24727.tech.schema.ConnectionHandleType)3 GetIFDCapabilities (iso.std.iso_iec._24727.tech.schema.GetIFDCapabilities)3 BioSensorCapabilityType (iso.std.iso_iec._24727.tech.schema.BioSensorCapabilityType)2 DisplayCapabilityType (iso.std.iso_iec._24727.tech.schema.DisplayCapabilityType)2 BigInteger (java.math.BigInteger)2 IfdEventObject (org.openecard.common.event.IfdEventObject)2 NoSuchTerminal (org.openecard.common.ifd.scio.NoSuchTerminal)2 SCIOException (org.openecard.common.ifd.scio.SCIOException)2 SingleThreadChannel (org.openecard.ifd.scio.wrapper.SingleThreadChannel)2 InitializeFramework (de.bund.bsi.ecard.api._1.InitializeFramework)1 ApplicationCapabilitiesType (iso.std.iso_iec._24727.tech.schema.ApplicationCapabilitiesType)1 BeginTransaction (iso.std.iso_iec._24727.tech.schema.BeginTransaction)1 BeginTransactionResponse (iso.std.iso_iec._24727.tech.schema.BeginTransactionResponse)1 CardApplicationConnect (iso.std.iso_iec._24727.tech.schema.CardApplicationConnect)1 CardApplicationConnectResponse (iso.std.iso_iec._24727.tech.schema.CardApplicationConnectResponse)1 CardApplicationDisconnect (iso.std.iso_iec._24727.tech.schema.CardApplicationDisconnect)1 CardApplicationDisconnectResponse (iso.std.iso_iec._24727.tech.schema.CardApplicationDisconnectResponse)1 CardApplicationPath (iso.std.iso_iec._24727.tech.schema.CardApplicationPath)1