Class: Google::Apis::CloudkmsV1::Digest

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

Overview

A Digest holds a cryptographic message digest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Digest

Returns a new instance of Digest.



815
816
817
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 815

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

Instance Attribute Details

#sha256String

A message digest produced with the SHA-256 algorithm. Corresponds to the JSON property sha256 NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


801
802
803
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 801

def sha256
  @sha256
end

#sha384String

A message digest produced with the SHA-384 algorithm. Corresponds to the JSON property sha384 NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


807
808
809
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 807

def sha384
  @sha384
end

#sha512String

A message digest produced with the SHA-512 algorithm. Corresponds to the JSON property sha512 NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


813
814
815
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 813

def sha512
  @sha512
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



820
821
822
823
824
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 820

def update!(**args)
  @sha256 = args[:sha256] if args.key?(:sha256)
  @sha384 = args[:sha384] if args.key?(:sha384)
  @sha512 = args[:sha512] if args.key?(:sha512)
end