Interface CipherManager

All Known Implementing Classes:
LocalSignatureCipherManager, RemoteCipherManager

public interface CipherManager
Handles parsing and caching of signature ciphers
  • Method Details

    • resolveFormatUrl

      @NotNull @NotNull URI resolveFormatUrl(@NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface, @NotNull @NotNull String playerScript, @NotNull @NotNull StreamFormat format) throws IOException
      Produces a valid playback URL for the specified track
      Parameters:
      httpInterface - HTTP interface to use
      playerScript - Address of the script which is used to decipher signatures
      format - The track for which to get the URL
      Returns:
      Valid playback URL
      Throws:
      IOException - On network IO error
    • getCachedPlayerScript

      CipherManager.CachedPlayerScript getCachedPlayerScript(@NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface)
    • getTimestamp

      String getTimestamp(com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface, String sourceUrl) throws IOException
      Throws:
      IOException
    • getPlayerScript

      default CipherManager.CachedPlayerScript getPlayerScript(@NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface)