Interface UrlSigningVerifier
public interface UrlSigningVerifier
-
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.urlsigning.common.ResourceRequestVerify whether a request is valid.org.opencastproject.urlsigning.common.ResourceRequestVerify 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
ResourceRequestobject 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 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:
org.opencastproject.security.urlsigning.exception.UrlSigningException
-