public class CsrfTokenGeneratorAuthorizer extends Object implements Authorizer<CommonProfile>
Constructor and Description |
---|
CsrfTokenGeneratorAuthorizer(CsrfTokenGenerator csrfTokenGenerator) |
Modifier and Type | Method and Description |
---|---|
CsrfTokenGenerator |
getCsrfTokenGenerator() |
String |
getDomain() |
Boolean |
getHttpOnly() |
String |
getPath() |
Boolean |
getSecure() |
boolean |
isAuthorized(WebContext context,
List<CommonProfile> profiles)
Checks if the user profiles and / or the current web context are authorized.
|
void |
setCsrfTokenGenerator(CsrfTokenGenerator csrfTokenGenerator) |
void |
setDomain(String domain) |
void |
setHttpOnly(Boolean httpOnly) |
void |
setPath(String path) |
void |
setSecure(Boolean secure) |
String |
toString() |
public CsrfTokenGeneratorAuthorizer(CsrfTokenGenerator csrfTokenGenerator)
public boolean isAuthorized(WebContext context, List<CommonProfile> profiles) throws HttpAction
Authorizer
isAuthorized
in interface Authorizer<CommonProfile>
context
- the web contextprofiles
- the user profilesHttpAction
- whether an additional HTTP action is requiredpublic CsrfTokenGenerator getCsrfTokenGenerator()
public void setCsrfTokenGenerator(CsrfTokenGenerator csrfTokenGenerator)
public String getDomain()
public void setDomain(String domain)
public String getPath()
public void setPath(String path)
public Boolean getHttpOnly()
public void setHttpOnly(Boolean httpOnly)
public Boolean getSecure()
public void setSecure(Boolean secure)
Copyright © 2018. All rights reserved.