CredentialIssuanceService
class CredentialIssuanceService(credentialService: CredentialService, revocationManager: CredentialRevocationManager?, didResolver: DidResolver?, defaultProofType: ProofType, ioDispatcher: CoroutineDispatcher, autoAnchor: Boolean = false, defaultChain: String? = null, blockchainService: BlockchainService? = null)
Use case for credential issuance.
Orchestrates CredentialService to issue verifiable credentials. Depends only on abstractions (ports)—follows Dependency Inversion Principle.
Constructors
Link copied to clipboard
constructor(credentialService: CredentialService, revocationManager: CredentialRevocationManager?, didResolver: DidResolver?, defaultProofType: ProofType, ioDispatcher: CoroutineDispatcher, autoAnchor: Boolean = false, defaultChain: String? = null, blockchainService: BlockchainService? = null)
Functions
Link copied to clipboard
suspend fun issue(timeout: Duration = 30.seconds, block: IssuanceBuilder.() -> Unit): IssuanceResult
Issue a verifiable credential using the configured service.