Class: R509::Validity::Checker

Inherits:
Object
  • Object
show all
Defined in:
lib/r509/validity.rb

Overview

abstract base class for a Checker

Direct Known Subclasses

DefaultChecker

Instance Method Summary (collapse)

Instance Method Details

- (Object) check(issuer, serial)

Raises:

  • (NotImplementedError)


60
61
62
# File 'lib/r509/validity.rb', line 60

def check(issuer, serial)
  raise NotImplementedError, "You must call #check on a subclass of Checker"
end

- (Boolean) is_available?

is_available? is meant to be implemented to check if the backend store you choose to implement is currently working. see r509-ocsp-responder and r509-validity-redis for an example of use

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


66
67
68
# File 'lib/r509/validity.rb', line 66

def is_available?
  raise NotImplementedError, "You must call #is_available? on a subclass of Checker"
end