1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl-cpp -dout/soong/.temp/sbox/10ece8c3f2676d939c6532d9928a7335ddf2c032/out/android/security/identity/ICredential.cpp.d --ninja -Isystem/security/identity/binder -t --min_sdk_version=platform_apis -Isystem/security/identity/binder/ system/security/identity/binder/android/security/identity/ICredential.aidl out/soong/.temp/sbox/10ece8c3f2676d939c6532d9928a7335ddf2c032/out out/soong/.temp/sbox/10ece8c3f2676d939c6532d9928a7335ddf2c032/out/android/security/identity/ICredential.cpp
4  *
5  * DO NOT CHECK THIS FILE INTO A CODE TREE (e.g. git, etc..).
6  * ALWAYS GENERATE THIS FILE FROM UPDATED AIDL COMPILER
7  * AS A BUILD INTERMEDIATE ONLY. THIS IS NOT SOURCE CODE.
8  */
9 #pragma once
10 
11 #include <binder/IInterface.h>
12 #include <android/security/identity/ICredential.h>
13 #include <android/security/identity/BnCredential.h>
14 #include <android/security/identity/BnWritableCredential.h>
15 #include <binder/Delegate.h>
16 
17 
18 namespace android {
19 namespace security {
20 namespace identity {
21 class LIBBINDER_EXPORTED BnCredential : public ::android::BnInterface<ICredential> {
22 public:
23   static constexpr uint32_t TRANSACTION_createEphemeralKeyPair = ::android::IBinder::FIRST_CALL_TRANSACTION + 0;
24   static constexpr uint32_t TRANSACTION_setReaderEphemeralPublicKey = ::android::IBinder::FIRST_CALL_TRANSACTION + 1;
25   static constexpr uint32_t TRANSACTION_deleteCredential = ::android::IBinder::FIRST_CALL_TRANSACTION + 2;
26   static constexpr uint32_t TRANSACTION_deleteWithChallenge = ::android::IBinder::FIRST_CALL_TRANSACTION + 3;
27   static constexpr uint32_t TRANSACTION_proveOwnership = ::android::IBinder::FIRST_CALL_TRANSACTION + 4;
28   static constexpr uint32_t TRANSACTION_getCredentialKeyCertificateChain = ::android::IBinder::FIRST_CALL_TRANSACTION + 5;
29   static constexpr uint32_t TRANSACTION_selectAuthKey = ::android::IBinder::FIRST_CALL_TRANSACTION + 6;
30   static constexpr uint32_t TRANSACTION_getEntries = ::android::IBinder::FIRST_CALL_TRANSACTION + 7;
31   static constexpr uint32_t TRANSACTION_setAvailableAuthenticationKeys = ::android::IBinder::FIRST_CALL_TRANSACTION + 8;
32   static constexpr uint32_t TRANSACTION_getAuthKeysNeedingCertification = ::android::IBinder::FIRST_CALL_TRANSACTION + 9;
33   static constexpr uint32_t TRANSACTION_storeStaticAuthenticationData = ::android::IBinder::FIRST_CALL_TRANSACTION + 10;
34   static constexpr uint32_t TRANSACTION_storeStaticAuthenticationDataWithExpiration = ::android::IBinder::FIRST_CALL_TRANSACTION + 11;
35   static constexpr uint32_t TRANSACTION_getAuthenticationDataUsageCount = ::android::IBinder::FIRST_CALL_TRANSACTION + 12;
36   static constexpr uint32_t TRANSACTION_getAuthenticationDataExpirations = ::android::IBinder::FIRST_CALL_TRANSACTION + 13;
37   static constexpr uint32_t TRANSACTION_update = ::android::IBinder::FIRST_CALL_TRANSACTION + 14;
38   explicit BnCredential();
39   ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override;
40 };  // class BnCredential
41 
42 class LIBBINDER_EXPORTED ICredentialDelegator : public BnCredential {
43 public:
ICredentialDelegator(const::android::sp<ICredential> & impl)44   explicit ICredentialDelegator(const ::android::sp<ICredential> &impl) : _aidl_delegate(impl) {}
45 
getImpl()46   ::android::sp<ICredential> getImpl() { return _aidl_delegate; }
createEphemeralKeyPair(::std::vector<uint8_t> * _aidl_return)47   ::android::binder::Status createEphemeralKeyPair(::std::vector<uint8_t>* _aidl_return) override {
48     return _aidl_delegate->createEphemeralKeyPair(_aidl_return);
49   }
setReaderEphemeralPublicKey(const::std::vector<uint8_t> & publicKey)50   ::android::binder::Status setReaderEphemeralPublicKey(const ::std::vector<uint8_t>& publicKey) override {
51     return _aidl_delegate->setReaderEphemeralPublicKey(publicKey);
52   }
deleteCredential(::std::vector<uint8_t> * _aidl_return)53   ::android::binder::Status deleteCredential(::std::vector<uint8_t>* _aidl_return) override {
54     return _aidl_delegate->deleteCredential(_aidl_return);
55   }
deleteWithChallenge(const::std::vector<uint8_t> & challenge,::std::vector<uint8_t> * _aidl_return)56   ::android::binder::Status deleteWithChallenge(const ::std::vector<uint8_t>& challenge, ::std::vector<uint8_t>* _aidl_return) override {
57     return _aidl_delegate->deleteWithChallenge(challenge, _aidl_return);
58   }
proveOwnership(const::std::vector<uint8_t> & challenge,::std::vector<uint8_t> * _aidl_return)59   ::android::binder::Status proveOwnership(const ::std::vector<uint8_t>& challenge, ::std::vector<uint8_t>* _aidl_return) override {
60     return _aidl_delegate->proveOwnership(challenge, _aidl_return);
61   }
getCredentialKeyCertificateChain(::std::vector<uint8_t> * _aidl_return)62   ::android::binder::Status getCredentialKeyCertificateChain(::std::vector<uint8_t>* _aidl_return) override {
63     return _aidl_delegate->getCredentialKeyCertificateChain(_aidl_return);
64   }
selectAuthKey(bool allowUsingExhaustedKeys,bool allowUsingExpiredKeys,bool incrementUsageCount,int64_t * _aidl_return)65   ::android::binder::Status selectAuthKey(bool allowUsingExhaustedKeys, bool allowUsingExpiredKeys, bool incrementUsageCount, int64_t* _aidl_return) override {
66     return _aidl_delegate->selectAuthKey(allowUsingExhaustedKeys, allowUsingExpiredKeys, incrementUsageCount, _aidl_return);
67   }
getEntries(const::std::vector<uint8_t> & requestMessage,const::std::vector<::android::security::identity::RequestNamespaceParcel> & requestNamespaces,const::std::vector<uint8_t> & sessionTranscript,const::std::vector<uint8_t> & readerSignature,bool allowUsingExhaustedKeys,bool allowUsingExpiredKeys,bool incrementUsageCount,::android::security::identity::GetEntriesResultParcel * _aidl_return)68   ::android::binder::Status getEntries(const ::std::vector<uint8_t>& requestMessage, const ::std::vector<::android::security::identity::RequestNamespaceParcel>& requestNamespaces, const ::std::vector<uint8_t>& sessionTranscript, const ::std::vector<uint8_t>& readerSignature, bool allowUsingExhaustedKeys, bool allowUsingExpiredKeys, bool incrementUsageCount, ::android::security::identity::GetEntriesResultParcel* _aidl_return) override {
69     return _aidl_delegate->getEntries(requestMessage, requestNamespaces, sessionTranscript, readerSignature, allowUsingExhaustedKeys, allowUsingExpiredKeys, incrementUsageCount, _aidl_return);
70   }
setAvailableAuthenticationKeys(int32_t keyCount,int32_t maxUsesPerKey,int64_t minValidTimeMillis)71   ::android::binder::Status setAvailableAuthenticationKeys(int32_t keyCount, int32_t maxUsesPerKey, int64_t minValidTimeMillis) override {
72     return _aidl_delegate->setAvailableAuthenticationKeys(keyCount, maxUsesPerKey, minValidTimeMillis);
73   }
getAuthKeysNeedingCertification(::std::vector<::android::security::identity::AuthKeyParcel> * _aidl_return)74   ::android::binder::Status getAuthKeysNeedingCertification(::std::vector<::android::security::identity::AuthKeyParcel>* _aidl_return) override {
75     return _aidl_delegate->getAuthKeysNeedingCertification(_aidl_return);
76   }
storeStaticAuthenticationData(const::android::security::identity::AuthKeyParcel & authenticationKey,const::std::vector<uint8_t> & staticAuthData)77   ::android::binder::Status storeStaticAuthenticationData(const ::android::security::identity::AuthKeyParcel& authenticationKey, const ::std::vector<uint8_t>& staticAuthData) override {
78     return _aidl_delegate->storeStaticAuthenticationData(authenticationKey, staticAuthData);
79   }
storeStaticAuthenticationDataWithExpiration(const::android::security::identity::AuthKeyParcel & authenticationKey,int64_t expirationDateMillisSinceEpoch,const::std::vector<uint8_t> & staticAuthData)80   ::android::binder::Status storeStaticAuthenticationDataWithExpiration(const ::android::security::identity::AuthKeyParcel& authenticationKey, int64_t expirationDateMillisSinceEpoch, const ::std::vector<uint8_t>& staticAuthData) override {
81     return _aidl_delegate->storeStaticAuthenticationDataWithExpiration(authenticationKey, expirationDateMillisSinceEpoch, staticAuthData);
82   }
getAuthenticationDataUsageCount(::std::vector<int32_t> * _aidl_return)83   ::android::binder::Status getAuthenticationDataUsageCount(::std::vector<int32_t>* _aidl_return) override {
84     return _aidl_delegate->getAuthenticationDataUsageCount(_aidl_return);
85   }
getAuthenticationDataExpirations(::std::vector<int64_t> * _aidl_return)86   ::android::binder::Status getAuthenticationDataExpirations(::std::vector<int64_t>* _aidl_return) override {
87     return _aidl_delegate->getAuthenticationDataExpirations(_aidl_return);
88   }
update(::android::sp<::android::security::identity::IWritableCredential> * _aidl_return)89   ::android::binder::Status update(::android::sp<::android::security::identity::IWritableCredential>* _aidl_return) override {
90     auto _status = _aidl_delegate->update(_aidl_return);
91     if (*_aidl_return) {
92       *_aidl_return = ::android::sp<::android::security::identity::IWritableCredentialDelegator>::cast(delegate(*_aidl_return));
93     }
94     return _status;
95   }
96 private:
97   ::android::sp<ICredential> _aidl_delegate;
98 };  // class ICredentialDelegator
99 }  // namespace identity
100 }  // namespace security
101 }  // namespace android
102