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/ISession.cpp.d --ninja -Isystem/security/identity/binder -t --min_sdk_version=platform_apis -Isystem/security/identity/binder/ system/security/identity/binder/android/security/identity/ISession.aidl out/soong/.temp/sbox/10ece8c3f2676d939c6532d9928a7335ddf2c032/out out/soong/.temp/sbox/10ece8c3f2676d939c6532d9928a7335ddf2c032/out/android/security/identity/ISession.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/ISession.h> 13 #include <android/security/identity/BnCredential.h> 14 #include <android/security/identity/BnSession.h> 15 #include <binder/Delegate.h> 16 17 18 namespace android { 19 namespace security { 20 namespace identity { 21 class LIBBINDER_EXPORTED BnSession : public ::android::BnInterface<ISession> { 22 public: 23 static constexpr uint32_t TRANSACTION_getEphemeralKeyPair = ::android::IBinder::FIRST_CALL_TRANSACTION + 0; 24 static constexpr uint32_t TRANSACTION_getAuthChallenge = ::android::IBinder::FIRST_CALL_TRANSACTION + 1; 25 static constexpr uint32_t TRANSACTION_setReaderEphemeralPublicKey = ::android::IBinder::FIRST_CALL_TRANSACTION + 2; 26 static constexpr uint32_t TRANSACTION_setSessionTranscript = ::android::IBinder::FIRST_CALL_TRANSACTION + 3; 27 static constexpr uint32_t TRANSACTION_getCredentialForPresentation = ::android::IBinder::FIRST_CALL_TRANSACTION + 4; 28 explicit BnSession(); 29 ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override; 30 }; // class BnSession 31 32 class LIBBINDER_EXPORTED ISessionDelegator : public BnSession { 33 public: ISessionDelegator(const::android::sp<ISession> & impl)34 explicit ISessionDelegator(const ::android::sp<ISession> &impl) : _aidl_delegate(impl) {} 35 getImpl()36 ::android::sp<ISession> getImpl() { return _aidl_delegate; } getEphemeralKeyPair(::std::vector<uint8_t> * _aidl_return)37 ::android::binder::Status getEphemeralKeyPair(::std::vector<uint8_t>* _aidl_return) override { 38 return _aidl_delegate->getEphemeralKeyPair(_aidl_return); 39 } getAuthChallenge(int64_t * _aidl_return)40 ::android::binder::Status getAuthChallenge(int64_t* _aidl_return) override { 41 return _aidl_delegate->getAuthChallenge(_aidl_return); 42 } setReaderEphemeralPublicKey(const::std::vector<uint8_t> & publicKey)43 ::android::binder::Status setReaderEphemeralPublicKey(const ::std::vector<uint8_t>& publicKey) override { 44 return _aidl_delegate->setReaderEphemeralPublicKey(publicKey); 45 } setSessionTranscript(const::std::vector<uint8_t> & sessionTranscript)46 ::android::binder::Status setSessionTranscript(const ::std::vector<uint8_t>& sessionTranscript) override { 47 return _aidl_delegate->setSessionTranscript(sessionTranscript); 48 } getCredentialForPresentation(const::std::string & credentialName,::android::sp<::android::security::identity::ICredential> * _aidl_return)49 ::android::binder::Status getCredentialForPresentation(const ::std::string& credentialName, ::android::sp<::android::security::identity::ICredential>* _aidl_return) override { 50 auto _status = _aidl_delegate->getCredentialForPresentation(credentialName, _aidl_return); 51 if (*_aidl_return) { 52 *_aidl_return = ::android::sp<::android::security::identity::ICredentialDelegator>::cast(delegate(*_aidl_return)); 53 } 54 return _status; 55 } 56 private: 57 ::android::sp<ISession> _aidl_delegate; 58 }; // class ISessionDelegator 59 } // namespace identity 60 } // namespace security 61 } // namespace android 62