Class AllowedUrlsProviderImpl
- java.lang.Object
-
- com.atlassian.confluence.impl.security.AllowedUrlsProviderImpl
-
- All Implemented Interfaces:
AllowedUrlsProvider
public class AllowedUrlsProviderImpl extends Object implements AllowedUrlsProvider
Provides urls which could be excluded from some security checks (for e.g. urls could be added to the Content-Security-Policy header to be included in frame-ancestors). By default, we include only urls from the app links, but customer could add more via system property- Since:
- 8.5.9
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.security.AllowedUrlsProvider
ALLOWED_URLS
-
-
Constructor Summary
Constructors Constructor Description AllowedUrlsProviderImpl(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<URI>getUrls()Collection of urls that are excluded from security checksvoidonPluginFrameworkStarted(PluginFrameworkStartedEvent event)voidregisterEventListener()voidunregisterEventListener()
-
-
-
Method Detail
-
registerEventListener
@PostConstruct public void registerEventListener()
-
unregisterEventListener
@PreDestroy public void unregisterEventListener()
-
onPluginFrameworkStarted
@EventListener public void onPluginFrameworkStarted(PluginFrameworkStartedEvent event)
-
getUrls
public Collection<URI> getUrls()
Collection of urls that are excluded from security checks- Specified by:
getUrlsin interfaceAllowedUrlsProvider
-
-