ResultData

abstract class ResultData

Deprecated

Use PresentationSession instead.

An object that contains the result of retrieving data from a credential. This is used to return data requested from a IdentityCredential.

Types

Link copied to clipboard
@Retention(value = SOURCE)
annotation class Status
The type of the entry status.

Properties

Link copied to clipboard
The requested entry was not retrieved because it was configured without any access control profile.
Link copied to clipboard
Requested entry does not exist.
Link copied to clipboard
Requested entry wasn't in the request message.
Link copied to clipboard
Requested entry was not requested.
Link copied to clipboard
val STATUS_OK: Int = 0
Value was successfully retrieved.
Link copied to clipboard
The requested entry was not retrieved because reader authentication wasn't performed.
Link copied to clipboard
The requested entry was not retrieved because user authentication wasn't performed.

Functions

Link copied to clipboard
Returns a CBOR structure containing the retrieved data.
Link copied to clipboard
Returns a digital signature over the DeviceAuthenticationBytes CBOR specified in getAuthenticatedData, to prove to the reader that the data is from a trusted credential.
Link copied to clipboard
abstract fun getEntry(@NonNull namespaceName: String, @NonNull name: String): Array<Byte>
Gets the raw CBOR data for the value of an entry.
Link copied to clipboard
open fun getEntryBoolean(@NonNull namespaceName: String, @NonNull name: String): Boolean
Gets the value of an entry.
Link copied to clipboard
open fun getEntryBytestring(@NonNull namespaceName: String, @NonNull name: String): Array<Byte>
Gets the value of an entry.
Link copied to clipboard
open fun getEntryCalendar(@NonNull namespaceName: String, @NonNull name: String): Calendar
Gets the value of an entry.
Link copied to clipboard
open fun getEntryInteger(@NonNull namespaceName: String, @NonNull name: String): Long
Gets the value of an entry.
Link copied to clipboard
abstract fun getEntryNames(@NonNull namespaceName: String): Collection<String>
Get the names of all entries.
Link copied to clipboard
open fun getEntryString(@NonNull namespaceName: String, @NonNull name: String): String
Gets the value of an entry.
Link copied to clipboard
Returns a message authentication code over the DeviceAuthenticationBytes CBOR specified in getAuthenticatedData, to prove to the reader that the data is from a trusted credential.
Link copied to clipboard
Gets the names of namespaces with retrieved entries.
Link copied to clipboard
Get the names of all entries that was successfully retrieved.
Link copied to clipboard
Returns the static authentication data associated with the dynamic authentication key used to sign or MAC the data returned by getAuthenticatedData.
Link copied to clipboard
abstract fun getStatus(@NonNull namespaceName: String, @NonNull name: String): Int
Gets the status of an entry.