Class ExternalIdentityUtils

  • All Implemented Interfaces:

    
    public final class ExternalIdentityUtils
    
                        

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

    • 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
      static MAMIdentity identityFromOID(@Nullable() String oid) Convert an OID parameter into a MAMIdentity.
      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.
      • Methods inherited from class java.lang.Object

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

    • 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.