public abstract class AbstractSwarmStrategy
extends org.wicketstuff.security.strategies.ClassAuthorizationStrategy
IAuthorizationStrategy.AllowAllAuthorizationStrategy| Modifier and Type | Field and Description |
|---|---|
protected LoginContainer |
loginContainer |
MESSAGE_KEYALLOW_ALL| Constructor and Description |
|---|
AbstractSwarmStrategy() |
AbstractSwarmStrategy(Class<? extends org.wicketstuff.security.components.ISecureComponent> secureClass) |
| Modifier and Type | Method and Description |
|---|---|
org.wicketstuff.security.hive.authentication.Subject |
getSubject()
The currently logged in subject, note that at any time there is at most 1 subject logged in.
|
boolean |
hasPermission(org.wicketstuff.security.hive.authorization.Permission permission)
Performs the actual permission check at the
Hive. |
abstract boolean |
hasPermission(org.wicketstuff.security.hive.authorization.Permission permission,
org.wicketstuff.security.hive.authentication.Subject subject) |
boolean |
isClassAuthenticated(Class<?> clazz) |
boolean |
isClassAuthorized(Class<?> clazz,
org.wicketstuff.security.actions.WaspAction action) |
boolean |
isComponentAuthenticated(Component component) |
boolean |
isComponentAuthorized(Component component,
org.wicketstuff.security.actions.WaspAction action) |
boolean |
isModelAuthenticated(IModel<?> model,
Component component) |
boolean |
isModelAuthorized(org.wicketstuff.security.models.ISecureModel<?> model,
Component component,
org.wicketstuff.security.actions.WaspAction action)
Checks if some action is granted on the model.
|
destroy, getClassChecks, getClassChecks, getExceptionMessage, isInstantiationAuthorizedcreateMessageSource, get, getActionFactory, getMessageSource, getMessageSource, getSecurityCheck, isActionAuthorized, isUserAuthenticated, login, logMessage, logMessage, logMessage, logMessages, logoff, removeMessageSource, setStrategyResolverclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisResourceAuthorizedprotected LoginContainer loginContainer
public AbstractSwarmStrategy()
public AbstractSwarmStrategy(Class<? extends org.wicketstuff.security.components.ISecureComponent> secureClass)
public abstract boolean hasPermission(org.wicketstuff.security.hive.authorization.Permission permission,
org.wicketstuff.security.hive.authentication.Subject subject)
public org.wicketstuff.security.hive.authentication.Subject getSubject()
public boolean hasPermission(org.wicketstuff.security.hive.authorization.Permission permission)
Hive. This is equal to using
hasPermission(Permission, Subject) with getSubject()permission - the permission to verifyorg.wicketstuff.security.strategies.SecurityException - if the permission is nullhasPermission(Permission, Subject)public boolean isClassAuthenticated(Class<?> clazz)
isClassAuthenticated in class org.wicketstuff.security.strategies.WaspAuthorizationStrategyWaspAuthorizationStrategy.isClassAuthenticated(java.lang.Class)public boolean isClassAuthorized(Class<?> clazz, org.wicketstuff.security.actions.WaspAction action)
isClassAuthorized in class org.wicketstuff.security.strategies.WaspAuthorizationStrategyWaspAuthorizationStrategy.isClassAuthorized(java.lang.Class,
org.wicketstuff.security.actions.WaspAction)public boolean isComponentAuthenticated(Component component)
isComponentAuthenticated in class org.wicketstuff.security.strategies.WaspAuthorizationStrategyWaspAuthorizationStrategy.isComponentAuthenticated(org.apache.wicket.Component)public boolean isComponentAuthorized(Component component, org.wicketstuff.security.actions.WaspAction action)
isComponentAuthorized in class org.wicketstuff.security.strategies.WaspAuthorizationStrategyWaspAuthorizationStrategy.isComponentAuthorized(org.apache.wicket.Component,
org.wicketstuff.security.actions.WaspAction)public boolean isModelAuthenticated(IModel<?> model, Component component)
isModelAuthenticated in class org.wicketstuff.security.strategies.WaspAuthorizationStrategyWaspAuthorizationStrategy.isModelAuthenticated(org.apache.wicket.model.IModel,
org.apache.wicket.Component)public boolean isModelAuthorized(org.wicketstuff.security.models.ISecureModel<?> model,
Component component,
org.wicketstuff.security.actions.WaspAction action)
SwarmModels are preferred any
ISecureModel can be used, in that case it uses the ISecureModel#toString()
method as the name of the DataPermissionisModelAuthorized in class org.wicketstuff.security.strategies.WaspAuthorizationStrategyWaspAuthorizationStrategy.isModelAuthorized(ISecureModel,
Component, WaspAction)Copyright © 2006–2019 Apache Software Foundation. All rights reserved.