-
public class AuthHandoffLauncherSecure Intent Handoff Launcher for Interactive Single Sign-On (
AuthHandoffLauncher).Implements:
Strict explicit intent targeting (
com.tzsmm.tzinbox).Anti-replay request nonce generation and validation on result return.
Pre-flight verification that the target vault app is installed and signed by trusted certificate.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringVAULT_PACKAGE_NAMEprivate final StringVAULT_AUTH_ACTIVITYprivate final IntegerREQUEST_CODE_TZ_AUTHpublic final static AuthHandoffLauncherINSTANCE
-
Method Summary
Modifier and Type Method Description final BooleanisVaultAvailable(Context context)Checks if the master Identity Vault is installed and trusted on this device. final BooleanlaunchAuthHandoff(Activity activity, String appDisplayName)Launches the explicit TzAuthActivityintzinbox.final MeshAccounthandleActivityResult(Integer requestCode, Integer resultCode, Intent data)Validates and parses the result returned from TzAuthActivity.final StringgetVAULT_PACKAGE_NAME()final StringgetVAULT_AUTH_ACTIVITY()final IntegergetREQUEST_CODE_TZ_AUTH()-
-
Method Detail
-
isVaultAvailable
final Boolean isVaultAvailable(Context context)
Checks if the master Identity Vault is installed and trusted on this device.
-
launchAuthHandoff
final Boolean launchAuthHandoff(Activity activity, String appDisplayName)
Launches the explicit
TzAuthActivityintzinbox.- Parameters:
activity- The calling activity.appDisplayName- Human-readable name of the calling app (e.g.
-
handleActivityResult
final MeshAccount handleActivityResult(Integer requestCode, Integer resultCode, Intent data)
Validates and parses the result returned from
TzAuthActivity.- Parameters:
requestCode- The request code from onActivityResult.resultCode- The result code (RESULT_OK, RESULT_CANCELED).data- The intent returned.
-
getVAULT_PACKAGE_NAME
final String getVAULT_PACKAGE_NAME()
-
getVAULT_AUTH_ACTIVITY
final String getVAULT_AUTH_ACTIVITY()
-
getREQUEST_CODE_TZ_AUTH
final Integer getREQUEST_CODE_TZ_AUTH()
-
-
-
-