The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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:

$role

the name of the security role to be checked

SEE ALSO

Servlet::Util::Principal, Wombat::Realm

AUTHOR

Brian Moseley, bcm@maz.org