Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2HashConfig
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2HashConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/identitytoolkit_v2/classes.rb,
lib/google/apis/identitytoolkit_v2/representations.rb,
lib/google/apis/identitytoolkit_v2/representations.rb
Overview
History information of the hash algorithm and key. Different accounts' passwords may be generated by different version.
Instance Attribute Summary collapse
-
#algorithm ⇒ String
Output only.
-
#memory_cost ⇒ Fixnum
Output only.
-
#rounds ⇒ Fixnum
Output only.
-
#salt_separator ⇒ String
Output only.
-
#signer_key ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2HashConfig
constructor
A new instance of GoogleCloudIdentitytoolkitAdminV2HashConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2HashConfig
Returns a new instance of GoogleCloudIdentitytoolkitAdminV2HashConfig.
725 726 727 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 725 def initialize(**args) update!(**args) end |
Instance Attribute Details
#algorithm ⇒ String
Output only. Different password hash algorithms used in Identity Toolkit.
Corresponds to the JSON property algorithm
699 700 701 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 699 def algorithm @algorithm end |
#memory_cost ⇒ Fixnum
Output only. Memory cost for hash calculation. Used by scrypt and other
similar password derivation algorithms. See https://tools.ietf.org/html/
rfc7914 for explanation of field.
Corresponds to the JSON property memoryCost
706 707 708 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 706 def memory_cost @memory_cost end |
#rounds ⇒ Fixnum
Output only. How many rounds for hash calculation. Used by scrypt and other
similar password derivation algorithms.
Corresponds to the JSON property rounds
712 713 714 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 712 def rounds @rounds end |
#salt_separator ⇒ String
Output only. Non-printable character to be inserted between the salt and plain
text password in base64.
Corresponds to the JSON property saltSeparator
718 719 720 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 718 def salt_separator @salt_separator end |
#signer_key ⇒ String
Output only. Signer key in base64.
Corresponds to the JSON property signerKey
723 724 725 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 723 def signer_key @signer_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
730 731 732 733 734 735 736 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 730 def update!(**args) @algorithm = args[:algorithm] if args.key?(:algorithm) @memory_cost = args[:memory_cost] if args.key?(:memory_cost) @rounds = args[:rounds] if args.key?(:rounds) @salt_separator = args[:salt_separator] if args.key?(:salt_separator) @signer_key = args[:signer_key] if args.key?(:signer_key) end |