Package 

Object IdentityClient


  • 
    public class IdentityClient
    
                        

    Enterprise Single Sign-On Client API (tz-identity-sdk).

    Used by all 100+ peripheral Android apps to:

    • Query verified accounts from the master Identity Vault.

    • Request short-lived, audience-scoped, DPoP-bound access tokens.

    • Perform 1-click active account switching across the identity mesh.

    • Method Detail

      • generateNonce

         final String generateNonce()

        Generates a cryptographically random, ephemeral 32-byte nonce (hex encoded).

      • getAccounts

         final List<MeshAccount> getAccounts(Context context)

        Queries all accounts currently stored in the Master Identity Vault. Ultra-fast (<5ms) ContentResolver query.

      • getDelegatedToken

         final DelegatedTokenResult getDelegatedToken(Context context, String audience)

        Requests a short-lived, audience-scoped, DPoP-constrained delegated token for this client app.

        Parameters:
        context - Application context.
        audience - Target audience package (defaults to calling app package).
      • switchActiveAccount

         final Boolean switchActiveAccount(Context context, String targetAccountId)

        Requests the master vault to switch the active account. All listening apps in the mesh will be notified in 0ms via MeshSyncObserver.