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 Details

  • Constructor Details

    • UrlSigningVerifierImpl

      public UrlSigningVerifierImpl()
  • Method Details

    • verify

      public ResourceRequest verify(String queryString, String clientIp, String baseUri)
      Description copied from interface: UrlSigningVerifier
      Verify whether a request is valid.
      Specified by:
      verify in interface UrlSigningVerifier
      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 ResourceRequest object with the status of it being a valid request.
    • verify

      public ResourceRequest verify(String queryString, String clientIp, String baseUri, boolean strict)
      Description copied from interface: UrlSigningVerifier
      Verify whether a request is valid.
      Specified by:
      verify in interface UrlSigningVerifier
      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
      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.
    • getKeys

      protected Properties getKeys()
    • updated

      public void updated(Dictionary<String,?> properties) throws org.osgi.service.cm.ConfigurationException
      Specified by:
      updated in interface org.osgi.service.cm.ManagedService
      Throws:
      org.osgi.service.cm.ConfigurationException