1 | <?php |
||
35 | class AuthenticatorWrapper implements AuthenticatorInterface |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * The authenticator instance to be wrapped. |
||
40 | * |
||
41 | * @var \AppserverIo\Psr\Auth\AuthenticatorInterface |
||
42 | */ |
||
43 | protected $authenticator; |
||
44 | |||
45 | /** |
||
46 | * Injects the passed authenticator instance into this wrapper. |
||
47 | * |
||
48 | * @param \AppserverIo\Psr\Auth\AuthenticatorInterface $authenticator The authenticator instance used for initialization |
||
49 | * |
||
50 | * @return void |
||
51 | */ |
||
52 | public function injectAuthenticator(AuthenticatorInterface $authenticator) |
||
56 | |||
57 | /** |
||
58 | * Return's the authenticator instance. |
||
59 | * |
||
60 | * @return \AppserverIo\Psr\Auth\AuthenticatorInterface The authenticator instance |
||
61 | */ |
||
62 | public function getAuthenticator() |
||
66 | |||
67 | /** |
||
68 | * Returns the configuration data given for authentication type. |
||
69 | * |
||
70 | * @return object The configuration data |
||
71 | */ |
||
72 | public function getConfigData() |
||
76 | |||
77 | /** |
||
78 | * Return's the authentication manager instance. |
||
79 | * |
||
80 | * @return \AppserverIo\Psr\Auth\AuthenticationManagerInterface The authentication manager instance |
||
81 | */ |
||
82 | public function getAuthenticationManager() |
||
86 | |||
87 | /** |
||
88 | * Returns the authentication type token. |
||
89 | * |
||
90 | * @return string The auth type |
||
91 | */ |
||
92 | public function getAuthType() |
||
96 | |||
97 | /** |
||
98 | * Try to authenticate against the configured adapter. |
||
99 | * |
||
100 | * @param \AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest The servlet request instance |
||
101 | * @param \AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse The servlet response instance |
||
102 | * |
||
103 | * @return boolean TRUE if authentication has already been processed on a request before, else FALSE |
||
104 | * @throws \AppserverIo\Http\Authentication\AuthenticationException Is thrown if the request can't be authenticated |
||
105 | */ |
||
106 | public function authenticate(HttpServletRequestInterface $servletRequest, HttpServletResponseInterface $servletResponse) |
||
110 | |||
111 | /** |
||
112 | * Returns the password parsed from the request. |
||
113 | * |
||
114 | * @return string|null The password |
||
115 | */ |
||
116 | public function getPassword() |
||
120 | |||
121 | /** |
||
122 | * Returns the username parsed from the request. |
||
123 | * |
||
124 | * @return string|null The username |
||
125 | */ |
||
126 | public function getUsername() |
||
130 | |||
131 | /** |
||
132 | * Mark's the authenticator as the default one. |
||
133 | * |
||
134 | * @return void |
||
135 | */ |
||
136 | public function setDefaultAuthenticator() |
||
140 | |||
141 | /** |
||
142 | * Query whether or not this is the default authenticator. |
||
143 | * |
||
144 | * @return boolean TRUE if this is the default authenticator, else FALSE |
||
145 | */ |
||
146 | public function isDefaultAuthenticator() |
||
150 | } |
||
151 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.