public final class Runtime
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Runtime.Property
Runtime property identifiers.
|
Constructor and Description |
---|
Runtime() |
Modifier and Type | Method and Description |
---|---|
static void |
checkLicense(java.lang.String content_id)
Check for a valid license for 'content_id'.
|
static java.lang.Object |
getProperty(Runtime.Property property_id)
Get Runtime property selected.
|
static void |
initialize()
Initialize Wasabi runtime.
|
static void |
initialize(java.lang.String storagePath)
Initialize Wasabi runtime.
|
static void |
initializeEx(java.lang.String storagePath,
java.lang.String dbNameParam)
Initialize Wasabi runtime.
|
static boolean |
isPersonalized()
Check whether the runtime has been personalized.
|
static void |
personalize()
Perform runtime personalization with the default personalization token.
|
static void |
personalize(java.lang.String token)
Perform runtime personalization.
|
static void |
processServiceToken(java.lang.String token)
Process service token.
|
static void |
setProperty(Runtime.Property property_id,
java.lang.Object value)
Set Runtime property selected.
|
static void |
shutdown()
Shutdown Wasabi library.
|
static java.lang.String |
volatileStore(java.lang.String content_type,
byte[] data)
Store a data object into Volatile Store returning a new special
URL string that can be passed as media URL to Playlist Proxy.
|
public static void initializeEx(java.lang.String storagePath, java.lang.String dbNameParam) throws ErrorCodeException, java.lang.NullPointerException
storagePath
- the storage directory to be used by Wasabi
runtime. The storagePath is set as the new value of the
STORAGE_DIRECTORY Runtime property, unless null in which case
the current value of the STORAGE_DIRECTORY Runtime property
is assumed for the DRM storage directory.ErrorCodeException
java.lang.NullPointerException
public static void initialize(java.lang.String storagePath) throws ErrorCodeException, java.lang.NullPointerException
initializeEx(String storagePath, String dbNameParam)
ErrorCodeException
java.lang.NullPointerException
public static void initialize() throws ErrorCodeException
initializeEx(String storagePath, String dbNameParam)
ErrorCodeException
public static boolean isPersonalized()
Engine
public static void personalize(java.lang.String token) throws ErrorCodeException
token
- perform personalization using the XML document 'token'ErrorCodeException
Engine
public static void personalize() throws ErrorCodeException
ErrorCodeException
Engine
public static void processServiceToken(java.lang.String token) throws ErrorCodeException
token
- the service token XML string to processErrorCodeException
Engine
,
LicenseStore
public static void checkLicense(java.lang.String content_id) throws ErrorCodeException
content_id
- the content ID.ErrorCodeException
LicenseStore
,
processServiceToken(java.lang.String)
public static java.lang.Object getProperty(Runtime.Property property_id) throws ErrorCodeException
property_id
- Runtime property identifier.ErrorCodeException
Runtime.Property
public static void setProperty(Runtime.Property property_id, java.lang.Object value) throws ErrorCodeException
property_id
- Runtime property identifier.value
- the new property value. Must match the expected
property value as listed in the property identifier documentation.ErrorCodeException
Runtime.Property
public static java.lang.String volatileStore(java.lang.String content_type, byte[] data) throws ErrorCodeException
content_type
- content type (mime type,
e.g. application/vnd.apple.mpegurl) of the
object being stored.data
- buffer containing data to be stored. Can be null to
remove any previously stored data.ErrorCodeException
public static void shutdown() throws ErrorCodeException
ErrorCodeException