Module: SmartId

Defined in:
lib/smart_id.rb,
lib/smart_id/version.rb,
lib/smart_id/exceptions.rb,
lib/smart_id/utils/authentication_hash.rb,
lib/smart_id/authentication_certificate/content.rb,
lib/smart_id/utils/verification_code_calculator.rb,
lib/smart_id/authentication_certificate/certificate.rb

Defined Under Namespace

Modules: Api, AuthenticationCertificate, Utils Classes: ConnectionError, Exception, IncorrectAccountLevelError, InvalidParamsError, InvalidResponseCertificate, InvalidResponseSignature, OutdatedApiError, SSLCertificateNotVerified, SystemUnderMaintenanceError, UserNotFoundError

Constant Summary collapse

VERSION =
"0.1.0"
@@environment =

possible options are demo and production

"DEMO"
@@relying_party_uuid =
nil
@@relying_party_name =
nil
@@default_certificate_level =

possible values are “ADVANCED”, “QUALIFIED”

"ADVANCED"
@@poller_timeout_seconds =
10

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (SmartId)

    the object that the method was called on



21
22
23
# File 'lib/smart_id.rb', line 21

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

.default_certificate_levelObject



45
46
47
# File 'lib/smart_id.rb', line 45

def self.default_certificate_level
  @@default_certificate_level
end

.default_certificate_level=(value) ⇒ Object



41
42
43
# File 'lib/smart_id.rb', line 41

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

.environmentObject



61
62
63
# File 'lib/smart_id.rb', line 61

def self.environment
  @@environment
end

.environment=(value) ⇒ Object



57
58
59
# File 'lib/smart_id.rb', line 57

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

.poller_timeout_secondsObject



53
54
55
# File 'lib/smart_id.rb', line 53

def self.poller_timeout_seconds
  @@poller_timeout_seconds
end

.poller_timeout_seconds=(value) ⇒ Object



49
50
51
# File 'lib/smart_id.rb', line 49

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

.relying_party_nameObject



37
38
39
# File 'lib/smart_id.rb', line 37

def self.relying_party_name
  @@relying_party_name
end

.relying_party_name=(value) ⇒ Object



33
34
35
# File 'lib/smart_id.rb', line 33

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

.relying_party_uuidObject



29
30
31
# File 'lib/smart_id.rb', line 29

def self.relying_party_uuid
  @@relying_party_uuid
end

.relying_party_uuid=(value) ⇒ Object



25
26
27
# File 'lib/smart_id.rb', line 25

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