@staticmethod
def _isCorrectName(name):
    """
        Checks that the important name components are present
        """
    i = name.size() - 1
    idString = 'ID-CERT'
    while i >= 0:
        if name.get(i).toEscapedString() == idString:
            break
        i -= 1
    if i < 0:
        return False
    keyIdx = 0
    keyString = 'KEY'
    while keyIdx < name.size():
        if name.get(keyIdx).toEscapedString() == keyString:
            break
        keyIdx += 1
    if keyIdx >= name.size():
        return False
    return True
