Class: Google::Apis::CloudsearchV1::CapTokenHolderProto

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

Overview

Represents a principal which possesses a particular secret string whose cryptographic hash is specified here. CapTokens ("Capability Tokens") are used in ACLProto. It's expected that ACLs with CapTokenHolders will strongly enforce them by Keystore-wrapping crypto keys for the corresponding CapTokens.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapTokenHolderProto

Returns a new instance of CapTokenHolderProto.



5745
5746
5747
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5745

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

Instance Attribute Details

#token_hmac_sha1_prefixString

The hash of the corresponding capability token. The value is defined to be identical to the one in acl.proto's CapTokenMetadata: 10-byte prefix of HMAC- SHA1 of the token. The HMAC key is the following fixed (non-secret) 512-bit value: 79b1c8f4 82baf523 b8a9ab4a e960f438 c45be041 11f1f222 e8a3f64d aeb05e3d c3576acc ec649194 aede422c 4e48e0d1 ff21234a a6ed6b49 a7fa592e efd7bba3 Corresponds to the JSON property tokenHmacSha1Prefix NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


5743
5744
5745
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5743

def token_hmac_sha1_prefix
  @token_hmac_sha1_prefix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5750
5751
5752
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5750

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