IdentityCredential

abstract class IdentityCredential

Class used to read data from a previously provisioned credential. Use getCredentialByName to get a IdentityCredential instance.

Functions

Link copied to clipboard
Create an ephemeral key pair to use to establish a secure channel with a reader.
Link copied to clipboard
abstract fun decryptMessageFromReader(@NonNull messageCiphertext: Array<Byte>): Array<Byte>
Decrypt a message received from the reader.
Link copied to clipboard
open fun delete(@NonNull challenge: Array<Byte>): Array<Byte>
Deletes a credential.
Link copied to clipboard
abstract fun encryptMessageToReader(@NonNull messagePlaintext: Array<Byte>): Array<Byte>
Encrypt a message for transmission to the reader.
Link copied to clipboard
Get the expiration times of dynamic authentication keys.
Link copied to clipboard
Get the number of times the dynamic authentication keys have been used.
Link copied to clipboard
Gets a collection of dynamic authentication keys that need certification.
Link copied to clipboard
Gets the X.509 certificate chain for the CredentialKey which identifies this credential to the issuing authority.
Link copied to clipboard
Link copied to clipboard
abstract fun getEntries(@Nullable requestMessage: Array<Byte>, @NonNull entriesToRequest: Map<String, Collection<String>>, @Nullable readerSignature: Array<Byte>): ResultData
Retrieve data entries and associated data from this IdentityCredential.
Link copied to clipboard
Looks up the next static authentication key to use.
Link copied to clipboard
open fun proveOwnership(@NonNull challenge: Array<Byte>): Array<Byte>
Proves ownership of a credential.
Link copied to clipboard
abstract fun setAllowUsingExhaustedKeys(allowUsingExhaustedKeys: Boolean)
Sets whether to allow using an authentication key which use count has been exceeded if no other key is available.
Link copied to clipboard
open fun setAllowUsingExpiredKeys(allowUsingExpiredKeys: Boolean)
Sets whether to allow using an authentication key which has been expired if no other key is available.
Link copied to clipboard
abstract fun setAvailableAuthenticationKeys(keyCount: Int, maxUsesPerKey: Int)
Sets the number of dynamic authentication keys the IdentityCredential will maintain, and the number of times each should be used.
open fun setAvailableAuthenticationKeys(keyCount: Int, maxUsesPerKey: Int, minValidTimeMillis: Long)
Sets the number of dynamic authentication keys the IdentityCredential will maintain, the number of times each should be used, and the minimum amount of time it's valid for.
Link copied to clipboard
open fun setIncrementKeyUsageCount(incrementKeyUsageCount: Boolean)
Sets whether the usage count of an authentication key should be increased.
Link copied to clipboard
abstract fun setReaderEphemeralPublicKey(@NonNull readerEphemeralPublicKey: PublicKey)
Set the ephemeral public key provided by the reader.
Link copied to clipboard
abstract fun setSessionTranscript(@NonNull sessionTranscript: Array<Byte>)
Set the session transcript.
Link copied to clipboard
abstract fun storeStaticAuthenticationData(@NonNull authenticationKey: X509Certificate, @NonNull staticAuthData: Array<Byte>)
open fun storeStaticAuthenticationData(@NonNull authenticationKey: X509Certificate, @NonNull expirationDate: Calendar, @NonNull staticAuthData: Array<Byte>)
Store authentication data associated with a dynamic authentication key.
Link copied to clipboard
open fun update(@NonNull personalizationData: PersonalizationData): Array<Byte>
Updates the credential with new access control profiles and data items.