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 ([email protected])
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPlayAllowed(IScope scope, String name, String mode, Map<String, String> queryParams, String metaData, String token, String subscriberId, String subscriberCode) booleanisPlaybackAllowed(IScope scope, String name, int start, int length, boolean flushPlaylist) Check if playback of a stream with the given name is allowed.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.
-
Constructor Details
-
DenyAllStreamAccess
public DenyAllStreamAccess()
-
-
Method Details
-
isPublishAllowed
public boolean isPublishAllowed(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.- 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
-
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:
isPlaybackAllowedin 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
-
isPlayAllowed
public boolean isPlayAllowed(IScope scope, String name, String mode, Map<String, String> queryParams, String metaData, String token, String subscriberId, String subscriberCode) - Specified by:
isPlayAllowedin interfaceIStreamPlaybackSecurity
-