| java.lang.Object com.ecyrd.jspwiki.TestAuthorizer
TestAuthorizer | public class TestAuthorizer implements WebAuthorizer(Code) | | A very fast authorizer that does almost nothing. The WebContainerAuthorizer module
is very slow, as it parses the web.xml each time, so we use this for most of
the different tests.
author: Janne Jalkanen author: Andrew R. Jaquith since: 2.3 |
TestAuthorizer | public TestAuthorizer()(Code) | | |
getRoles | public Principal[] getRoles()(Code) | | Returns an array of Principal objects containing five elements:
Role "Admin", Role.AUTHENTICATED, Role "IT", Role "Finance" and
Role "Engineering."
|
isUserInRole | public boolean isUserInRole(WikiSession session, Principal role)(Code) | | Returns true if the WikiSession's Subject contains
a particular role principal.
|
|
|