File tree Expand file tree Collapse file tree 3 files changed +30
-3
lines changed
main/java/software/amazon/awssdk/codegen/poet/authscheme
test/resources/software/amazon/awssdk/codegen/poet/authscheme
core/http-auth-spi/src/main/java/software/amazon/awssdk/http/auth/spi Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 27
27
import software .amazon .awssdk .codegen .model .intermediate .IntermediateModel ;
28
28
import software .amazon .awssdk .codegen .poet .ClassSpec ;
29
29
import software .amazon .awssdk .codegen .poet .PoetUtils ;
30
+ import software .amazon .awssdk .http .auth .spi .AuthSchemeProvider ;
30
31
import software .amazon .awssdk .http .auth .spi .HttpAuthOption ;
31
32
32
33
public class AuthSchemeProviderSpec implements ClassSpec {
@@ -46,7 +47,7 @@ public ClassName className() {
46
47
@ Override
47
48
public TypeSpec poetSpec () {
48
49
return PoetUtils .createInterfaceBuilder (className ())
49
- // .addSuperinterface(EndpointProvider .class) // TODO: reviewer: do we want a marker interface?
50
+ .addSuperinterface (AuthSchemeProvider .class )
50
51
.addModifiers (Modifier .PUBLIC )
51
52
.addAnnotation (SdkPublicApi .class )
52
53
.addJavadoc (interfaceJavadoc ())
Original file line number Diff line number Diff line change 4
4
import java .util .function .Consumer ;
5
5
import software .amazon .awssdk .annotations .Generated ;
6
6
import software .amazon .awssdk .annotations .SdkPublicApi ;
7
+ import software .amazon .awssdk .http .auth .spi .AuthSchemeProvider ;
7
8
import software .amazon .awssdk .http .auth .spi .HttpAuthOption ;
8
9
import software .amazon .awssdk .services .query .authscheme .internal .DefaultQueryAuthSchemeProvider ;
9
10
10
-
11
11
/**
12
12
* An auth scheme provider for Query. The auth scheme provider takes a set of parameters using
13
13
* {@link QueryAuthSchemeParams}, and resolves a list of {@link HttpAuthOption} based on the given parameters.
14
14
*/
15
15
@ Generated ("software.amazon.awssdk:codegen" )
16
16
@ SdkPublicApi
17
- public interface QueryAuthSchemeProvider {
17
+ public interface QueryAuthSchemeProvider extends AuthSchemeProvider {
18
18
/**
19
19
* Resolve the auth schemes based on the given set of parameters.
20
20
*/
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License").
5
+ * You may not use this file except in compliance with the License.
6
+ * A copy of the License is located at
7
+ *
8
+ * http://aws.amazon.com/apache2.0
9
+ *
10
+ * or in the "license" file accompanying this file. This file is distributed
11
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12
+ * express or implied. See the License for the specific language governing
13
+ * permissions and limitations under the License.
14
+ */
15
+
16
+ package software .amazon .awssdk .http .auth .spi ;
17
+
18
+ import software .amazon .awssdk .annotations .SdkPublicApi ;
19
+
20
+ /**
21
+ * A marker interface for an auth scheme provider. An auth scheme provider takes as input a set of service-specific parameters,
22
+ * and resolves a list of {@link HttpAuthOption} based on the given parameters.
23
+ */
24
+ @ SdkPublicApi
25
+ public interface AuthSchemeProvider {
26
+ }
You can’t perform that action at this time.
0 commit comments