NAME
Wombat::Realm::GenericPrincipal - generic security principal class
SYNOPSIS
DESCRIPTION
Generic implementation of Servlet::Util::Principal that is available for use by Wombat::Realm implementations.
CONSTRUCTOR
- 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();
ACCESSOR METHODS
- 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.
PUBLIC METHODS
- hasRole($role)
-
Return true if this principal possesses the specified role, or false otherwise.
Parameters:
SEE ALSO
Servlet::Util::Principal, Wombat::Realm
AUTHOR
Brian Moseley, bcm@maz.org