Class: R509::Validity::Writer

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

Overview

abstract base class for a Writer

Direct Known Subclasses

DefaultWriter

Instance Method Summary (collapse)

Instance Method Details

- (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)


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

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

- (Object) issue(issuer, serial)

Raises:

  • (NotImplementedError)


43
44
45
# File 'lib/r509/validity.rb', line 43

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

- (Object) revoke(issuer, serial, reason)

Raises:

  • (NotImplementedError)


47
48
49
# File 'lib/r509/validity.rb', line 47

def revoke(issuer, serial, reason)
  raise NotImplementedError, "You must call #revoke on a subclass of Writer"
end