NAME
Wombat::Realm - internal realm interface
SYNOPSIS
DESCRIPTION
This is a read-only interface for an underlying security realm used to authenticate individual users and to identify the security roles associated with those users. Realms can be attached at any Container level but will typically only be attached to an Application or higher level Container.
ACCESSOR METHODS
- getContainer()
-
Return the Container associated with this Realm.
- setContainer($container)
-
Set the Container associated with this Realm.
Parameters:
PUBLIC METHODS
- authenticate ($username, $credentials)
-
Return the Principal associated with the specified username and credentials, if there is one, or
undef
otherwise.Parameters
- hasRole($principal, $role)
-
Return true if the specified Principal has the specified security role within the context of this Realm, or false otherwise.
Parameters:
SEE ALSO
Servlet::Util::Principal, Wombat::Container
AUTHOR
Brian Moseley, bcm@maz.org