Class: Google::Apis::CloudsearchV1::CapTokenHolderProto
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::CapTokenHolderProto
- 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
-
#token_hmac_sha1_prefix ⇒ String
The hash of the corresponding capability token.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CapTokenHolderProto
constructor
A new instance of CapTokenHolderProto.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CapTokenHolderProto
Returns a new instance of CapTokenHolderProto.
5681 5682 5683 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5681 def initialize(**args) update!(**args) end |
Instance Attribute Details
#token_hmac_sha1_prefix ⇒ String
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.
5679 5680 5681 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5679 def token_hmac_sha1_prefix @token_hmac_sha1_prefix end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5686 5687 5688 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5686 def update!(**args) @token_hmac_sha1_prefix = args[:token_hmac_sha1_prefix] if args.key?(:token_hmac_sha1_prefix) end |