*/
@Override
protected void setUpHive()
{
// create factory to read policy files
PolicyFileHiveFactory factory = new SwarmPolicyFileHiveFactory(getActionFactory());
try
{
// this quickstart uses 1 policy file but you can add as many as you
// like
factory.addPolicyFile(getServletContext().getResource("/WEB-INF/application.hive"));
// to avoid having to type the full packagename we declare an alias
factory.setAlias("web", "org.apache.wicket.security.web");
// alias for the principals
factory.setAlias("principal",
"org.apache.wicket.security.hive.authorization.SimplePrincipal");
}
catch (MalformedURLException e)
{
throw new WicketRuntimeException(e);