Package org.opencastproject.fsresources
Class SimpleConfigurableStaticFileAuthorization
java.lang.Object
org.opencastproject.fsresources.SimpleConfigurableStaticFileAuthorization
- All Implemented Interfaces:
StaticFileAuthorization
public class SimpleConfigurableStaticFileAuthorization
extends Object
implements StaticFileAuthorization
A simple static file authorization service which allows access to a configured set of patterns.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) Get the list of URL patterns the service is responsible for.booleanverifyUrlAccess(String path) Check a given path for access.
-
Constructor Details
-
SimpleConfigurableStaticFileAuthorization
public SimpleConfigurableStaticFileAuthorization()
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) -
getProtectedUrlPattern
Description copied from interface:StaticFileAuthorizationGet the list of URL patterns the service is responsible for.- Specified by:
getProtectedUrlPatternin interfaceStaticFileAuthorization- Returns:
- List of pattern matchers
-
verifyUrlAccess
Description copied from interface:StaticFileAuthorizationCheck a given path for access.- Specified by:
verifyUrlAccessin interfaceStaticFileAuthorization- Parameters:
path- Path to check- Returns:
- if access is allowed
-