public interface

MAMIdentityRequirementListener

com.microsoft.intune.mam.client.app.MAMIdentityRequirementListener
Known Indirect Subclasses

Class Overview

Allows an app to respond to requests to switch identity.

Summary

Public Methods
abstract void onMAMIdentitySwitchRequired(String identity, AppIdentitySwitchResultCallback callback)
abstract void onMAMIdentitySwitchRequired(String upn, String oid, AppIdentitySwitchResultCallback callback)
Called by MAM to notify the app that an incoming intent requires a temporary identity switch on this thread.

Public Methods

public abstract void onMAMIdentitySwitchRequired (String identity, AppIdentitySwitchResultCallback callback)

This method is deprecated.
Use onMAMIdentitySwitchRequired(String, String, AppIdentitySwitchResultCallback).

Called by MAM to notify the app that an incoming intent requires a temporary identity switch on this thread. The application must call callback.reportIdentitySwitchResult to tell MAM whether the identity switch is allowed. In general, applications should allow identity switches. The default implementation allows all identity switches. Service calls will block until the callback is made. For services which run on the UI thread, the callback must be made before this function returns, otherwise the application will be nonresponsive. If a FAILED result is reported, then the service operation that initiated the identity switch will be cancelled. Activities should instead override the three-argument version of this method from MAMActivityIdentityRequirementListener.

Parameters
identity UPN of the identity being switched to.
callback must be called to notify MAM whether to allow the switch.

public abstract void onMAMIdentitySwitchRequired (String upn, String oid, AppIdentitySwitchResultCallback callback)

Called by MAM to notify the app that an incoming intent requires a temporary identity switch on this thread. The application must call callback.reportIdentitySwitchResult to tell MAM whether the identity switch is allowed. In general, applications should allow identity switches. The default implementation allows all identity switches. Service calls will block until the callback is made. For services which run on the UI thread, the callback must be made before this function returns, otherwise the application will be nonresponsive. If a FAILED result is reported, then the service operation that initiated the identity switch will be cancelled. Activities should instead override the four-argument version of this method from MAMActivityIdentityRequirementListener.

Parameters
upn UPN of the identity being switched to.
oid AAD OID of the identity being switched to.
callback must be called to notify MAM whether to allow the switch.