Package lumis.portal.security.csr
Interface ICrossSiteRequestManagerSPI
-
- All Known Implementing Classes:
CrossSiteRequestManager
public interface ICrossSiteRequestManagerSPI
Cross-site request manager.- Since:
- 10.2.0
- Version:
- $Revision: 23534 $ $Date: 2020-01-14 13:16:30 -0300 (Tue, 14 Jan 2020) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearCache(ITransaction transaction)
Clears the cache after the commit of the given transaction.void
clearCORSCache(ITransaction transaction)
Clears the CORS definitions cache after the commit of the given transaction.CorsRule
findCorsRuleForActualRequest(HttpServletRequest request)
Returns theCorsRule
to be applied for the given actual request.CorsRule
findCorsRuleForPreflightRequest(HttpServletRequest request)
Returns theCorsRule
to be applied for the given preflight request.boolean
isAllowed(HttpServletRequest request)
Returns whether the given request is allowed to be performed.
-
-
-
Method Detail
-
isAllowed
boolean isAllowed(HttpServletRequest request) throws PortalException
Returns whether the given request is allowed to be performed.- Parameters:
request
- the request.- Returns:
- whether the given request is allowed to be performed.
- Throws:
PortalException
- Since:
- 10.2.0
-
clearCache
void clearCache(ITransaction transaction) throws PortalException
Clears the cache after the commit of the given transaction.- Parameters:
transaction
- the transaction.- Throws:
PortalException
- Since:
- 10.2.0
-
clearCORSCache
void clearCORSCache(ITransaction transaction) throws PortalException
Clears the CORS definitions cache after the commit of the given transaction.- Parameters:
transaction
- the transaction.- Throws:
PortalException
- Since:
- 12.2.0
-
findCorsRuleForActualRequest
CorsRule findCorsRuleForActualRequest(HttpServletRequest request) throws PortalException
Returns theCorsRule
to be applied for the given actual request.- Parameters:
request
- the request.- Returns:
- the CORS rule or
null
if no CORS rule matches the given request. - Throws:
PortalException
- Since:
- 12.2.0
-
findCorsRuleForPreflightRequest
CorsRule findCorsRuleForPreflightRequest(HttpServletRequest request) throws PortalException
Returns theCorsRule
to be applied for the given preflight request.- Parameters:
request
- the request.- Returns:
- the CORS rule or
null
if no CORS rule matches the given request. - Throws:
PortalException
- Since:
- 12.2.0
-
-