Package io.antmedia.security
Class AcceptOnlyStreamsWithWebhook
java.lang.Object
io.antmedia.security.AcceptOnlyStreamsWithWebhook
- All Implemented Interfaces:
IStreamPublishSecurity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AppSettings
static final String
protected static org.slf4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addPropertyIfNotNull
(com.google.gson.JsonObject obj, String key, String value) org.apache.http.impl.client.CloseableHttpClient
boolean
isPublishAllowed
(IScope scope, String streamId, 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.void
setAppSettings
(AppSettings appSettings)
-
Field Details
-
appSettings
-
BEAN_NAME
- See Also:
-
logger
protected static org.slf4j.Logger logger
-
-
Constructor Details
-
AcceptOnlyStreamsWithWebhook
public AcceptOnlyStreamsWithWebhook()
-
-
Method Details
-
addPropertyIfNotNull
-
isPublishAllowed
public boolean isPublishAllowed(IScope scope, String streamId, String mode, Map<String, String> queryParams, String metaData, String token, String subscriberId, String subscriberCode) 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.streamId
- Name of the stream to publish.mode
- Publishing mode.- Returns:
True
if publishing is allowed, otherwise
False
-
getConnectionLocal
-
getAppSettings
-
setAppSettings
-
getHttpClient
public org.apache.http.impl.client.CloseableHttpClient getHttpClient()
-