Source code for worldline.connect.sdk.authentication.authorization_type
[docs]class AuthorizationType(object):
V1HMAC = "v1HMAC"
AUTHORIZATION_TYPES = [V1HMAC]
[docs] @staticmethod
def get_authorization(name):
if name in AuthorizationType.AUTHORIZATION_TYPES:
return name
else:
raise ValueError("Authorization '{}' not found".format(name))