Usage
This section provides an overview of how to use the key SDK components and capabilities.
This is not an inclusive list of the SDK’s components capabilities. These are available in the SDK’s reference documentation.
Capabilities
- Request and verify mDocs via a proximity presentation workflow as per ISO/IEC 18013-5:2021.
Components
Classes
The following classes are the core components of all SDK interactions:
MobileCredentialVerifier
: Serves as the entry point for any interaction with the SDK.ProximityPresentationSession
: Represents a proximity presentation session with a holder using device retrieval, as per ISO/IEC 18013-5:2021.
Methods
General
initialise
: Initializes theMobileCredentialVerifier
class.
Refer to the Initialize SDK section for more information and usage examples.
Credential verification
createProximityPresentationSession
: Establishes a secure communication channel with a holder device for a proximity presentation session.requestMobileCredentials
: This method of theProximityPresentationSession
class requests information for verification once a connection is established with a holder’s device.
Certificate management
addTrustedIssuerCertificates
: Adds an issuer’s certificate to the application storage. Credentials can only be verified if their issuer’s valid certificate exists in the application storage. Prior to adding a certificate, the SDK validates it as per the IACA profile defined in ISO/IEC 18013-5:2021.
Structures
MobileCredentialRequest
: Represents what information is requested for verification.MobileCredentialResponse
: Represents the credentials returned by a holder’s device in response to a verification request.MobileCredentialPresentation
: Represents a credential shared by the holder, including its branding, claims and verification result.