@@ -29,8 +29,11 @@ public class CodegenSecurity {
29
29
public String type ;
30
30
public String scheme ;
31
31
public Boolean hasMore , isBasic , isOAuth , isApiKey ;
32
- // is Basic is true for all http authentication type. Those are to differentiate basic and bearer authentication
33
- public Boolean isBasicBasic , isBasicBearer ;
32
+ // is Basic is true for all http authentication type.
33
+ // Those are to differentiate basic and bearer authentication
34
+ // isHttpSignature is to support HTTP signature authorization scheme.
35
+ // https://datatracker.ietf.org/doc/draft-cavage-http-signatures/
36
+ public Boolean isBasicBasic , isBasicBearer , isHttpSignature ;
34
37
public String bearerFormat ;
35
38
public Map <String , Object > vendorExtensions = new HashMap <String , Object >();
36
39
// ApiKey specific
@@ -50,6 +53,7 @@ public CodegenSecurity filterByScopeNames(List<String> filterScopes) {
50
53
filteredSecurity .hasMore = false ;
51
54
filteredSecurity .isBasic = isBasic ;
52
55
filteredSecurity .isBasicBasic = isBasicBasic ;
56
+ filteredSecurity .isHttpSignature = isHttpSignature ;
53
57
filteredSecurity .isBasicBearer = isBasicBearer ;
54
58
filteredSecurity .isApiKey = isApiKey ;
55
59
filteredSecurity .isOAuth = isOAuth ;
@@ -97,6 +101,7 @@ public boolean equals(Object o) {
97
101
Objects .equals (isOAuth , that .isOAuth ) &&
98
102
Objects .equals (isApiKey , that .isApiKey ) &&
99
103
Objects .equals (isBasicBasic , that .isBasicBasic ) &&
104
+ Objects .equals (isHttpSignature , that .isHttpSignature ) &&
100
105
Objects .equals (isBasicBearer , that .isBasicBearer ) &&
101
106
Objects .equals (bearerFormat , that .bearerFormat ) &&
102
107
Objects .equals (vendorExtensions , that .vendorExtensions ) &&
@@ -117,8 +122,9 @@ public boolean equals(Object o) {
117
122
@ Override
118
123
public int hashCode () {
119
124
120
- return Objects .hash (name , type , scheme , hasMore , isBasic , isOAuth , isApiKey , isBasicBasic , isBasicBearer ,
121
- bearerFormat , vendorExtensions , keyParamName , isKeyInQuery , isKeyInHeader , isKeyInCookie , flow ,
125
+ return Objects .hash (name , type , scheme , hasMore , isBasic , isOAuth , isApiKey ,
126
+ isBasicBasic , isHttpSignature , isBasicBearer , bearerFormat , vendorExtensions ,
127
+ keyParamName , isKeyInQuery , isKeyInHeader , isKeyInCookie , flow ,
122
128
authorizationUrl , tokenUrl , scopes , isCode , isPassword , isApplication , isImplicit );
123
129
}
124
130
@@ -133,6 +139,7 @@ public String toString() {
133
139
sb .append (", isOAuth=" ).append (isOAuth );
134
140
sb .append (", isApiKey=" ).append (isApiKey );
135
141
sb .append (", isBasicBasic=" ).append (isBasicBasic );
142
+ sb .append (", isHttpSignature=" ).append (isHttpSignature );
136
143
sb .append (", isBasicBearer=" ).append (isBasicBearer );
137
144
sb .append (", bearerFormat='" ).append (bearerFormat ).append ('\'' );
138
145
sb .append (", vendorExtensions=" ).append (vendorExtensions );
0 commit comments