Wombat::Realm::GenericPrincipal - generic security principal class
Generic implementation of Servlet::Util::Principal that is
available for use by Wombat::Realm implementations.
new()
-
Construct and return a Wombat::Realm::GenericPrincipal instance,
initializing fields appropriately. If subclasses override the
constructor, they must be sure to call
$self->SUPER::new();
getName()
-
Return the username of the user represented by this Principal.
getPassword()
-
Return the authentication credentials for the user represented by this
Principal.
getRealm()
-
Return the Realm with which this Principal is associated.
getRoles()
-
Return the array of roles associated with this user.
hasRole($role)
-
Return true if this principal possesses the specified role, or false
otherwise.
Parameters:
- $role
-
the name of the security role to be checked
Servlet::Util::Principal,
Wombat::Realm
Brian Moseley, bcm@maz.org