Method Summary
| getGenericOpenSourceLicensesInfo ( ) → Array.<ToiApplicationService.ToiOpenSourceLicenseInfo> |
Returns information about generic open source licenses used by KreaTV. |
| getOpenSourceComponentsInfo ( ) → Array.<ToiApplicationService.ToiOpenSourceComponentInfo> |
Returns information about open source components used by KreaTV. |
|
getOpenSourceLicenseText
(
|
Returns open source license text for a given identifier. |
| getSecondaryApplications ( ) → Array.<ToiSecondaryApplication> |
Get all the secondary applications. |
| resetInputFocus ( ) |
Call this method to tell the Application Service to reset the input focus. The primary application will be in STATE_ACTIVE, the currently active secondary application will be in STATE_VISIBLE. |
|
signData
(
|
This method is used to RSA sign user data. The method signs a hash of the supplied user data as specified in PKCS #1 2.0. The current limit for the data to sign is 4 KiB. |
|
verifySignature
(
|
This method is used to RSA verify signatures for user data. The current limit for the data to verify is 4 KiB. |
Inherited Methods
|
addEventListener
(
|
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners. |
|
removeEventListener
(
|
This method removes an event listener for a specific event. |
Type Definitions
|
An identifier of an open source license text. See ToiApplicationService#getOpenSourceLicenseText. |
|
|
|
|
Methods
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners.
Inherited From:
Parameters:
-
Name Type Description typenumber The event type of the event to subscribe to.
listenerToiEventListener The JavaScript function that will receive events.
Throws:
-
ToiInvalidArgumentException Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the application calls addEventListener with the same combination of type and listener twice.
Returns information about generic open source licenses used by KreaTV.
Returns:
-
Type: Array.<ToiApplicationService.ToiOpenSourceLicenseInfo>
The returned generic open source license info.
Returns information about open source components used by KreaTV.
Returns:
-
Type: Array.<ToiApplicationService.ToiOpenSourceComponentInfo>
The returned open source component info.
Returns open source license text for a given identifier.
Parameters:
-
Name Type Description idToiApplicationService.ToiOpenSourceLicenseId The open source license identifier.
Throws:
-
ToiInvalidArgumentException Raised if the specified identifier is invalid.
Returns:
-
Type: string
The returned open source license text.
Get all the secondary applications.
Returns:
-
Type: Array.<ToiSecondaryApplication>
Return the sequence of ToiSecondaryApplication.
This method removes an event listener for a specific event.
Inherited From:
Parameters:
-
Name Type Description typenumber The event type of the event to remove the listener from.
listenerToiEventListener The JavaScript function that was previously added as an event listener.
Throws:
-
ToiInvalidArgumentException Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the listener has not previously been added.
Call this method to tell the Application Service to reset the input focus. The primary application will be in STATE_ACTIVE, the currently active secondary application will be in STATE_VISIBLE.
This method is used to RSA sign user data. The method signs a hash of the supplied user data as specified in PKCS #1 2.0. The current limit for the data to sign is 4 KiB.
Technical Preview:
- This method is a TECHNICAL PREVIEW, it may change.
Parameters:
-
Name Type Description keyNamestring The logical name of an installed RSA key to use.
userDatastring The base64 encoded data that shall be digested and signed.
Throws:
-
ToiInvalidArgumentException Raised if the provided data is invalid or the logical name is unknown.
ToiUnavailableException Raised if the signing operation fails.
Returns:
-
Type: string
The resulting signature in base64 encoding.
This method is used to RSA verify signatures for user data. The current limit for the data to verify is 4 KiB.
Technical Preview:
- This method is a TECHNICAL PREVIEW, it may change.
Parameters:
-
Name Type Description keyNamestring The logical name of an certificate to use.
userDatastring The base64 encoded data that shall be verified.
signaturestring The base64 encoded signature associated with the user data.
Throws:
-
ToiInvalidArgumentException Raised if the provided data is invalid. Raised if signature data is invalid Raised if the logical name is unknown.
ToiUnavailableException Raised if the verification operation fails.
Returns:
-
Type: boolean
Returns true on successful verification, false otherwise.
Members
Information about an open source component.
Struct fields
| Name | Description |
|---|---|
| license | Information about the component. Type: ToiApplicationService.ToiOpenSourceLicenseInfo |
| referencedLicenses | Licenses that are referenced by the open source license text identified by the license above. Type: Array.<ToiApplicationService.ToiOpenSourceLicenseId> |
Information about an open source license.
Struct fields
| Name | Description |
|---|---|
| id | A unique identifier of a license text. Type: ToiApplicationService.ToiOpenSourceLicenseId |
| title | A human-readable title of the license text. For a generic license, this is the name of the license (e.g. "GNU General Public License 2.0 (GPL)"). For a non-generic/component-specific license, this is the name and version of the open source component (e.g. "BusyBox 1.20.2"). Type: string |