registerOpentdfConfig

Registers and saves OpenTDF configuration for a Wickr network, enabling attribute-based access control for Wickr through an OpenTDF provider.

Samples


fun main() { 
   //sampleStart 
   // Save OpenTDF config successfully
val resp = wickrClient.registerOpentdfConfig {
    networkId = "12345678"
    clientId = "client123"
    clientSecret = "secret456"
    domain = "https://api.sample.com"
    provider = "virtru"
} 
   //sampleEnd
}

fun main() { 
   //sampleStart 
   // Dry run saving OpenTDF config
val resp = wickrClient.registerOpentdfConfig {
    networkId = "12345678"
    clientId = "client123"
    clientSecret = "secret456"
    domain = "https://api.sample.com"
    provider = "virtru"
    dryRun = true
} 
   //sampleEnd
}