public interface ISecureComponent extends Serializable
SecureComponentHelper. implementations should as default use these methods to wrap the
calls to SecureComponentHelper, although classes like IAuthorizationStrategy
should not depend on this behavior.| Modifier and Type | Method and Description |
|---|---|
ISecurityCheck |
getSecurityCheck()
Gets the security check attached to this component.
|
boolean |
isActionAuthorized(String waspAction)
Wrapper method for the isActionAuthorized method on component.
|
boolean |
isActionAuthorized(WaspAction action)
Wrapper method for the isActionAuthorized method on component.
|
boolean |
isAuthenticated()
authenticates the user for this component.
|
void |
setSecurityCheck(ISecurityCheck check)
Sets (or removes in the case of null) the security check on this component.
|
void setSecurityCheck(ISecurityCheck check)
check - ISecurityCheck getSecurityCheck()
boolean isActionAuthorized(String waspAction)
waspAction - Component.isActionAuthorized(org.apache.wicket.authorization.Action),
SecureComponentHelper.isActionAuthorized(Component, String)boolean isActionAuthorized(WaspAction action)
action - Component.isActionAuthorized(org.apache.wicket.authorization.Action),
SecureComponentHelper.isActionAuthorized(Component, WaspAction)boolean isAuthenticated()
Pages.Copyright © 2015. All rights reserved.