Package org.wicketstuff.shiro.authz
Class ShiroUnauthorizedComponentListener
- java.lang.Object
-
- org.wicketstuff.shiro.authz.ShiroUnauthorizedComponentListener
-
- All Implemented Interfaces:
IUnauthorizedComponentInstantiationListener
public class ShiroUnauthorizedComponentListener extends Object implements IUnauthorizedComponentInstantiationListener
-
-
Constructor Summary
Constructors Constructor Description ShiroUnauthorizedComponentListener(Class<? extends Page> loginPage, Class<? extends Page> unauthorizedPage, AnnotationsShiroAuthorizationStrategy s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<? extends Page>addLoginMessagesAndGetPage(ShiroSecurityConstraint constraint, Component component, Class<? extends Page> page)protected Class<? extends Page>addUnauthorizedMessagesAndGetPage(ShiroSecurityConstraint constraint, Component component, Class<? extends Page> page)AnnotationsShiroAuthorizationStrategygetAnnotationStrategy()protected StringgetMessage(String key, ShiroSecurityConstraint anno, Component comp)voidonUnauthorizedInstantiation(Component component)voidsetAnnotationStrategy(AnnotationsShiroAuthorizationStrategy annotationStrategy)
-
-
-
Constructor Detail
-
ShiroUnauthorizedComponentListener
public ShiroUnauthorizedComponentListener(Class<? extends Page> loginPage, Class<? extends Page> unauthorizedPage, AnnotationsShiroAuthorizationStrategy s)
-
-
Method Detail
-
addLoginMessagesAndGetPage
protected Class<? extends Page> addLoginMessagesAndGetPage(ShiroSecurityConstraint constraint, Component component, Class<? extends Page> page)
-
addUnauthorizedMessagesAndGetPage
protected Class<? extends Page> addUnauthorizedMessagesAndGetPage(ShiroSecurityConstraint constraint, Component component, Class<? extends Page> page)
-
getAnnotationStrategy
public AnnotationsShiroAuthorizationStrategy getAnnotationStrategy()
-
getMessage
protected String getMessage(String key, ShiroSecurityConstraint anno, Component comp)
-
onUnauthorizedInstantiation
public void onUnauthorizedInstantiation(Component component)
- Specified by:
onUnauthorizedInstantiationin interfaceIUnauthorizedComponentInstantiationListener
-
setAnnotationStrategy
public void setAnnotationStrategy(AnnotationsShiroAuthorizationStrategy annotationStrategy)
-
-