

@classmethod
def lookup(cls, name):
    'Look up the signature key type.\n\n        :param name: the name of the signature key type\n        :returns: the SignatureKeyType object\n        :raises: SignatureVerificationError if signature key type is invalid\n        '
    if (cls not in cls._REGISTERED_TYPES):
        raise exception.SignatureVerificationError(reason=(_('Invalid signature key type: %s') % name))
    return cls._REGISTERED_TYPES[name]

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/signature_utils.py SignatureKeyType.lookup/VarMisuse@19/95 `name`->`cls`