1 | <?php |
||
34 | class MappingWrapper implements MappingInterface |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * The mapping instance to be wrapped. |
||
39 | * |
||
40 | * @var \AppserverIo\Psr\Auth\MappingInterface |
||
41 | */ |
||
42 | protected $mapping; |
||
43 | |||
44 | /** |
||
45 | * Injects the passed mapping instance into this wrapper. |
||
46 | * |
||
47 | * @param \AppserverIo\Psr\Auth\MappingInterface $mapping The mapping instance used for initialization |
||
48 | * |
||
49 | * @return void |
||
50 | */ |
||
51 | public function injectMapping(MappingInterface $mapping) |
||
55 | |||
56 | /** |
||
57 | * Return's the mapping instance. |
||
58 | * |
||
59 | * @return \AppserverIo\Psr\Auth\MappingInterface The mapping instance |
||
60 | */ |
||
61 | public function getMapping() |
||
65 | |||
66 | /** |
||
67 | * Return's the URL pattern. |
||
68 | * |
||
69 | * @return string The URL pattern |
||
70 | */ |
||
71 | public function getUrlPattern() |
||
75 | |||
76 | /** |
||
77 | * Return's the authenticator serial. |
||
78 | * |
||
79 | * @return string The authenticator serial |
||
80 | */ |
||
81 | public function getAuthenticatorSerial() |
||
85 | |||
86 | /** |
||
87 | * Return's the role names. |
||
88 | * |
||
89 | * @return array The role names |
||
90 | */ |
||
91 | public function getRoleNames() |
||
95 | |||
96 | /** |
||
97 | * Return's the HTTP methods that has to be authenticated. |
||
98 | * |
||
99 | * @return array The HTTP methods |
||
100 | */ |
||
101 | public function getHttpMethods() |
||
105 | |||
106 | /** |
||
107 | * Return's the HTTP methods that has to b omissed from authentication |
||
108 | * |
||
109 | * @return array The HTTP methods |
||
110 | */ |
||
111 | public function getHttpMethodOmissions() |
||
115 | |||
116 | /** |
||
117 | * Return's TRUE if the passed request matches the mappings URL patter. |
||
118 | * |
||
119 | * @param \AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest The request to match |
||
120 | * |
||
121 | * @return boolean TRUE if the request matches, else FALSE |
||
122 | */ |
||
123 | public function match(HttpServletRequestInterface $servletRequest) |
||
127 | } |
||
128 |