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.
|
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.ErrorCodeExceptionjava.lang.NullPointerExceptionpublic static void initialize(java.lang.String storagePath)
throws ErrorCodeException,
java.lang.NullPointerException
initializeEx(String storagePath, String dbNameParam)ErrorCodeExceptionjava.lang.NullPointerExceptionpublic static void initialize()
throws ErrorCodeException
initializeEx(String storagePath, String dbNameParam)ErrorCodeExceptionpublic static boolean isPersonalized()
Enginepublic static void personalize(java.lang.String token)
throws ErrorCodeException
token - perform personalization using the XML document 'token'ErrorCodeExceptionEnginepublic static void personalize()
throws ErrorCodeException
ErrorCodeExceptionEnginepublic static void processServiceToken(java.lang.String token)
throws ErrorCodeException
token - the service token XML string to processErrorCodeExceptionEngine,
LicenseStorepublic static void checkLicense(java.lang.String content_id)
throws ErrorCodeException
content_id - the content ID.ErrorCodeExceptionLicenseStore,
com.intertrust.wasabi.Runtime.processServiceTokenpublic static java.lang.Object getProperty(Runtime.Property property_id) throws ErrorCodeException
property_id - Runtime property identifier.ErrorCodeExceptionRuntime.Propertypublic 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.ErrorCodeExceptionRuntime.Propertypublic static void shutdown()
throws ErrorCodeException
ErrorCodeException