public final class SelectedCredential


A credential selected within a SelectedCredentialSet.

Summary

Public constructors

SelectedCredential(@NonNull String credentialId, String metadata)

Public methods

boolean
equals(Object other)
final @NonNull String

the id of the selected credential.

final String

optional metadata associated with the selected credential; this can be generated by the provider matcher (see RegisterCredentialsRequest.matcher)

int

Public constructors

SelectedCredential

Added in 1.0.0-alpha02
public SelectedCredential(@NonNull String credentialId, String metadata)
Parameters
@NonNull String credentialId

the id of the selected credential. For example for a digital credential entry, this maps to the corresponding entry's DigitalCredentialEntry.id

String metadata

optional metadata associated with the selected credential; this can be generated by the provider matcher (see RegisterCredentialsRequest.matcher)

Public methods

equals

public boolean equals(Object other)

getCredentialId

Added in 1.0.0-alpha02
public final @NonNull String getCredentialId()

the id of the selected credential. For example for a digital credential entry, this maps to the corresponding entry's DigitalCredentialEntry.id

getMetadata

Added in 1.0.0-alpha02
public final String getMetadata()

optional metadata associated with the selected credential; this can be generated by the provider matcher (see RegisterCredentialsRequest.matcher)

hashCode

public int hashCode()