org.wicketstuff.shiro.annotation
Class AnnotationsShiroAuthorizationStrategy
java.lang.Object
org.wicketstuff.shiro.annotation.AnnotationsShiroAuthorizationStrategy
- All Implemented Interfaces:
- IAuthorizationStrategy
public class AnnotationsShiroAuthorizationStrategy
- extends Object
- implements IAuthorizationStrategy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationsShiroAuthorizationStrategy
public AnnotationsShiroAuthorizationStrategy()
checkInvalidInstantiation
protected ShiroSecurityConstraint checkInvalidInstantiation(Annotation[] annotations,
ShiroAction action)
- Type Parameters:
T - - Parameters:
clazz -
- Returns:
- null if ok, or the Annotation that failed
checkInvalidInstantiation
public <T extends IRequestableComponent> ShiroSecurityConstraint checkInvalidInstantiation(Class<T> componentClass)
isActionAuthorized
public boolean isActionAuthorized(Component component,
Action action)
-
- Specified by:
isActionAuthorized in interface IAuthorizationStrategy
isInstantiationAuthorized
public <T extends IRequestableComponent> boolean isInstantiationAuthorized(Class<T> componentClass)
-
- Specified by:
isInstantiationAuthorized in interface IAuthorizationStrategy
Copyright © 2015. All Rights Reserved.