Class KeySystemConfiguration
-
- All Implemented Interfaces:
public class KeySystemConfiguration
The configuration of a key system which will be used during the licensing process with a given DRM server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
KeySystemConfiguration.Builder
The builder for the key system configuration.
-
Field Summary
Fields Modifier and Type Field Description public final String
licenseAcquisitionURL
public final Map<String, String>
headers
public final Map<String, String>
queryParameters
public final LicenseType
licenseType
-
Constructor Summary
Constructors Constructor Description KeySystemConfiguration(String licenseAcquisitionURL, Map<String, String> headers, boolean useCredentials, Map<String, String> queryParameters, LicenseType licenseType, String certificate)
-
Method Summary
Modifier and Type Method Description String
getLicenseAcquisitionURL()
The license acquisition URL. Map<String, String>
getHeaders()
Map of HTTP headers for the license acquisition request. Map<String, String>
getQueryParameters()
The map of query parameters for the license acquisition request. LicenseType
getLicenseType()
The license type. boolean
isUseCredentials()
Returns whether the player is allowed to use credentials for cross-origin requests. Array<byte>
getCertificate()
The certificate. boolean
equals(Object o)
int
hashCode()
-
-
Method Detail
-
getLicenseAcquisitionURL
@NonNull() String getLicenseAcquisitionURL()
The license acquisition URL. (NonNull)
-
getHeaders
@Nullable() Map<String, String> getHeaders()
Map of HTTP headers for the license acquisition request.
- Each entry contains a header name with associated value.
- Returns:
The Map of HTTP headers. (Nullable)
-
getQueryParameters
@Nullable() Map<String, String> getQueryParameters()
The map of query parameters for the license acquisition request.
- Each entry contains a query parameter name with associated value.
- Returns:
The query parameters. (Nullable)
-
getLicenseType
@Nullable() LicenseType getLicenseType()
The license type.
- Indicates whether the license should be persisted.
- This is only possible if the LicenseType allows it.
- Returns:
The LicenseType. (Nullable)
-
isUseCredentials
boolean isUseCredentials()
Returns whether the player is allowed to use credentials for cross-origin requests.
- Credentials are cookies, authorization headers or TLS client certificates.
Default: false
-
getCertificate
@Nullable() Array<byte> getCertificate()
The certificate.
- Returns:
The certificate. (Nullable)
-
hashCode
int hashCode()
-
-
-
-