Mercurial > pub > Impl
comparison Lib/IMPL/Security.pm @ 95:67eb8eaec3d4
Added a security authority property to the Context and Security classes
Added a WriteResponse method to the SecureCookie class
Added a setCookie method to the Response class
author | wizard |
---|---|
date | Thu, 29 Apr 2010 02:21:27 +0400 |
parents | 84aa8c395fce |
children | 4267a2ac3d46 |
comparison
equal
deleted
inserted
replaced
94:79bf75223afe | 95:67eb8eaec3d4 |
---|---|
3 require IMPL::Security::Rule::RoleCheck; | 3 require IMPL::Security::Rule::RoleCheck; |
4 | 4 |
5 our @rules = ( | 5 our @rules = ( |
6 \&IMPL::Security::Rule::RoleCheck::SatisfyAll | 6 \&IMPL::Security::Rule::RoleCheck::SatisfyAll |
7 ); | 7 ); |
8 | |
9 our $authority = undef; | |
8 | 10 |
9 sub AccessCheck { | 11 sub AccessCheck { |
10 my ($self, $object, $desiredAccess, $context) = @_; | 12 my ($self, $object, $desiredAccess, $context) = @_; |
11 | 13 |
12 $context = IMPL::Security::Context->contextCurrent; | 14 $context = IMPL::Security::Context->contextCurrent; |
32 ); | 34 ); |
33 } | 35 } |
34 | 36 |
35 sub Rules { | 37 sub Rules { |
36 return \@rules; | 38 return \@rules; |
39 } | |
40 | |
41 sub authority { | |
42 return $authority; | |
37 } | 43 } |
38 | 44 |
39 1; | 45 1; |
40 | 46 |
41 __END__ | 47 __END__ |
200 ] | 206 ] |
201 } | 207 } |
202 | 208 |
203 =end code | 209 =end code |
204 | 210 |
211 =item C<[static,get] authority> | |
212 | |
213 Метод, позволяющий получить текущий источник системы безопасности. Источник безопасности, это модуль, | |
214 который получает входные данные и использует их для работы системы безопасности. | |
215 | |
205 =back | 216 =back |
206 | 217 |
207 =cut | 218 =cut |