public class CsrfAuthorizer<U extends UserProfile> extends Object implements Authorizer<U>
| 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,
U profile)
Checks if the user profile is authorized for the current web context.
|
boolean |
isOnlyCheckPostRequest() |
void |
setHeaderName(String headerName) |
void |
setOnlyCheckPostRequest(boolean onlyCheckPostRequest) |
void |
setParameterName(String parameterName) |
public boolean isAuthorized(WebContext context, U profile)
AuthorizerisAuthorized in interface Authorizer<U extends UserProfile>context - the web contextprofile - the user profilepublic String getParameterName()
public void setParameterName(String parameterName)
public String getHeaderName()
public void setHeaderName(String headerName)
public boolean isOnlyCheckPostRequest()
public void setOnlyCheckPostRequest(boolean onlyCheckPostRequest)
Copyright © 2016. All Rights Reserved.