Skip to content

Commit c689ff5

Browse files
committed
Clean up
1 parent 344f118 commit c689ff5

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/core/RuntimeTypes.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ object RuntimeTypes {
170170

171171
object Hashing : RuntimeTypePackage(KotlinDependency.CORE, "hashing") {
172172
val Sha256 = symbol("Sha256")
173-
val toHashFunctionOrThrow = symbol("toHashFunctionOrThrow")
174-
val isSupportedForFlexibleChecksums = symbol("isSupportedForFlexibleChecksums")
175173
}
176174

177175
object IO : RuntimeTypePackage(KotlinDependency.CORE, "io") {

runtime/auth/aws-signing-common/api/aws-signing-common.api

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public final class aws/smithy/kotlin/runtime/auth/awssigning/AwsSigningConfig {
7171
public static final field Companion Laws/smithy/kotlin/runtime/auth/awssigning/AwsSigningConfig$Companion;
7272
public fun <init> (Laws/smithy/kotlin/runtime/auth/awssigning/AwsSigningConfig$Builder;)V
7373
public final fun getAlgorithm ()Laws/smithy/kotlin/runtime/auth/awssigning/AwsSigningAlgorithm;
74-
public final fun getChecksum ()Lkotlin/Pair;
7574
public final fun getCredentials ()Laws/smithy/kotlin/runtime/auth/awscredentials/Credentials;
7675
public final fun getExpiresAfter-FghU774 ()Lkotlin/time/Duration;
7776
public final fun getHashSpecification ()Laws/smithy/kotlin/runtime/auth/awssigning/HashSpecification;
@@ -92,7 +91,6 @@ public final class aws/smithy/kotlin/runtime/auth/awssigning/AwsSigningConfig$Bu
9291
public fun <init> ()V
9392
public final fun build ()Laws/smithy/kotlin/runtime/auth/awssigning/AwsSigningConfig;
9493
public final fun getAlgorithm ()Laws/smithy/kotlin/runtime/auth/awssigning/AwsSigningAlgorithm;
95-
public final fun getChecksum ()Lkotlin/Pair;
9694
public final fun getCredentials ()Laws/smithy/kotlin/runtime/auth/awscredentials/Credentials;
9795
public final fun getExpiresAfter-FghU774 ()Lkotlin/time/Duration;
9896
public final fun getHashSpecification ()Laws/smithy/kotlin/runtime/auth/awssigning/HashSpecification;
@@ -107,7 +105,6 @@ public final class aws/smithy/kotlin/runtime/auth/awssigning/AwsSigningConfig$Bu
107105
public final fun getSigningDate ()Laws/smithy/kotlin/runtime/time/Instant;
108106
public final fun getUseDoubleUriEncode ()Z
109107
public final fun setAlgorithm (Laws/smithy/kotlin/runtime/auth/awssigning/AwsSigningAlgorithm;)V
110-
public final fun setChecksum (Lkotlin/Pair;)V
111108
public final fun setCredentials (Laws/smithy/kotlin/runtime/auth/awscredentials/Credentials;)V
112109
public final fun setExpiresAfter-BwNAW2A (Lkotlin/time/Duration;)V
113110
public final fun setHashSpecification (Laws/smithy/kotlin/runtime/auth/awssigning/HashSpecification;)V

runtime/auth/aws-signing-common/common/src/aws/smithy/kotlin/runtime/auth/awssigning/AwsSigningConfig.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,6 @@ public class AwsSigningConfig(builder: Builder) {
172172
*/
173173
public val logRequest: Boolean = builder.logRequest
174174

175-
/**
176-
* Determines the checksum to add to the canonical request query parameters before signing.
177-
* The first element of the pair represents the checksum name, the second represents the checksum value.
178-
*/
179-
public val checksum: Pair<String, String>? = builder.checksum
180-
181175
public fun toBuilder(): Builder = Builder().also {
182176
it.region = region
183177
it.service = service
@@ -193,7 +187,6 @@ public class AwsSigningConfig(builder: Builder) {
193187
it.credentials = credentials
194188
it.expiresAfter = expiresAfter
195189
it.logRequest = logRequest
196-
it.checksum = checksum
197190
}
198191

199192
public class Builder {
@@ -211,7 +204,6 @@ public class AwsSigningConfig(builder: Builder) {
211204
public var credentials: Credentials? = null
212205
public var expiresAfter: Duration? = null
213206
public var logRequest: Boolean = false
214-
public var checksum: Pair<String, String>? = null
215207

216208
public fun build(): AwsSigningConfig = AwsSigningConfig(this)
217209
}

runtime/auth/aws-signing-default/common/src/aws/smithy/kotlin/runtime/auth/awssigning/Canonicalizer.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,6 @@ internal class DefaultCanonicalizer(private val sha256Supplier: HashSupplier = :
120120
param("X-Amz-Expires", config.expiresAfter?.inWholeSeconds?.toString(), signViaQueryParams)
121121
param("X-Amz-Security-Token", sessionToken, !config.omitSessionToken) // Add pre-sig if omitSessionToken=false
122122

123-
// Add checksum as query param
124-
if (config.signatureType == AwsSignatureType.HTTP_REQUEST_VIA_QUERY_PARAMS && config.checksum != null) {
125-
param(config.checksum!!.first, config.checksum!!.second)
126-
}
127-
128123
val headers = builder
129124
.headers
130125
.entries()

0 commit comments

Comments
 (0)