Class: Google::Apis::HealthcareV1beta1::CryptoHashConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/representations.rb

Overview

Pseudonymization method that generates surrogates via cryptographic hashing. Uses SHA-256. Outputs a base64-encoded representation of the hashed output. For example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CryptoHashConfig

Returns a new instance of CryptoHashConfig.



1576
1577
1578
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1576

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#crypto_keyString

An AES 128/192/256 bit key. Causes the hash to be computed based on this key. A default key is generated for each Deidentify operation and is used when neither crypto_key nor kms_wrapped is specified. Must not be set if kms_wrapped is set. Corresponds to the JSON property cryptoKey NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


1565
1566
1567
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1565

def crypto_key
  @crypto_key
end

#kms_wrappedGoogle::Apis::HealthcareV1beta1::KmsWrappedCryptoKey

Include to use an existing data crypto key wrapped by KMS. The wrapped key must be a 128-, 192-, or 256-bit key. The key must grant the Cloud IAM permission cloudkms.cryptoKeyVersions.useToDecrypt to the project's Cloud Healthcare Service Agent service account. For more information, see Creating a wrapped key. Corresponds to the JSON property kmsWrapped



1574
1575
1576
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1574

def kms_wrapped
  @kms_wrapped
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1581
1582
1583
1584
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1581

def update!(**args)
  @crypto_key = args[:crypto_key] if args.key?(:crypto_key)
  @kms_wrapped = args[:kms_wrapped] if args.key?(:kms_wrapped)
end