Method Summary |
|
final public String | containerRoleTable() Formats and returns an HTML table containing the roles the web container
is aware of, and whether each role maps to particular JSPs. |
final protected File | getFileFromProperty(String property) Looks up a file name based on a JRE system property and returns the associated
File object if it exists. |
final protected boolean | isJaasConfigurationAvailable(String config) Returns true if JSPWiki can locate a named JAAS login
configuration.
Parameters: config - the name of the application (e.g.,JSPWiki-container ). |
final public boolean | isJaasConfigured() Returns true if JAAS is configured correctly. |
final public boolean | isJaasConfiguredAtStartup() Returns true if the JAAS login configuration was already
set when JSPWiki started up. |
final public boolean | isSecurityPolicyConfigured() Returns true if the Java security policy is configured
correctly, and it verifies as valid. |
final public File | jaasConfiguration() Returns the location of the JAAS configuration file if and only if the
java.security.auth.login.config is set and the
file it points to exists in the file system; returns null
in all other cases. |
final public Principal[] | policyPrincipals() Returns an array of unique Principals from the JSPWIki security policy
file. |
final public String | policyRoleTable() Formats and returns an HTML table containing sample permissions and what
roles are allowed to have them. |
final protected void | verifyGroupDatabase() Verifies that the group datbase was initialized properly, and that
user add and delete operations work as they should. |
final protected void | verifyJaas() Verfies the JAAS configuration. |
final protected void | verifyPolicy() Verfies the Java security policy configuration. |
final protected void | verifyPolicyAndContainerRoles() Verifies that the roles given in the security policy are reflected by the
container web.xml file. |
final protected boolean | verifyStaticPermission(Principal principal, Permission permission) Verifies that a particular Principal possesses a Permission, as defined
in the security policy file. |
final protected void | verifyUserDatabase() Verifies that the user datbase was initialized properly, and that
user add and delete operations work as they should. |
final public Principal[] | webContainerRoles() If the active Authorizer is the WebContainerAuthorizer, returns the roles
it knows about; otherwise, a zero-length array. |