1/* 2 * Copyright (C) 2019 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto3"; 18 19package nugget.app.identity; 20 21/** 22 * The ResultCode enumeration is used to convey the status of an operation. 23 */ 24enum ResultCode { 25 STATUS_OK = 0; 26 STATUS_FAILED = 1; 27 STATUS_CIPHER_SUITE_NOT_SUPPORTED = 2; 28 STATUS_INVALID_DATA = 3; 29 STATUS_INVALID_AUTH_TOKEN = 4; 30 STATUS_INVALID_ITEMS_REQUEST_MESSAGE = 5; 31 STATUS_READER_SIGNATURE_CHECK_FAILED = 6; 32 STATUS_EPHEMERAL_PUBLIC_KEY_NOT_FOUND = 7; 33 STATUS_USER_AUTHENTICATION_FAILED = 8; 34 STATUS_READER_AUTHENTICATION_FAILED = 9; 35 STATUS_NO_ACCESS_CONTROL_PROFILES = 10; 36 STATUS_NOT_IN_REQUEST_MESSAGE = 11; 37 STATUS_SESSION_TRANSCRIPT_MISMATCH = 12; 38}; 39 40enum EicAccessCheckResult { 41 EIC_ACCESS_CHECK_RESULT_OK = 0; 42 EIC_ACCESS_CHECK_RESULT_FAILED = 1; 43 EIC_ACCESS_CHECK_RESULT_NO_ACCESS_CONTROL_PROFILES = 2; 44 EIC_ACCESS_CHECK_RESULT_USER_AUTHENTICATION_FAILED = 3; 45 EIC_ACCESS_CHECK_RESULT_READER_AUTHENTICATION_FAILED = 4; 46};