CredentialIssuer
class CredentialIssuer(authorizationService: OAuth2AuthorizationServerAdapter, issuer: Issuer, credentialSchemes: Set<ConstantIndex.CredentialScheme>, publicContext: String = "https://wallet.a-sit.at/credential-issuer", credentialEndpointPath: String = "/credential", credentialProvider: CredentialIssuerDataProvider)(source)
Server implementation to issue credentials using OID4VCI.
Implemented from OpenID for Verifiable Credential Issuance , Draft 14, 2024-08-21.
Constructors
Link copied to clipboard
constructor(authorizationService: OAuth2AuthorizationServerAdapter, issuer: Issuer, credentialSchemes: Set<ConstantIndex.CredentialScheme>, publicContext: String = "https://wallet.a-sit.at/credential-issuer", credentialEndpointPath: String = "/credential", credentialProvider: CredentialIssuerDataProvider)
Properties
Link copied to clipboard
Serve this result JSON-serialized under /.well-known/jwt-vc-issuer
(see OpenIdConstants.PATH_WELL_KNOWN_JWT_VC_ISSUER_METADATA)
Link copied to clipboard
Serve this result JSON-serialized under /.well-known/openid-credential-issuer
(see OpenIdConstants.PATH_WELL_KNOWN_CREDENTIAL_ISSUER)
Functions
Link copied to clipboard
suspend fun credential(accessToken: String, params: CredentialRequestParameters): KmmResult<CredentialResponseParameters>
Verifies the accessToken to contain a token from authorizationService, verifies the proof sent by the client (must contain a nonce sent from authorizationService), and issues credentials to the client.
Link copied to clipboard
Offer all credentialSchemes to clients.
Link copied to clipboard
Offer all credentialSchemes to clients.