public class DrmInfoRequest extends Object
acquireDrmInfo()
method to get an
instance of a DrmInfo
.Modifier and Type | Field and Description |
---|---|
static String |
ACCOUNT_ID
Key that is used to pass the unique session ID for the account or the user.
|
static String |
SUBSCRIPTION_ID
Key that is used to pass the unique session ID for the subscription.
|
static int |
TYPE_REGISTRATION_INFO
Acquires DRM server registration information.
|
static int |
TYPE_RIGHTS_ACQUISITION_INFO
Acquires rights information.
|
static int |
TYPE_RIGHTS_ACQUISITION_PROGRESS_INFO
Acquires the progress of the rights acquisition.
|
static int |
TYPE_UNREGISTRATION_INFO
Acquires information for unregistering the DRM server.
|
Constructor and Description |
---|
DrmInfoRequest(int infoType,
String mimeType)
Creates a
DrmInfoRequest object with type and MIME type. |
Modifier and Type | Method and Description |
---|---|
Object |
get(String key)
Retrieves the value of a given key.
|
int |
getInfoType()
Retrieves the information type associated with this object.
|
String |
getMimeType()
Retrieves the MIME type associated with this object.
|
Iterator<Object> |
iterator()
Retrieves an iterator object that you can use to iterate over the values associated with
this
DrmInfoRequest object. |
Iterator<String> |
keyIterator()
Retrieves an iterator object that you can use to iterate over the keys associated with
this
DrmInfoRequest object. |
void |
put(String key,
Object value)
Adds optional information as key-value pairs to this object.
|
public static final int TYPE_REGISTRATION_INFO
public static final int TYPE_UNREGISTRATION_INFO
public static final int TYPE_RIGHTS_ACQUISITION_INFO
public static final int TYPE_RIGHTS_ACQUISITION_PROGRESS_INFO
public static final String ACCOUNT_ID
public static final String SUBSCRIPTION_ID
public DrmInfoRequest(int infoType, String mimeType)
DrmInfoRequest
object with type and MIME type.infoType
- Type of information.mimeType
- MIME type.public String getMimeType()
public int getInfoType()
public void put(String key, Object value)
key
- The key to add.value
- The value to add.public Object get(String key)
key
- The key whose value is being retrieved.public Iterator<String> keyIterator()
DrmInfoRequest
object.