public class CorsAuthorizer extends Object implements Authorizer<CommonProfile>
Constructor and Description |
---|
CorsAuthorizer() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getAllowCredentials() |
String |
getAllowHeaders() |
Set<HttpConstants.HTTP_METHOD> |
getAllowMethods() |
String |
getAllowOrigin() |
String |
getExposeHeaders() |
int |
getMaxAge() |
boolean |
isAuthorized(WebContext context,
List<CommonProfile> profiles)
Checks if the user profiles and / or the current web context are authorized.
|
void |
setAllowCredentials(Boolean allowCredentials) |
void |
setAllowHeaders(String allowHeaders) |
void |
setAllowMethods(Set<HttpConstants.HTTP_METHOD> allowMethods) |
void |
setAllowOrigin(String allowOrigin) |
void |
setExposeHeaders(String exposeHeaders) |
void |
setMaxAge(int maxAge) |
String |
toString() |
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 String getAllowOrigin()
public void setAllowOrigin(String allowOrigin)
public String getExposeHeaders()
public void setExposeHeaders(String exposeHeaders)
public int getMaxAge()
public void setMaxAge(int maxAge)
public Boolean getAllowCredentials()
public void setAllowCredentials(Boolean allowCredentials)
public Set<HttpConstants.HTTP_METHOD> getAllowMethods()
public void setAllowMethods(Set<HttpConstants.HTTP_METHOD> allowMethods)
public String getAllowHeaders()
public void setAllowHeaders(String allowHeaders)
Copyright © 2018. All rights reserved.