Interface MAMServiceAuthenticationCallbackExtended

  • All Implemented Interfaces:
    com.microsoft.intune.mam.policy.MAMServiceAuthenticationCallback

    
    public interface MAMServiceAuthenticationCallbackExtended
     implements MAMServiceAuthenticationCallback
                        

    An extension to the MAMServiceAuthenticationCallback interface to add an acquireToken overload that takes the authority parameter. Apps can implement and register this interface in preference to MAMServiceAuthenticationCallback and register it with MAMEnrollmentManager.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String acquireToken(@NonNull() String upn, @NonNull() String aadId, String tenantId, String authority, @NonNull() String resourceId) Acquire a token for the requested resource, for the requested user.
      String acquireToken(@NonNull() String upn, @NonNull() String aadId, @NonNull() String resourceId) Default implementation of MAMServiceAuthenticationCallback's acquireToken method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • acquireToken

        @Nullable() abstract String acquireToken(@NonNull() String upn, @NonNull() String aadId, String tenantId, String authority, @NonNull() 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.
        tenantId - Tenant ID of the user.
        authority - Authority of the user.
        resourceId - ID of the requested resource.
        Returns:

        Returns the acquired token, or null if the token could not be acquired.

      • acquireToken

        @Nullable() String acquireToken(@NonNull() String upn, @NonNull() String aadId, @NonNull() String resourceId)

        Default implementation of MAMServiceAuthenticationCallback's acquireToken method. This is provided for convenience so that implementers of MAMServiceAuthenticationCallbackExtended don't have to provide this method.

        Parameters:
        upn - UPN identifying the user.
        aadId - AAD ID of the user.
        resourceId - ID of the request resource.
        Returns:

        null