Method

@Serializable
@SerialName(value = "method")
sealed class Method(source)

After D3.1: UC Specification WP3. Describes the restrictions/way of accessing a document

This class serializes to {"type":"OTP","oneTimePassword":"1234"} {"type":"public"} which is not to be confused with DocumentLocationMethod which instead serializes to {"document_access_mode":"OTP","oneTimePassword":"1234"} {"document_access_mode":"public", "oneTimePassword": null}

but otherwise does the exact same thing. This was never unified.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "Basic_Auth")
data object Basic : Method

D3.1: UC Specification WP3: The wallet fetches the document from documentLocationUri. The document should be fetched using the ‘Basic’ HTTP Authentication Scheme (RFC 7617).

Link copied to clipboard
@Serializable
@SerialName(value = "Digest_Auth")
data object Digest : Method

D3.1: UC Specification WP3: The wallet fetches the document from documentLocationUri. The document should be fetched using the ‘Digest’ HTTP Authentication Scheme (RFC 7616).

Link copied to clipboard
@Serializable
@SerialName(value = "OAuth_20")
data object Oauth2 : Method

D3.1: UC Specification WP3: The wallet fetches the document from documentLocationUri. The document should be fetched using the ‘OAuth 2.0’ Authentication Framework (RFC6749 and RFC8252).

Link copied to clipboard
@Serializable
@SerialName(value = "OTP")
data class OTP(val oneTimePassword: String) : Method

D3.1: UC Specification WP3: The wallet displays the parameter oneTimePassword to the user. A webclient accessing the uri offers a way for the user to input the shown value and only then allows to fetch the document corresponding to hash.

Link copied to clipboard
@Serializable
@SerialName(value = "public")
data object Public : Method

D3.1: UC Specification WP3: The document corresponding to the parameter hash can be fetched from documentLocationUri with a https-request without further restrictions.