Class ExternalIdentityUtils
-
- All Implemented Interfaces:
public final class ExternalIdentityUtilsUtility functions for converting String parameters to MAMIdentities, for use in External code.
-
-
Method Summary
Modifier and Type Method Description static MAMIdentityidentityFromOID(@Nullable() String oid)Convert an OID parameter into a MAMIdentity. static MAMIdentityfromUpnAndOid(@Nullable() String upn, @Nullable() String oid)This is used to convert UPN and OID parameters from API calls that take both into the corresponding MAMIdentity. -
-
Method Detail
-
identityFromOID
@Nullable() static MAMIdentity identityFromOID(@Nullable() 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.
-
fromUpnAndOid
@Nullable() static MAMIdentity fromUpnAndOid(@Nullable() String upn, @Nullable() 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.
-
-
-
-