public class InverseSecurityCheck extends Object implements ISecurityCheck
Constructor and Description |
---|
InverseSecurityCheck(ISecurityCheck wrapped)
Constructs a new SecurityCheck that will invert the result from the provided security check.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isActionAuthorized(WaspAction action)
Returns false if the user is authorized and true if the user is not authorized.
|
boolean |
isAuthenticated()
Checks if there is an authenticated user available.
|
public InverseSecurityCheck(ISecurityCheck wrapped)
wrapped
- public boolean isActionAuthorized(WaspAction action)
isActionAuthorized
in interface ISecurityCheck
action
- the action(s) like render or enable.ISecurityCheck.isActionAuthorized(WaspAction)
public boolean isAuthenticated()
ISecurityCheck
isAuthenticated
in interface ISecurityCheck
ISecurityCheck.isAuthenticated()
Copyright © 2015. All rights reserved.