Uses of Class
org.opencastproject.urlsigning.common.Policy
Packages that use Policy
Package
Description
-
Uses of Policy in org.opencastproject.security.urlsigning.provider
Methods in org.opencastproject.security.urlsigning.provider with parameters of type Policy -
Uses of Policy in org.opencastproject.security.urlsigning.provider.impl
Methods in org.opencastproject.security.urlsigning.provider.impl with parameters of type Policy -
Uses of Policy in org.opencastproject.urlsigning.common
Methods in org.opencastproject.urlsigning.common that return PolicyModifier and TypeMethodDescriptionResourceRequest.getPolicy()static PolicyPolicy.mkPolicyValidFrom(String baseUrl, org.joda.time.DateTime validUntil, org.joda.time.DateTime validFrom) Create aPolicywith a date and time the resource will become available.static PolicyPolicy.mkPolicyValidFromWithIP(String baseUrl, org.joda.time.DateTime validUntil, org.joda.time.DateTime validFrom, String ipAddress) Create aPolicywith both a date and time the resource will become available and a client ip address to restrict it to.static PolicyPolicy.mkPolicyValidWithIP(String baseUrl, org.joda.time.DateTime validUntil, String ipAddress) Create aPolicywith the only ip address that will be allowed to view the resource.static PolicyPolicy.mkSimplePolicy(String baseUrl, org.joda.time.DateTime validUntil) Create aPolicywith only the required properties.Methods in org.opencastproject.urlsigning.common with parameters of type Policy -
Uses of Policy in org.opencastproject.urlsigning.utils
Methods in org.opencastproject.urlsigning.utils that return PolicyModifier and TypeMethodDescriptionstatic PolicyPolicyUtils.fromBase64EncodedPolicy(String encodedPolicy) Create aPolicyin Json format and Base 64 encoded.static PolicyGet aPolicyfrom JSON data.Methods in org.opencastproject.urlsigning.utils with parameters of type PolicyModifier and TypeMethodDescriptionstatic StringPolicyUtils.getPolicySignature(Policy policy, String encryptionKey) Get an encrypted version of aPolicyto use as a signature.protected static booleanResourceRequestUtil.policyMatchesSignature(Policy policy, String signature, String encryptionKey) Determine if the policy matches the encrypted signature.static StringResourceRequestUtil.policyToResourceRequestQueryString(Policy policy, String encryptionKeyId, String encryptionKey) Transform aPolicyinto aResourceRequestquery string.static StringPolicyUtils.toBase64EncodedPolicy(Policy policy) Create aPolicyin Json format and Base 64 encoded.static org.json.simple.JSONObjectRender aPolicyinto JSON.