Search in sources :

Example 1 with TAMarkerType

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

the class AndroidMarshaller method parseDIDMarkerType.

private DIDMarkerType parseDIDMarkerType(XmlPullParser parser) throws XmlPullParserException, IOException {
    DIDMarkerType didMarker = new DIDMarkerType();
    int eventType;
    do {
        parser.next();
        eventType = parser.getEventType();
        if (eventType == XmlPullParser.START_TAG) {
            if (parser.getName().equals("PACEMarker")) {
                didMarker.setPACEMarker((PACEMarkerType) this.parseMarker(parser, PACEMarkerType.class));
            } else if (parser.getName().equals("TAMarker")) {
                didMarker.setTAMarker((TAMarkerType) this.parseMarker(parser, TAMarkerType.class));
            } else if (parser.getName().equals("CAMarker")) {
                didMarker.setCAMarker((CAMarkerType) this.parseMarker(parser, CAMarkerType.class));
            } else if (parser.getName().equals("RIMarker")) {
                didMarker.setRIMarker((RIMarkerType) this.parseMarker(parser, RIMarkerType.class));
            } else if (parser.getName().equals("CryptoMarker")) {
                didMarker.setCryptoMarker((CryptoMarkerType) this.parseMarker(parser, CryptoMarkerType.class));
            } else if (parser.getName().equals("PinCompareMarker")) {
                didMarker.setPinCompareMarker((PinCompareMarkerType) this.parseMarker(parser, PinCompareMarkerType.class));
            } else if (parser.getName().equals("RSAAuthMarker")) {
                didMarker.setRSAAuthMarker((RSAAuthMarkerType) this.parseMarker(parser, RSAAuthMarkerType.class));
            } else if (parser.getName().equals("MutualAuthMarker")) {
                didMarker.setMutualAuthMarker((MutualAuthMarkerType) this.parseMarker(parser, MutualAuthMarkerType.class));
            } else if (parser.getName().equals("EACMarker")) {
                didMarker.setEACMarker((EACMarkerType) this.parseMarker(parser, EACMarkerType.class));
            } else {
                LOG.error(parser.getName() + " not yet implemented");
            }
        }
    } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("DIDMarker")));
    return didMarker;
}
Also used : DIDMarkerType(iso.std.iso_iec._24727.tech.schema.DIDMarkerType) RIMarkerType(iso.std.iso_iec._24727.tech.schema.RIMarkerType) PinCompareMarkerType(iso.std.iso_iec._24727.tech.schema.PinCompareMarkerType) MutualAuthMarkerType(iso.std.iso_iec._24727.tech.schema.MutualAuthMarkerType) TAMarkerType(iso.std.iso_iec._24727.tech.schema.TAMarkerType)

Aggregations

DIDMarkerType (iso.std.iso_iec._24727.tech.schema.DIDMarkerType)1 MutualAuthMarkerType (iso.std.iso_iec._24727.tech.schema.MutualAuthMarkerType)1 PinCompareMarkerType (iso.std.iso_iec._24727.tech.schema.PinCompareMarkerType)1 RIMarkerType (iso.std.iso_iec._24727.tech.schema.RIMarkerType)1 TAMarkerType (iso.std.iso_iec._24727.tech.schema.TAMarkerType)1