@staticmethod
def _build_factor_name(factor):
    """ Build the display name for a MFA factor based on the factor type"""
    if factor['factorType'] == 'push':
        return 'Okta Verify App: ' + factor['profile']['deviceType'
            ] + ': ' + factor['profile']['name']
    elif factor['factorType'] == 'sms':
        return factor['factorType'] + ': ' + factor['profile']['phoneNumber']
    elif factor['factorType'] == 'call':
        return factor['factorType'] + ': ' + factor['profile']['phoneNumber']
    elif factor['factorType'] == 'token:software:totp':
        return factor['factorType'] + '( ' + factor['provider'
            ] + ' ) : ' + factor['profile']['credentialId']
    elif factor['factorType'] == 'token':
        return factor['factorType'] + ': ' + factor['profile']['credentialId']
    else:
        return 'Unknown MFA type: ' + factor['factorType']
