mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Remove extra spacing
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ def handler(operation, payload, pin, key_attributes, version):
|
||||
# Throw exception on unsupported operation.
|
||||
#
|
||||
raise Exception('Unsupported operation ' + operation)
|
||||
|
||||
|
||||
# The response should be a base64 url encoded JSON expected by the control plane.
|
||||
#
|
||||
serialized_json_response = json.dumps(response.__dict__).encode("utf-8")
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@ class ConfigurationConstants(object):
|
||||
CONFIG_HSM_SETTINGS_FILE = "configuration.ini"
|
||||
|
||||
"""
|
||||
Configuration section name where environment variables
|
||||
Configuration section name where environment variables
|
||||
to be loaded before application execution are defined.
|
||||
"""
|
||||
CONFIG_SECTION_ENVIRONMENT_VARIABLE = "EnvironmentVariables"
|
||||
@@ -18,7 +18,7 @@ class ConfigurationConstants(object):
|
||||
|
||||
class Operations(object):
|
||||
"""
|
||||
Operations supported by the application. These are the operations
|
||||
Operations supported by the application. These are the operations
|
||||
that the Big Data Cluster control plane will invoke.
|
||||
"""
|
||||
OPERATION_ENCRYPT='encrypt'
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ def get_key(json_key_attributes_dict, pin, version):
|
||||
|
||||
# JsonWebKeyResponse expects integer inputs and converts them to byte array
|
||||
# However AKV SDK already provides byte arrays for Exponent and Modulus.
|
||||
# We will instantiate the object with a dummy value and then overwrite the
|
||||
# We will instantiate the object with a dummy value and then overwrite the
|
||||
# exponent and module value.
|
||||
#
|
||||
dummy_val = 1
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ class EncryptDecryptRequest(object):
|
||||
self.alg = alg
|
||||
|
||||
class EncryptDecryptResponse(object):
|
||||
"""
|
||||
"""
|
||||
Represents the encryption and decryption response
|
||||
"""
|
||||
def __init__(self, value):
|
||||
|
||||
Reference in New Issue
Block a user