1 | <?php |
||
26 | class OAuthPasswordAuthentication extends AbstractAuthentication |
||
27 | { |
||
28 | const AUTHENTICATION_GRANT_TYPE = 'password'; |
||
29 | |||
30 | /** |
||
31 | * Username for OAuth password authentication. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $username; |
||
36 | |||
37 | /** |
||
38 | * Password for OAuth password authentication. |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $password; |
||
43 | |||
44 | /** |
||
45 | * Gets the value of username. |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getUsername() |
||
53 | |||
54 | /** |
||
55 | * Sets the value of username. |
||
56 | * |
||
57 | * @param string $username Value to set |
||
58 | * |
||
59 | * @return self |
||
60 | */ |
||
61 | public function setUsername($username) |
||
67 | |||
68 | /** |
||
69 | * Gets the value of password. |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getPassword() |
||
77 | |||
78 | /** |
||
79 | * Sets the value of password. |
||
80 | * |
||
81 | * @param string $password Value to set |
||
82 | * |
||
83 | * @return self |
||
84 | */ |
||
85 | public function setPassword($password) |
||
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | public function getAuthenticationTokens() |
||
132 | } |
||
133 |