| Wallet::ACL::Base(3pm) | User Contributed Perl Documentation | Wallet::ACL::Base(3pm) |
Wallet::ACL::Base - Generic parent class for wallet ACL verifiers
package Wallet::ACL::Simple
@ISA = qw(Wallet::ACL::Base);
sub check {
my ($self, $principal, $acl) = @_;
return ($principal eq $acl) ? 1 : 0;
}
Wallet::ACL::Base is the generic parent class for wallet ACL verifiers. It provides default functions and behavior and all ACL verifiers should inherit from it. It is not used directly.
For the convenience of child classes, this method can also be called with one or more error strings. If so, those strings are concatenated together, trailing newlines are removed, any text of the form " at \S+ line \d+\.?" at the end of the message is stripped off, and the result is stored as the error. Only child classes should call this method with an error string.
Wallet::ACL(3), wallet-backend(8)
This module is part of the wallet system. The current version is available from <https://www.eyrie.org/~eagle/software/wallet/>.
Russ Allbery <eagle@eyrie.org>
| 2024-11-12 | perl v5.40.0 |