Class UrlSigningVerifierImpl
java.lang.Object
org.opencastproject.security.urlsigning.verifier.impl.UrlSigningVerifierImpl
- All Implemented Interfaces:
UrlSigningVerifier,org.osgi.service.cm.ManagedService
public class UrlSigningVerifierImpl
extends Object
implements UrlSigningVerifier, org.osgi.service.cm.ManagedService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertiesgetKeys()voidupdated(Dictionary<String, ?> properties) Verify whether a request is valid.Verify whether a request is valid.
-
Field Details
-
KEY_PREFIX
Prefix for key entry configuration keys- See Also:
-
-
Constructor Details
-
UrlSigningVerifierImpl
public UrlSigningVerifierImpl()
-
-
Method Details
-
verify
Description copied from interface:UrlSigningVerifierVerify whether a request is valid.- Specified by:
verifyin interfaceUrlSigningVerifier- 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.baseUri- The location of the resource being requested- Returns:
- A
ResourceRequestobject with the status of it being a valid request.
-
verify
Description copied from interface:UrlSigningVerifierVerify whether a request is valid.- Specified by:
verifyin interfaceUrlSigningVerifier- 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.baseUri- 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.
-
getKeys
-
updated
public void updated(Dictionary<String, ?> properties) throws org.osgi.service.cm.ConfigurationException- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService- Throws:
org.osgi.service.cm.ConfigurationException
-