Class: Manticore::Client::CombinedTrustStrategy Private

Inherits:
Object
  • Object
show all
Defined in:
lib/manticore/client/trust_strategies.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.

A CombinedTrustStrategy can be used to bypass the Trust Manager if EITHER TrustStrategy trusts the provided certificate chain.

See Also:

  • TrustStrategies::combine

Instance Method Summary collapse

Constructor Details

#initialize(lhs, rhs) ⇒ CombinedTrustStrategy

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 CombinedTrustStrategy.

See Also:

  • TrustStrategies::combine


62
63
64
65
66
# File 'lib/manticore/client/trust_strategies.rb', line 62

def initialize(lhs, rhs)
  @lhs = lhs
  @rhs = rhs
  super()
end

Instance Method Details

#trusted?(chain, type) ⇒ Boolean

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:

  • (Boolean)


70
71
72
# File 'lib/manticore/client/trust_strategies.rb', line 70

def trusted?(chain, type)
  @lhs.trusted?(chain, type) || @rhs.trusted?(chain, type)
end