Class: Manticore::Client::CombinedTrustStrategy Private
- Inherits:
-
Object
- Object
- Manticore::Client::CombinedTrustStrategy
- 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.
Instance Method Summary collapse
-
#initialize(lhs, rhs) ⇒ CombinedTrustStrategy
constructor
private
A new instance of CombinedTrustStrategy.
- #trusted?(chain, type) ⇒ Boolean private
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.
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.
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 |