diff options
author | Russ Allbery <eagle@eyrie.org> | 2015-12-14 21:54:13 -0800 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2015-12-14 21:54:13 -0800 |
commit | b0d5c2d20c19ba4f4274a260660c98757ba07644 (patch) | |
tree | ed2a02e79d6026bdb09e999da433033c0492bee5 /perl/lib/Wallet/ACL/Base.pm | |
parent | 6b7b9a29d20a65712061648404bbc6f1be5cacee (diff) | |
parent | 6b0cad572edef05d119abc8fc843c8c5d33665b8 (diff) |
Merge pull request #2 from jonrober/master
Changes so far for 1.3
Diffstat (limited to 'perl/lib/Wallet/ACL/Base.pm')
-rw-r--r-- | perl/lib/Wallet/ACL/Base.pm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/perl/lib/Wallet/ACL/Base.pm b/perl/lib/Wallet/ACL/Base.pm index a2b07cc..19ca612 100644 --- a/perl/lib/Wallet/ACL/Base.pm +++ b/perl/lib/Wallet/ACL/Base.pm @@ -20,7 +20,7 @@ use vars qw($VERSION); # This version should be increased on any code change to this module. Always # use two digits for the minor version with a leading zero if necessary so # that it will sort properly. -$VERSION = '0.02'; +$VERSION = '0.03'; ############################################################################## # Interface @@ -37,6 +37,11 @@ sub new { return $self; } +# The default name check method allows any name. +sub syntax_check { + return 1; +} + # The default check method denies all access. sub check { return 0; @@ -92,6 +97,12 @@ inherit from it. It is not used directly. Creates a new ACL verifier. The generic function provided here just creates and blesses an object. +=item syntax_check(PRINCIPAL, ACL) + +This method should be overridden by any child classes that want to +implement validating the name of an ACL before creation. The default +implementation allows any name for an ACL. + =item check(PRINCIPAL, ACL) This method should always be overridden by child classes. The default |