Package io.antmedia.security
Class AcceptOnlyStreamsInDataStore
java.lang.Object
io.antmedia.security.AcceptOnlyStreamsInDataStore
- All Implemented Interfaces:
IStreamPublishSecurity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AppSettingsstatic final Stringprivate DataStoreprivate DataStoreFactoryprivate ILicenceServiceprotected static org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAppAdaptor(IScope scope) getLicenceService(IScope scope) booleanisPublishAllowed(IScope scope, String name, String mode, Map<String, String> queryParams, String metaData, String token, String subscriberId, String subscriberCode) Check if publishing a stream with the given name is allowed.voidsetDataStore(DataStore dataStore) voidsetDataStoreFactory(DataStoreFactory dataStoreFactory) voidsetEnabledForTest(boolean enabled)
-
Field Details
-
dataStoreFactory
-
appSettings
-
dataStore
-
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, String token, String subscriberId, String subscriberCode) Description copied from interface:IStreamPublishSecurityCheck if publishing a stream with the given name is allowed.- Specified by:
isPublishAllowedin 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, otherwise
False
-
getLicenceService
-
getAppAdaptor
-
getDatastore
-
setDataStore
-
getDataStoreFactory
-
setDataStoreFactory
-
setEnabledForTest
public void setEnabledForTest(boolean enabled)
-