Default Sudo Profiles Client
Default implementation of SudoProfilesClient interface.
Parameters
Android app context.
SudoUserClient
instance required to issue authentication tokens and perform cryptographic operations.
container URI to which large binary objects will be stored.
logger used for logging messages.
configuration parameters.
maximum number of Sudos to cap the queries to. Defaults to 10.
optional GraphQL client to use. Mainly used for unit testing.
optional S3 client to use. Mainly used for unit testing.
optional GUID generator to use. Mainly used for unit testing.
namespace to use for internal data and cryptographic keys. This should be unique
database name to use for the exportable key store database.
Constructors
Functions
Creates a new Sudo
Deletes a Sudo.
Export encryption keys used for encrypting and decrypting Sudo claims.
Generate an encryption key to use for encrypting Sudo claims. Any existing keys are not removed to be able to decrypt existing claims but new claims will be encrypted using the newly generated key.
Retrieves a signed ownership proof for the specified owner. The ownership proof JWT has the following payload. { "jti": "DBEEF4EB-F84A-4AB7-A45E-02B05B93F5A3", "owner": "cd73a478-23bd-4c70-8c2b-1403e2085845", "iss": "sudoplatform.sudoservice", "aud": "sudoplatform.virtualcardservice", "exp": 1578986266, "sub": "da17f346-cf49-4db4-98c2-862f85515fc4", "iat": 1578982666 }
Get the current (most recently generated) symmetric key ID used for encryption.
Import encryption keys to use for encrypting and decrypting Sudo claims. All existing keys will be removed before the new keys are imported.
Retrieves all Sudos owned by the signed in user.
Subscribes to be notified of new, updated and deleted Sudos. Blob data is not downloaded automatically so the caller is expected to use listSudos
API if they need to access any associated blobs.
Subscribes to be notified of new, updated or deleted Sudos. Blob data is not downloaded automatically so the caller is expected to use listSudos
API if they need to access any associated blobs.
Unsubscribes the specified subscriber so that it no longer receives change notifications.
Unsubscribes the specified subscriber so that it no longer receives notifications about new, updated or deleted Sudos.
Unsubscribe all subscribers from receiving notifications about new, updated or deleted Sudos.
Updates a Sudo.