CredentialRequest class

Represents a credential request as documented in inter-wallet-credential-exchange protocol.

Implemented types

Constructors

CredentialRequest({required List credentialTypes, required String location, required String challenge, Map<String, List>? requiredProperties, bool isAppLink = true, String? domain, Map<String, dynamic>? domainSpecificExtension})
CredentialRequest.fromJson(dynamic jsonObject)
CredentialRequest.fromQuery(Map<String, dynamic> queryParameters)
Searches base64URL encoded Response from queryParameters and decodes it.

Properties

acceptType → String
Type the response to this request should have
no setter
challenge ↔ String?
Long random String /String representation of number that has to be included in the Verifiable presentation the response contains.
getter/setter pair
credentialTypes → List?
List of URIs denoting all requested credential types.
no setter
domain → String?
URI to announce domain specific fields.
no setter
domainSpecificExtension → Map<String, dynamic>?
Json-Object with additional key-values pairs for one domain
no setter
hashCode → int
The hash code for this object.
no setterinherited
Whether _location should be interpreted as App-Link or not.
no setter
location → String?
URL to which the response has to be send.
no setter
requiredProperties → Map<String, dynamic>?
Maps the requested Credential types to a list of attributes of them that should be disclosed.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectiveDisclosureType → String
Accepted selective Disclosure Method
no setter
type → String
Type of this object
no setter
vpType → String
Accepted Verifiable Presentation type
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toQuery() → String
Returns the base64Url encoded credential request that could be used as query in an uri. It is prefixed with key 'iwce='.
toString() → String
String encoded json-representation of a credential request
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited