Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.46 KB

File metadata and controls

61 lines (42 loc) · 1.46 KB
code type title description
true
page
CreateMyCredentials
Create the current user's credentials for the specified strategy.

CreateMyCredentials

Creates the current user's credentials for the specified strategy.

:::: tabs ::: tab Java

Arguments

public CompletableFuture<Map<String, Object>> createMyCredentials(final String strategy,
  final Map<String, Object> credentials)
  throws NotConnectedException, InternalException
Argument Type Description
strategy
String
Strategy to use
credentials
Map<String, Object>
Map representing the credentials

Return

A Map representing the new credentials.

Usage

<<< ./snippets/create-my-credentials-java.java

::: ::: tab Kotlin

Arguments

fun createMyCredentials(
      strategy: String,
      credentials: Map<String, Any>): CompletableFuture<Map<String, Any?>>
Argument Type Description
strategy
String
Strategy to use
credentials
Map<String, Any?>
Map representing the credentials

Return

A Map representing the new credentials.

Usage

<<< ./snippets/create-my-credentials-kotlin.kt

::: ::::