Class: Virgil::SDK::HighLevel::VirgilIdentity::VerificationOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/virgil/sdk/high_level/virgil_identity/verification_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ VerificationOptions

Returns a new instance of VerificationOptions.



47
48
49
50
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_options.rb', line 47

def initialize(options = {})
  @time_to_live = options[:time_to_live] || 3600
  @count_to_live = options[:count_to_live] || 12
end

Instance Attribute Details

#count_to_liveObject (readonly)

time_to_live is used to limit the lifetime of the token in seconds (maximum value is 60 * 60 * 24 * 365 = 1 year). Default value is 3600.

count_to_live parameter is used to restrict the number of validation token usages (maximum value is 100).



45
46
47
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_options.rb', line 45

def count_to_live
  @count_to_live
end

#time_to_liveObject (readonly)

time_to_live is used to limit the lifetime of the token in seconds (maximum value is 60 * 60 * 24 * 365 = 1 year). Default value is 3600.

count_to_live parameter is used to restrict the number of validation token usages (maximum value is 100).



45
46
47
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_options.rb', line 45

def time_to_live
  @time_to_live
end