Class: Mongo::Socket::OcspVerifier::Response Private

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/mongo/socket/ocsp_verifier.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Wraps OpenSSL::OCSP::SingleResponse with the responder URI that supplied it.

Since:

  • 2.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(single_response, uri, original_uri) ⇒ Response

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Response.

Since:

  • 2.0.0



42
43
44
45
46
# File 'lib/mongo/socket/ocsp_verifier.rb', line 42

def initialize(single_response, uri, original_uri)
  super(single_response)
  @uri = uri
  @original_uri = original_uri
end

Instance Attribute Details

#original_uriObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.0.0



40
41
42
# File 'lib/mongo/socket/ocsp_verifier.rb', line 40

def original_uri
  @original_uri
end

#uriObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.0.0



40
41
42
# File 'lib/mongo/socket/ocsp_verifier.rb', line 40

def uri
  @uri
end