commonMain.aws.sdk.kotlin.crt.auth.credentials.Credentials.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
/**
* Represents a set of AWS credentials
*/
public data class Credentials(val accessKeyId: String, val secretAccessKey: String, val sessionToken: String?) {
public constructor(accessKeyId: ByteArray, secretAccessKey: ByteArray, sessionToken: ByteArray?) :
this(accessKeyId.decodeToString(), secretAccessKey.decodeToString(), sessionToken?.decodeToString())
}