Package io.antmedia.security
Class AcceptOnlyStreamsInDataStore
java.lang.Object
io.antmedia.security.AcceptOnlyStreamsInDataStore
- All Implemented Interfaces:
IStreamPublishSecurity
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
private DataStore
private DataStoreFactory
private boolean
private ILicenceService
protected static org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAppAdaptor
(IScope scope) getLicenceService
(IScope scope) boolean
boolean
isPublishAllowed
(IScope scope, String name, String mode, Map<String, String> queryParams, String metaData) Check if publishing a stream with the given name is allowed.void
setDataStore
(DataStore dataStore) void
setDataStoreFactory
(DataStoreFactory dataStoreFactory) void
setEnabled
(boolean enabled)
-
Field Details
-
dataStoreFactory
-
dataStore
-
enabled
-
licenService
-
BEAN_NAME
- See Also:
-
logger
protected static org.slf4j.Logger logger
-
-
Constructor Details
-
AcceptOnlyStreamsInDataStore
public AcceptOnlyStreamsInDataStore()
-
-
Method Details
-
isPublishAllowed
public boolean isPublishAllowed(IScope scope, String name, String mode, Map<String, String> queryParams, String metaData) Description copied from interface:IStreamPublishSecurity
Check if publishing a stream with the given name is allowed.- Specified by:
isPublishAllowed
in interfaceIStreamPublishSecurity
- Parameters:
scope
- Scope the stream is about to be published in.name
- Name of the stream to publish.mode
- Publishing mode.- Returns:
True
if publishing is allowed, otherwiseFalse
-
getLicenceService
-
getAppAdaptor
-
getDatastore
-
setDataStore
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getDataStoreFactory
-
setDataStoreFactory
-