public static final class MediaCodec.CryptoException extends RuntimeException
Modifier and Type | Class and Description |
---|---|
static interface |
MediaCodec.CryptoException.CryptoErrorCode |
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_INSUFFICIENT_OUTPUT_PROTECTION
This indicates that the output protection levels supported by the
device are not sufficient to meet the requirements set by the
content owner in the license policy.
|
static int |
ERROR_KEY_EXPIRED
This indicates that the key used for decryption is no longer
valid due to license term expiration.
|
static int |
ERROR_NO_KEY
This indicates that the requested key was not found when trying to
perform a decrypt operation.
|
static int |
ERROR_RESOURCE_BUSY
This indicates that a required crypto resource was not able to be
allocated while attempting the requested operation.
|
static int |
ERROR_SESSION_NOT_OPENED
This indicates that decryption was attempted on a session that is
not opened, which could be due to a failure to open the session,
closing the session prematurely, or the session being reclaimed
by the resource manager.
|
static int |
ERROR_UNSUPPORTED_OPERATION
This indicates that an operation was attempted that could not be
supported by the crypto system of the device in its current
configuration.
|
Constructor and Description |
---|
CryptoException(int errorCode,
String detailMessage) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Retrieve the error code associated with a CryptoException
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int ERROR_NO_KEY
public static final int ERROR_KEY_EXPIRED
public static final int ERROR_RESOURCE_BUSY
public static final int ERROR_INSUFFICIENT_OUTPUT_PROTECTION
public static final int ERROR_SESSION_NOT_OPENED
public static final int ERROR_UNSUPPORTED_OPERATION
public CryptoException(int errorCode, String detailMessage)