Interface UrlSigningVerifier

All Known Implementing Classes:
UrlSigningVerifierImpl

public interface UrlSigningVerifier
  • Method Details

    • verify

      ResourceRequest verify(String queryString, String clientIp, String baseUrl) throws 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:
      UrlSigningException
    • verify

      ResourceRequest verify(String queryString, String clientIp, String baseUrl, boolean strict) throws 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:
      UrlSigningException