public interface

MAMServiceAuthenticationCallback

com.microsoft.intune.mam.policy.MAMServiceAuthenticationCallback
Known Indirect Subclasses

Class Overview

The app must implement this interface to allow the SDK to request an ADAL token for the given user and resource. This callback should registered with MAMEnrollmentManager.

Summary

Public Methods
abstract String acquireToken(String upn, String aadId, String resourceId)
Acquire a token for the requested resource, for the requested user.

Public Methods

public abstract String acquireToken (String upn, String aadId, String resourceId)

Acquire a token for the requested resource, for the requested user. If a token can not be acquired, return a null. A token can be provided later by calling MAMEnrollmentManger.updateToken() with the same parameter values as passed here, along with the requested token.

Parameters
upn UPN identifying the user.
aadId AAD ID of the user.
resourceId ID of the request resource.
Returns
  • Returns the acquired token, or null if the token could not be acquired.