KeyRotationBuilder
class KeyRotationBuilder(didContext: DidDslContext, kms: KeyManagementService, kmsService: KmsService, ioDispatcher: CoroutineDispatcher = Dispatchers.IO)
Key Rotation Builder DSL.
Provides a fluent API for rotating keys in DID documents. Automatically generates new keys and updates DID documents.
This is in the trust module because it requires both DID and KMS operations.
Example Usage:
val trustWeave: TrustWeave = ...
val updatedDoc = trustWeave.rotateKey {
did("did:key:issuer")
algorithm("Ed25519")
removeOldKey("key-1")
}Content copied to clipboard
Constructors
Link copied to clipboard
constructor(didContext: DidDslContext, kms: KeyManagementService, kmsService: KmsService, ioDispatcher: CoroutineDispatcher = Dispatchers.IO)