Sha256: f115e9d90c2bd0a1399edf4013f5ebca5ae034bb3728b3ff2bc11762b7a5812a

Contents?: true

Size: 1.57 KB

Versions: 1

Compression:

Stored size: 1.57 KB

Contents

require "smart_id/version"
require "smart_id/utils/authentication_hash"
require "smart_id/utils/certificate_validator"
require "smart_id/utils/verification_code_calculator"
require "smart_id/api/request"
require "smart_id/api/response"
require "smart_id/api/confirmation_response"
require "smart_id/api/authentication/identity_number"
require "smart_id/api/authentication/document"
require "smart_id/api/authentication/confirmation_poller"
require "smart_id/authentication_certificate/certificate"
require "smart_id/authentication_certificate/content"

module SmartId
    @@environment = "DEMO" # possible options are demo and production
    @@relying_party_uuid = nil
    @@relying_party_name = nil
    @@default_certificate_level = "ADVANCED" # possible values are "ADVANCED", "QUALIFIED" 
    @@poller_timeout_seconds = 10

  def self.configure(&block)
    yield(self)
  end

  def self.relying_party_uuid=(value)
    @@relying_party_uuid = value
  end

  def self.relying_party_uuid
    @@relying_party_uuid
  end

  def self.relying_party_name=(value)
    @@relying_party_name = value
  end

  def self.relying_party_name
    @@relying_party_name
  end

  def self.default_certificate_level=(value)
    @@default_certificate_level = value
  end

  def self.default_certificate_level
    @@default_certificate_level
  end

  def self.poller_timeout_seconds=(value)
    @@poller_timeout_seconds = value
  end

  def self.poller_timeout_seconds
    @@poller_timeout_seconds
  end

  def self.environment=(value)
    @@environment = value.upcase
  end

  def self.environment
    @@environment
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smart_id-0.1.0 lib/smart_id.rb