Interface UrlSigningProvider

All Known Implementing Classes:
AbstractUrlSigningProvider, GenericUrlSigningProvider, WowzaUrlSigningProvider

public interface UrlSigningProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accepts(String baseUrl)
    Returns true if the implementation accepts to sign the baseUrl.
    sign(Policy policy)
    Creates the necessary query string to sign a resource using the given Policy
  • Method Details

    • accepts

      boolean accepts(String baseUrl)
      Returns true if the implementation accepts to sign the baseUrl.
      Parameters:
      baseUrl - The base URL of the resource that needs to be signed
      Returns:
      True, if the provider accepts to sign the URL; false otherwise.
    • sign

      String sign(Policy policy) throws UrlSigningException
      Creates the necessary query string to sign a resource using the given Policy
      Parameters:
      policy - The Policy to sign.
      Returns:
      A query string with the signed policy encoded ready for delivery
      Throws:
      UrlSigningException - Thrown if unable to sign the url.