ExoMediaDrm.KeyRequest

class ExoMediaDrm.KeyRequest


Contains data used to request keys from a license server.

Summary

Nested types

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
annotation ExoMediaDrm.KeyRequest.RequestType

Key request types.

Constants

const Int

Key request type for an initial license request.

const Int

Key request type if keys are already loaded and available for use.

const Int

Key request type for license release.

const Int

Key request type for license renewal.

const Int
REQUEST_TYPE_UNKNOWN = -2147483648

Value returned from getRequestType if the underlying key request does not specify a type.

const Int

Key request type if keys have been loaded, but an additional license request is needed to update their values.

Public constructors

KeyRequest(data: ByteArray!, licenseServerUrl: String!)

Creates an instance with REQUEST_TYPE_UNKNOWN.

KeyRequest(
    data: ByteArray!,
    licenseServerUrl: String!,
    @ExoMediaDrm.KeyRequest.RequestType requestType: Int
)

Creates an instance.

Constants

REQUEST_TYPE_INITIAL

const val REQUEST_TYPE_INITIAL = 0: Int

Key request type for an initial license request.

REQUEST_TYPE_NONE

const val REQUEST_TYPE_NONE = 3: Int

Key request type if keys are already loaded and available for use. No license request is necessary, and no key request data is returned.

REQUEST_TYPE_RELEASE

const val REQUEST_TYPE_RELEASE = 2: Int

Key request type for license release.

REQUEST_TYPE_RENEWAL

const val REQUEST_TYPE_RENEWAL = 1: Int

Key request type for license renewal.

REQUEST_TYPE_UNKNOWN

const val REQUEST_TYPE_UNKNOWN = -2147483648: Int

Value returned from getRequestType if the underlying key request does not specify a type.

REQUEST_TYPE_UPDATE

const val REQUEST_TYPE_UPDATE = 4: Int

Key request type if keys have been loaded, but an additional license request is needed to update their values.

Public constructors

KeyRequest

KeyRequest(data: ByteArray!, licenseServerUrl: String!)

Creates an instance with REQUEST_TYPE_UNKNOWN.

Parameters
data: ByteArray!

The opaque key request data.

licenseServerUrl: String!

The license server URL to which the request should be made.

KeyRequest

KeyRequest(
    data: ByteArray!,
    licenseServerUrl: String!,
    @ExoMediaDrm.KeyRequest.RequestType requestType: Int
)

Creates an instance.

Parameters
data: ByteArray!

The opaque key request data.

licenseServerUrl: String!

The license server URL to which the request should be made.

@ExoMediaDrm.KeyRequest.RequestType requestType: Int

The type of the request, or REQUEST_TYPE_UNKNOWN.

Public properties

data

val dataByteArray<Byte>!

licenseServerUrl

val licenseServerUrlString!