DidManagementService
class DidManagementService(didContext: DidDslContext, didRegistry: DidMethodRegistry, kms: KeyManagementService, kmsService: KmsService?, defaultDidMethod: String?, ioDispatcher: CoroutineDispatcher)
Domain service for DID management operations.
Extracted from TrustWeave to separate the DID management responsibility into a focused service class. Handles DID creation, resolution, updating, delegation, and key rotation.
Constructors
Link copied to clipboard
constructor(didContext: DidDslContext, didRegistry: DidMethodRegistry, kms: KeyManagementService, kmsService: KmsService?, defaultDidMethod: String?, ioDispatcher: CoroutineDispatcher)
Functions
Link copied to clipboard
suspend fun createDid(method: String? = null, timeout: Duration = 10.seconds, block: DidBuilder.() -> Unit = {}): DidCreationResult
Create a new DID.
Link copied to clipboard
suspend fun createDidWithKey(method: String? = null, timeout: Duration = 10.seconds, block: DidBuilder.() -> Unit = {}): DidCreationWithKeyResult
Create a DID and return both the DID and extracted key ID.
Link copied to clipboard
suspend fun delegate(timeout: Duration = 30.seconds, block: suspend DelegationBuilder.() -> Unit): DelegationChainResult
Delegate authority to another DID.
Link copied to clipboard
Resolve a DID to a DID document.