androidMain.aws.sdk.kotlin.crt.auth.credentials.ProfileCredentialsProviderJVM.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-crt-kotlin-android Show documentation
Show all versions of aws-crt-kotlin-android Show documentation
Kotlin Multiplatform bindings for AWS SDK Common Runtime
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.sdk.kotlin.crt.auth.credentials
import software.amazon.awssdk.crt.auth.credentials.CredentialsProvider as CredentialsProviderJni
import software.amazon.awssdk.crt.auth.credentials.ProfileCredentialsProvider as ProfileCredentialsProviderJni
public actual class ProfileCredentialsProvider
internal actual constructor(
builder: ProfileCredentialsProviderBuilder,
) : JniCredentialsProvider(),
CredentialsProvider {
public actual companion object {}
override val jniCredentials: CredentialsProviderJni =
ProfileCredentialsProviderJni
.builder()
.withClientBootstrap(builder.clientBootstrap?.jniBootstrap)
.withTlsContext(builder.tlsContext?.jniCtx)
.withProfileName(builder.profileName)
.withConfigFileNameOverride(builder.configFileName)
.withCredentialsFileNameOverride(builder.credentialsFileName)
.build()
}