Wallet Service
class WalletService(credentialScheme: ConstantIndex.CredentialScheme, clientId: String = "https://wallet.a-sit.at/app", redirectUrl: String = "/callback", cryptoService: CryptoService = DefaultCryptoService(), jwsService: JwsService = DefaultJwsService(cryptoService))
Client service to retrieve credentials using OpenID for Verifiable Credential Issuance. Implemented from Draft openid-4-verifiable-credential-issuance-1_0-11, 2023-02-03.
Functions
Link copied to clipboard
Send the result as parameters (either POST or GET) to the server at /authorize (or more specific IssuerMetadata.authorizationEndpointUrl)
Link copied to clipboard
suspend fun createCredentialRequest(tokenResponse: TokenResponseParameters, issuerMetadata: IssuerMetadata): CredentialRequestParameters
Send the result as JSON-serialized content to the server at /credential (or more specific IssuerMetadata.credentialEndpointUrl). Also send along the TokenResponseParameters.accessToken from tokenResponse in HTTP header Authorization as value Bearer accessTokenValue (depending on the TokenResponseParameters.tokenType).
Link copied to clipboard
Send the result as POST parameters (form-encoded)to the server at /token (or more specific IssuerMetadata.tokenEndpointUrl)