public interface CSPService extends Shareable
Base interface for all services provided by the CSP.
Shareable
to share CSP service instances with Client Applications.assertSensitiveResult(..)
for verifying service-specific sensitive results.Modifier and Type | Field and Description |
---|---|
static short |
RESULT_FALSE
Predefined constant for boolean results (0x8787 for false).
|
static short |
RESULT_TRUE
Predefined constant for boolean results (0x7878 for true).
|
Modifier and Type | Method and Description |
---|---|
short |
assertSensitiveResult(short result)
Verifies that the most recent internally stored CSP result matches the provided short value.
|
static final short RESULT_TRUE
Used in CSP service operations to minimize the risk of laser fault attacks.
static final short RESULT_FALSE
Used in CSP service operations to minimize the risk of laser fault attacks.
short assertSensitiveResult(short result)
Method Behavior:
This method re-evaluates the last result from a service operation, stored individually within each CSP service. If the operation was abnormal (i.e., threw an exception), the stored result is marked as "Unassigned" and the assertion will fail.
result
- The short value to verify against the internally stored result.CSPException
- with reason:
NOT_ALLOWED
: Client not authenticated [5006].SecurityException
- if the provided value does not match the stored result.Copyright © 2023-2025 GlobalPlatform, Inc. All rights reserved. The technology provided or described in this specification is subject to updates, revisions, and extensions by GlobalPlatform. Recipients of this document are invited to submit, with their comments, notification of any relevant patent rights or other intellectual property rights of which they may be aware which might be necessarily infringed by the implementation of the specification or other work product set forth in this document, and to provide supporting documentation.
THIS SPECIFICATION OR OTHER WORK PRODUCT IS BEING OFFERED WITHOUT ANY WARRANTY WHATSOEVER, AND IN PARTICULAR, ANY WARRANTY OF NON-INFRINGEMENT IS EXPRESSLY DISCLAIMED. ANY IMPLEMENTATION OF THIS SPECIFICATION OR OTHER WORK PRODUCT SHALL BE MADE ENTIRELY AT THE IMPLEMENTER'S OWN RISK, AND NEITHER THE COMPANY, NOR ANY OF ITS MEMBERS OR SUBMITTERS, SHALL HAVE ANY LIABILITY WHATSOEVER TO ANY IMPLEMENTER OR THIRD PARTY FOR ANY DAMAGES OF ANY NATURE WHATSOEVER DIRECTLY OR INDIRECTLY ARISING FROM THE IMPLEMENTATION OF THIS SPECIFICATION OR OTHER WORK PRODUCT.