Class ExpireStreamPublishSecurity

java.lang.Object
io.antmedia.security.ExpireStreamPublishSecurity
All Implemented Interfaces:
IStreamPublishSecurity

public class ExpireStreamPublishSecurity extends Object implements IStreamPublishSecurity
  • Field Details

    • dataStoreFactory

      private DataStoreFactory dataStoreFactory
    • dataStore

      private DataStore dataStore
    • logger

      protected static org.slf4j.Logger logger
  • Constructor Details

    • ExpireStreamPublishSecurity

      public ExpireStreamPublishSecurity()
  • 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 interface IStreamPublishSecurity
      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
       
    • checkStreamDateValid

      public boolean checkStreamDateValid(Broadcast broadcast)
    • getDatastore

      public DataStore getDatastore()
    • setDataStore

      public void setDataStore(DataStore dataStore)
    • getDataStoreFactory

      public DataStoreFactory getDataStoreFactory()
    • setDataStoreFactory

      public void setDataStoreFactory(DataStoreFactory dataStoreFactory)