Search in sources :

Example 6 with ActionNameType

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

the class AndroidMarshaller method parseAction.

private ActionNameType parseAction(XmlPullParser parser) throws XmlPullParserException, IOException {
    ActionNameType action = new ActionNameType();
    int eventType;
    do {
        parser.next();
        eventType = parser.getEventType();
        if (eventType == XmlPullParser.START_TAG) {
            if (parser.getName().equals("APIAccessEntryPoint")) {
                action.setAPIAccessEntryPoint(APIAccessEntryPointName.fromValue(parser.nextText()));
            } else if (parser.getName().equals("ConnectionServiceAction")) {
                action.setConnectionServiceAction(ConnectionServiceActionName.fromValue(parser.nextText()));
            } else if (parser.getName().equals("CardApplicationServiceAction")) {
                action.setCardApplicationServiceAction(CardApplicationServiceActionName.fromValue(parser.nextText()));
            } else if (parser.getName().equals("NamedDataServiceAction")) {
                action.setNamedDataServiceAction(NamedDataServiceActionName.fromValue(parser.nextText()));
            } else if (parser.getName().equals("CryptographicServiceAction")) {
                action.setCryptographicServiceAction(CryptographicServiceActionName.fromValue(parser.nextText()));
            } else if (parser.getName().equals("DifferentialIdentityServiceAction")) {
                action.setDifferentialIdentityServiceAction(DifferentialIdentityServiceActionName.fromValue(parser.nextText()));
            } else if (parser.getName().equals("AuthorizationServiceAction")) {
                action.setAuthorizationServiceAction(AuthorizationServiceActionName.fromValue(parser.nextText()));
            } else if (parser.getName().equals("LoadedAction")) {
                action.setLoadedAction(parser.nextText());
            }
        }
    } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("Action")));
    return action;
}
Also used : ActionNameType(iso.std.iso_iec._24727.tech.schema.ActionNameType)

Example 7 with ActionNameType

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

the class CIFCreator method createAction.

private ActionNameType createAction(CardApplicationServiceActionName actionName) {
    ActionNameType action = new ActionNameType();
    action.setCardApplicationServiceAction(actionName);
    return action;
}
Also used : ActionNameType(iso.std.iso_iec._24727.tech.schema.ActionNameType)

Example 8 with ActionNameType

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

the class CIFCreator method createAction.

private ActionNameType createAction(APIAccessEntryPointName actionName) {
    ActionNameType action = new ActionNameType();
    action.setAPIAccessEntryPoint(actionName);
    return action;
}
Also used : ActionNameType(iso.std.iso_iec._24727.tech.schema.ActionNameType)

Example 9 with ActionNameType

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

the class CIFCreator method createAction.

private ActionNameType createAction(ConnectionServiceActionName actionName) {
    ActionNameType action = new ActionNameType();
    action.setConnectionServiceAction(actionName);
    return action;
}
Also used : ActionNameType(iso.std.iso_iec._24727.tech.schema.ActionNameType)

Example 10 with ActionNameType

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

the class CIFCreator method createAction.

private ActionNameType createAction(String actionName) {
    ActionNameType action = new ActionNameType();
    action.setLoadedAction(actionName);
    return action;
}
Also used : ActionNameType(iso.std.iso_iec._24727.tech.schema.ActionNameType)

Aggregations

ActionNameType (iso.std.iso_iec._24727.tech.schema.ActionNameType)9 AccessRuleType (iso.std.iso_iec._24727.tech.schema.AccessRuleType)1 SecurityConditionType (iso.std.iso_iec._24727.tech.schema.SecurityConditionType)1