public class CsrfAuthorizer extends Object implements Authorizer<CommonProfile>
| Constructor and Description |
|---|
CsrfAuthorizer() |
CsrfAuthorizer(String parameterName,
String headerName) |
CsrfAuthorizer(String parameterName,
String headerName,
boolean onlyCheckPostRequest) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHeaderName() |
String |
getParameterName() |
boolean |
isAuthorized(WebContext context,
List<CommonProfile> profiles)
Checks if the user profiles and / or the current web context are authorized.
|
boolean |
isOnlyCheckPostRequest() |
void |
setHeaderName(String headerName) |
void |
setOnlyCheckPostRequest(boolean onlyCheckPostRequest) |
void |
setParameterName(String parameterName) |
public boolean isAuthorized(WebContext context, List<CommonProfile> profiles) throws HttpAction
AuthorizerisAuthorized in interface Authorizer<CommonProfile>context - the web contextprofiles - the user profilesHttpAction - whether an additional HTTP action is requiredpublic String getParameterName()
public void setParameterName(String parameterName)
public String getHeaderName()
public void setHeaderName(String headerName)
public boolean isOnlyCheckPostRequest()
public void setOnlyCheckPostRequest(boolean onlyCheckPostRequest)
Copyright © 2017. All rights reserved.