Interface UrlSigningVerifier
- All Known Implementing Classes:
UrlSigningVerifierImpl
public interface UrlSigningVerifier
-
Method Summary
Modifier and TypeMethodDescriptionVerify whether a request is valid.Verify whether a request is valid.
-
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
ResourceRequestobject 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 requestedstrict- Whether the full resource URI should be compared or only the path to the resource- Returns:
- A
ResourceRequestobject with the status of it being a valid request. - Throws:
UrlSigningException
-