org.wicketstuff.shiro.annotation
Class AnnotationsShiroAuthorizationStrategy

java.lang.Object
  extended by org.wicketstuff.shiro.annotation.AnnotationsShiroAuthorizationStrategy
All Implemented Interfaces:
IAuthorizationStrategy

public class AnnotationsShiroAuthorizationStrategy
extends Object
implements IAuthorizationStrategy


Field Summary
 
Fields inherited from interface org.apache.wicket.authorization.IAuthorizationStrategy
ALLOW_ALL
 
Constructor Summary
AnnotationsShiroAuthorizationStrategy()
           
 
Method Summary
protected  ShiroSecurityConstraint checkInvalidInstantiation(Annotation[] annotations, ShiroAction action)
           
<T extends IRequestableComponent>
ShiroSecurityConstraint
checkInvalidInstantiation(Class<T> componentClass)
           
 boolean isActionAuthorized(Component component, Action action)
          
<T extends IRequestableComponent>
boolean
isInstantiationAuthorized(Class<T> componentClass)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationsShiroAuthorizationStrategy

public AnnotationsShiroAuthorizationStrategy()
Method Detail

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.