Class DenyAllStreamAccess
java.lang.Object
org.red5.server.api.stream.support.DenyAllStreamAccess
- All Implemented Interfaces:
IStreamPlaybackSecurity
,IStreamPublishSecurity
public class DenyAllStreamAccess
extends Object
implements IStreamPublishSecurity, IStreamPlaybackSecurity
Stream security handler that denies access to all streams.
- Author:
- The Red5 Project, Joachim Bauch (jojo@struktur.de)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isPlaybackAllowed
(IScope scope, String name, int start, int length, boolean flushPlaylist) Check if playback of a stream with the given name is allowed.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.
-
Constructor Details
-
DenyAllStreamAccess
public DenyAllStreamAccess()
-
-
Method Details
-
isPublishAllowed
public 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.- 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
-
isPlaybackAllowed
public boolean isPlaybackAllowed(IScope scope, String name, int start, int length, boolean flushPlaylist) Check if playback of a stream with the given name is allowed.- Specified by:
isPlaybackAllowed
in interfaceIStreamPlaybackSecurity
- Parameters:
scope
- Scope the stream is about to be played back from.name
- Name of the stream to play.start
- Position to start playback from (in milliseconds).length
- Duration to play (in milliseconds).flushPlaylist
- Flush playlist?- Returns:
True
if playback is allowed, otherwiseFalse
-