public final class

ExternalIdentityUtils

extends Object
java.lang.Object
   ↳ com.microsoft.intune.mam.client.identity.ExternalIdentityUtils

Class Overview

Utility functions for converting String parameters to MAMIdentities, for use in External code.

Summary

Public Methods
static MAMIdentity fromUpnAndOid(String upn, String oid)
This is used to convert UPN and OID parameters from API calls that take both into the corresponding MAMIdentity.
static MAMIdentity identityFromOID(String oid)
Convert an OID parameter into a MAMIdentity.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static MAMIdentity fromUpnAndOid (String upn, String oid)

This is used to convert UPN and OID parameters from API calls that take both into the corresponding MAMIdentity.

Parameters
upn the provided UPN.
oid the provided OID.
Returns
  • MAMIdentity based on the parameters, MAMIdentity.EMPTY if they are both empty, and null if they are both null.

public static MAMIdentity identityFromOID (String oid)

Convert an OID parameter into a MAMIdentity.

Parameters
oid An OID representing an identity.
Returns
  • MAMIdentity found or created from the given OID, MAMIdentity.EMPTY if the OID is empty, or null if the OID is null.