Interface UrlSigningVerifier


public interface UrlSigningVerifier
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opencastproject.urlsigning.common.ResourceRequest
    verify(String queryString, String clientIp, String baseUrl)
    Verify whether a request is valid.
    org.opencastproject.urlsigning.common.ResourceRequest
    verify(String queryString, String clientIp, String baseUrl, boolean strict)
    Verify whether a request is valid.
  • Method Details

    • verify

      org.opencastproject.urlsigning.common.ResourceRequest verify(String queryString, String clientIp, String baseUrl) throws org.opencastproject.security.urlsigning.exception.UrlSigningException
      Verify whether a request is valid.
      Parameters:
      queryString - The query string of the request that should include the key id, policy and signature.
      clientIp - The optional client ip of the machine making the request.
      baseUrl - The location of the resource being requested
      Returns:
      A ResourceRequest object with the status of it being a valid request.
      Throws:
      org.opencastproject.security.urlsigning.exception.UrlSigningException
    • verify

      org.opencastproject.urlsigning.common.ResourceRequest verify(String queryString, String clientIp, String baseUrl, boolean strict) throws org.opencastproject.security.urlsigning.exception.UrlSigningException
      Verify whether a request is valid.
      Parameters:
      queryString - The query string of the request that should include the key id, policy and signature.
      clientIp - The optional client ip of the machine making the request.
      baseUrl - The location of the resource being requested
      strict - Whether the full resource URI should be compared or only the path to the resource
      Returns:
      A ResourceRequest object with the status of it being a valid request.
      Throws:
      org.opencastproject.security.urlsigning.exception.UrlSigningException