Package: android.hidl.token@1.0

ITokenManager

interface ITokenManager

This facilitates converting hidl interfaces into something that are more easily transferrable to other processes.

Methods

createToken

createToken (/***/interface store)
generates (vec<uint8_t> token)

Register an interface.The server must keep a strong reference to the interface until the token is destroyed by calling unregister.

Must return empty token on failure.

Details
Parameters
store
Interface which can later be fetched with the returned token.
Generates
token
Opaque value which may be used as inputs to other functions.

unregister

unregister (vec<uint8_t> token)
generates (bool success)

Destory a token and the strong reference to the associated interface.

Details
Parameters
token
Token received from createToken
Generates
success
Whether or not the token was successfully unregistered.

get

get (vec<uint8_t> token)
generates (/***/interface store)

Fetch an interface from a provided token.

Details
Parameters
token
Token received from createToken
Generates
store
Interface registered with createToken and the corresponding token or nullptr.