Class: Win32::SSPI::Identity
- Inherits:
-
Object
- Object
- Win32::SSPI::Identity
- Defined in:
- win32/lib/win32/sspi.rb
Overview
SEC_WINNT_AUTH_IDENTITY structure
Constant Summary collapse
- SEC_WINNT_AUTH_IDENTITY_ANSI =
0x1
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#password ⇒ Object
Returns the value of attribute password.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user = nil, domain = nil, password = nil) ⇒ Identity
constructor
A new instance of Identity.
- #to_p ⇒ Object
Constructor Details
#initialize(user = nil, domain = nil, password = nil) ⇒ Identity
Returns a new instance of Identity.
138 139 140 141 142 143 |
# File 'win32/lib/win32/sspi.rb', line 138 def initialize(user = nil, domain = nil, password = nil) @user = user @domain = domain @password = password @flags = SEC_WINNT_AUTH_IDENTITY_ANSI end |
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain
136 137 138 |
# File 'win32/lib/win32/sspi.rb', line 136 def domain @domain end |
#password ⇒ Object
Returns the value of attribute password
136 137 138 |
# File 'win32/lib/win32/sspi.rb', line 136 def password @password end |
#user ⇒ Object
Returns the value of attribute user
136 137 138 |
# File 'win32/lib/win32/sspi.rb', line 136 def user @user end |
Instance Method Details
#to_p ⇒ Object
145 146 147 148 149 150 |
# File 'win32/lib/win32/sspi.rb', line 145 def to_p [@user, @user ? @user.length : 0, @domain, @domain ? @domain.length : 0, @password, @password ? @password.length : 0, @flags].pack("PLPLPLL") end |