Class: WizAuthc::AuthcInfo
- Inherits:
-
Object
- Object
- WizAuthc::AuthcInfo
- Defined in:
- lib/wizdog/authc/authc_info.rb
Instance Attribute Summary collapse
-
#authenticated ⇒ Object
Returns the value of attribute authenticated.
-
#credentials ⇒ Object
Returns the value of attribute credentials.
-
#principal ⇒ Object
Returns the value of attribute principal.
Instance Method Summary collapse
-
#initialize(principal = nil, credentials = nil, authenticated = false) ⇒ AuthcInfo
constructor
A new instance of AuthcInfo.
Constructor Details
#initialize(principal = nil, credentials = nil, authenticated = false) ⇒ AuthcInfo
Returns a new instance of AuthcInfo.
7 8 9 10 11 12 |
# File 'lib/wizdog/authc/authc_info.rb', line 7 def initialize(principal = nil, credentials = nil, authenticated = false) @principal = principal @credentials = credentials @state = :fail @authenticated = authenticated end |
Instance Attribute Details
#authenticated ⇒ Object
Returns the value of attribute authenticated.
6 7 8 |
# File 'lib/wizdog/authc/authc_info.rb', line 6 def authenticated @authenticated end |
#credentials ⇒ Object
Returns the value of attribute credentials.
6 7 8 |
# File 'lib/wizdog/authc/authc_info.rb', line 6 def credentials @credentials end |
#principal ⇒ Object
Returns the value of attribute principal.
6 7 8 |
# File 'lib/wizdog/authc/authc_info.rb', line 6 def principal @principal end |