public abstract class AbstractAuthorizationStrategy extends Object implements org.apache.wicket.authorization.IAuthorizationStrategy, org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener
AuthenticationToken
is set by AbstractLoginForm
Constructor and Description |
---|
AbstractAuthorizationStrategy() |
Modifier and Type | Method and Description |
---|---|
abstract Class<? extends org.apache.wicket.markup.html.WebPage> |
getAuthChallengePage(org.apache.wicket.Component component)
For UnAuth access redirect to Login Page
|
abstract List<Class> |
getPageTypesProtected()
Get the Class of the type of page/panels/web components this Strategy is supposed to protect
|
boolean |
isActionAuthorized(org.apache.wicket.Component component,
org.apache.wicket.authorization.Action action) |
<T extends org.apache.wicket.Component> |
isInstantiationAuthorized(Class<T> componentClass) |
void |
onUnauthorizedInstantiation(org.apache.wicket.Component component) |
public abstract List<Class> getPageTypesProtected()
public abstract Class<? extends org.apache.wicket.markup.html.WebPage> getAuthChallengePage(org.apache.wicket.Component component)
public boolean isActionAuthorized(org.apache.wicket.Component component, org.apache.wicket.authorization.Action action)
isActionAuthorized
in interface org.apache.wicket.authorization.IAuthorizationStrategy
public <T extends org.apache.wicket.Component> boolean isInstantiationAuthorized(Class<T> componentClass)
isInstantiationAuthorized
in interface org.apache.wicket.authorization.IAuthorizationStrategy
public void onUnauthorizedInstantiation(org.apache.wicket.Component component)
onUnauthorizedInstantiation
in interface org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener
Copyright © 2018. All rights reserved.