CredentialIssuerDataProvider

Functions

Link copied to clipboard
abstract fun getCredential(userInfo: OidcUserInfoExtended, subjectPublicKey: CryptoPublicKey, credentialScheme: ConstantIndex.CredentialScheme, representation: ConstantIndex.CredentialRepresentation, claimNames: Collection<String>?): KmmResult<CredentialToBeIssued>

Gets called with the user authorized in userInfo, a resolved credentialScheme, the holder key in subjectPublicKey, and the requested credential representation. Callers may optionally define some attribute names from ConstantIndex.CredentialScheme.claimNames in claimNames to request only some claims (if supported by the representation).