Skip to content

Commit a284114

Browse files
adwsinghrhernandez35
authored andcommitted
Add SDKV2 Auth Adapters
1 parent abd468a commit a284114

File tree

38 files changed

+227
-45
lines changed

38 files changed

+227
-45
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package software.amazon.smithy.java.client.core.auth;
6+
package software.amazon.smithy.java.auth.api;
77

88
/**
99
* Exception thrown by auth or identity resolvers.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package software.amazon.smithy.java.client.core.auth.identity;
6+
package software.amazon.smithy.java.auth.api.identity;
77

8-
import software.amazon.smithy.java.client.core.auth.AuthException;
8+
import software.amazon.smithy.java.auth.api.AuthException;
99

1010
/**
1111
* Thrown when an {@link IdentityResolver} is unable to resolve an identity.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package software.amazon.smithy.java.client.core.auth.identity;
6+
package software.amazon.smithy.java.auth.api.identity;
77

88
import java.util.List;
99
import java.util.concurrent.CompletableFuture;
1010
import software.amazon.smithy.java.auth.api.AuthProperties;
11-
import software.amazon.smithy.java.auth.api.identity.Identity;
1211

1312
/**
1413
* Interface for loading {@link Identity} that is used for authentication.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package software.amazon.smithy.java.client.core.auth.identity;
6+
package software.amazon.smithy.java.auth.api.identity;
77

88
import java.util.ArrayList;
99
import java.util.List;
1010
import java.util.Objects;
1111
import java.util.concurrent.CompletableFuture;
1212
import software.amazon.smithy.java.auth.api.AuthProperties;
13-
import software.amazon.smithy.java.auth.api.identity.Identity;
1413

1514
final class IdentityResolverChain<IdentityT extends Identity> implements IdentityResolver<IdentityT> {
1615
private final Class<IdentityT> identityClass;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package software.amazon.smithy.java.client.core.auth.identity;
6+
package software.amazon.smithy.java.auth.api.identity;
77

88
import java.util.Arrays;
99
import java.util.HashMap;
1010
import java.util.List;
1111
import java.util.Map;
12-
import software.amazon.smithy.java.auth.api.identity.Identity;
1312

1413
/**
1514
* An interface to allow retrieving an {@link IdentityResolver} based on the identity class.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package software.amazon.smithy.java.client.core.auth.identity;
6+
package software.amazon.smithy.java.auth.api.identity;
77

88
import java.util.Objects;
9-
import software.amazon.smithy.java.auth.api.identity.Identity;
109

1110
/**
1211
* The result of attempting to resolve an identity.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package software.amazon.smithy.java.client.core.auth.identity;
6+
package software.amazon.smithy.java.auth.api.identity;
77

88
import java.util.Objects;
99
import java.util.concurrent.CompletableFuture;
1010
import software.amazon.smithy.java.auth.api.AuthProperties;
11-
import software.amazon.smithy.java.auth.api.identity.Identity;
1211

1312
final class StaticIdentityResolver<IdentityT extends Identity> implements IdentityResolver<IdentityT> {
1413

aws/aws-auth-api/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
plugins {
2+
id("smithy-java.module-conventions")
3+
}
4+
5+
description = "This module provides the Smithy Java AWS Auth API"
6+
7+
extra["displayName"] = "Smithy :: Java :: AWS :: Auth :: API"
8+
extra["moduleName"] = "software.amazon.smithy.java.aws.auth.api"
9+
10+
dependencies {
11+
api(project(":auth-api"))
12+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package software.amazon.smithy.java.aws.client.core.identity;
6+
package software.amazon.smithy.java.aws.auth.api.identity;
77

88
import java.time.Instant;
99
import java.util.Objects;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package software.amazon.smithy.java.aws.client.core.identity;
6+
package software.amazon.smithy.java.aws.auth.api.identity;
77

88
import java.time.Instant;
99

0 commit comments

Comments
 (0)