Index
All Classes and Interfaces|All Packages|Constant Field Values
B
- BadRequest - Enum constant in enum class org.opencastproject.urlsigning.common.ResourceRequest.Status
- base64Decode(String) - Static method in class org.opencastproject.urlsigning.utils.PolicyUtils
-
Decode a
Stringfrom Base 64 encoding - base64Encode(String) - Static method in class org.opencastproject.urlsigning.utils.PolicyUtils
-
Encode a
Stringinto Base 64 encoding - BasicResourceStrategyImpl - Class in org.opencastproject.urlsigning.common
-
A
ResourceStrategythat will return the base url as its resource url. - BasicResourceStrategyImpl() - Constructor for class org.opencastproject.urlsigning.common.BasicResourceStrategyImpl
D
- digest(String, String) - Static method in class org.opencastproject.urlsigning.utils.SHA256Util
-
Create a SHA 256 digest string from a string and a secret key.
E
- ENCRYPTION_ID_KEY - Static variable in class org.opencastproject.urlsigning.common.ResourceRequest
-
The query string parameter key of the organization used to request resource.
F
- Forbidden - Enum constant in enum class org.opencastproject.urlsigning.common.ResourceRequest.Status
- fromBase64EncodedPolicy(String) - Static method in class org.opencastproject.urlsigning.utils.PolicyUtils
-
Create a
Policyin Json format and Base 64 encoded. - fromJson(String) - Static method in class org.opencastproject.urlsigning.utils.PolicyUtils
-
Get a
Policyfrom JSON data.
G
- getBaseUrl() - Method in class org.opencastproject.urlsigning.common.Policy
- getClientIpAddress() - Method in class org.opencastproject.urlsigning.common.Policy
- getEncodedPolicy() - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- getEncryptionKeyId() - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- getPolicy() - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- getPolicySignature(Policy, String) - Static method in class org.opencastproject.urlsigning.utils.PolicyUtils
-
Get an encrypted version of a
Policyto use as a signature. - getRejectionReason() - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- getResource() - Method in class org.opencastproject.urlsigning.common.Policy
- getResource(String) - Method in class org.opencastproject.urlsigning.common.BasicResourceStrategyImpl
- getResource(String) - Method in interface org.opencastproject.urlsigning.common.ResourceStrategy
-
Transform a base url into a resource uri.
- getSignature() - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- getStatus() - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- getValidFrom() - Method in class org.opencastproject.urlsigning.common.Policy
- getValidUntil() - Method in class org.opencastproject.urlsigning.common.Policy
- Gone - Enum constant in enum class org.opencastproject.urlsigning.common.ResourceRequest.Status
I
- isNotSigned(URI) - Static method in class org.opencastproject.urlsigning.utils.ResourceRequestUtil
-
Check to see if a
URIhas not been signed already. - isSigned(URI) - Static method in class org.opencastproject.urlsigning.utils.ResourceRequestUtil
-
Check to see if a
URIhas been signed already.
M
- mkPolicyValidFrom(String, DateTime, DateTime) - Static method in class org.opencastproject.urlsigning.common.Policy
-
Create a
Policywith a date and time the resource will become available. - mkPolicyValidFromWithIP(String, DateTime, DateTime, String) - Static method in class org.opencastproject.urlsigning.common.Policy
-
Create a
Policywith both a date and time the resource will become available and a client ip address to restrict it to. - mkPolicyValidWithIP(String, DateTime, String) - Static method in class org.opencastproject.urlsigning.common.Policy
-
Create a
Policywith the only ip address that will be allowed to view the resource. - mkSimplePolicy(String, DateTime) - Static method in class org.opencastproject.urlsigning.common.Policy
-
Create a
Policywith only the required properties.
O
- Ok - Enum constant in enum class org.opencastproject.urlsigning.common.ResourceRequest.Status
- org.opencastproject.urlsigning.common - package org.opencastproject.urlsigning.common
- org.opencastproject.urlsigning.utils - package org.opencastproject.urlsigning.utils
P
- parseQueryString(String) - Static method in class org.opencastproject.urlsigning.utils.ResourceRequestUtil
-
Get a list of all of the query string parameters and their values.
- Policy - Class in org.opencastproject.urlsigning.common
-
Represents a policy for a signed resource that looks like
- POLICY_KEY - Static variable in class org.opencastproject.urlsigning.common.ResourceRequest
-
The query string key representing the conditions to allow the resource to be seen.
- policyMatchesSignature(Policy, String, String) - Static method in class org.opencastproject.urlsigning.utils.ResourceRequestUtil
-
Determine if the policy matches the encrypted signature.
- policyToResourceRequestQueryString(Policy, String, String) - Static method in class org.opencastproject.urlsigning.utils.ResourceRequestUtil
-
Transform a
Policyinto aResourceRequestquery string. - PolicyUtils - Class in org.opencastproject.urlsigning.utils
-
A Utility class to encode / decode Policy files from and to Base 64 and Json.
R
- ResourceRequest - Class in org.opencastproject.urlsigning.common
-
Represents a request for a streaming resource whose signed url must be validated.
- ResourceRequest() - Constructor for class org.opencastproject.urlsigning.common.ResourceRequest
- ResourceRequest.Status - Enum Class in org.opencastproject.urlsigning.common
- resourceRequestFromQueryString(String, String, String, Properties, boolean) - Static method in class org.opencastproject.urlsigning.utils.ResourceRequestUtil
- resourceRequestToQueryString(ResourceRequest) - Static method in class org.opencastproject.urlsigning.utils.ResourceRequestUtil
-
Transform a
ResourceRequestinto a query string. - ResourceRequestUtil - Class in org.opencastproject.urlsigning.utils
-
A utility class to transform ResourceRequests into query strings and back.
- ResourceStrategy - Interface in org.opencastproject.urlsigning.common
S
- setEncodedPolicy(String) - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- setEncryptionKeyId(String) - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- setPolicy(Policy) - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- setRejectionReason(String) - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- setResourceStrategy(ResourceStrategy) - Method in class org.opencastproject.urlsigning.common.Policy
-
Set a new
ResourceStrategyto transform the base url to a resource url. - setSignature(String) - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- setStatus(ResourceRequest.Status) - Method in class org.opencastproject.urlsigning.common.ResourceRequest
- SHA256Util - Class in org.opencastproject.urlsigning.utils
-
A utility class to hash plain text with the SHA-256 algorithm.
- SIGNATURE_KEY - Static variable in class org.opencastproject.urlsigning.common.ResourceRequest
-
The query string key representing the encrypted policy.
T
- toBase64EncodedPolicy(Policy) - Static method in class org.opencastproject.urlsigning.utils.PolicyUtils
-
Create a
Policyin Json format and Base 64 encoded. - toJson(Policy) - Static method in class org.opencastproject.urlsigning.utils.PolicyUtils
-
Render a
Policyinto JSON.
V
- valueOf(String) - Static method in enum class org.opencastproject.urlsigning.common.ResourceRequest.Status
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.opencastproject.urlsigning.common.ResourceRequest.Status
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values