Class: OmfCommon::Auth::PDP::TestPDP
- Inherits:
-
Object
- Object
- OmfCommon::Auth::PDP::TestPDP
- Defined in:
- omf_common/lib/omf_common/auth/pdp/test_pdp.rb
Instance Method Summary (collapse)
- - (Object) authorize(msg, &block)
-
- (TestPDP) initialize(opts = {})
constructor
A new instance of TestPDP.
Constructor Details
- (TestPDP) initialize(opts = {})
Returns a new instance of TestPDP
11 12 13 |
# File 'omf_common/lib/omf_common/auth/pdp/test_pdp.rb', line 11 def initialize(opts = {}) puts "AUTH INIT>>> #{opts}" end |
Instance Method Details
- (Object) authorize(msg, &block)
15 16 17 18 19 |
# File 'omf_common/lib/omf_common/auth/pdp/test_pdp.rb', line 15 def (msg, &block) puts "AUTH(#{msg.issuer})>>> #{msg}" sender = msg.src.address msg end |