public final class AwsV4Converter extends java.lang.Object implements SecuritySchemeConverter<SigV4Trait>
Constructor and Description |
---|
AwsV4Converter() |
Modifier and Type | Method and Description |
---|---|
SecurityScheme |
createSecurityScheme(Context<? extends Trait> context,
SigV4Trait trait)
Creates an OpenAPI security scheme.
|
java.util.Set<java.lang.String> |
getAuthRequestHeaders(Context<? extends Trait> context,
SigV4Trait trait)
Gets the names of the headers set on HTTP requests used by this
authentication scheme.
|
java.lang.Class<SigV4Trait> |
getAuthSchemeType()
Get the U that matches this converter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSecurityRequirements, getAuthResponseHeaders, getAuthSchemeId, getOpenApiAuthSchemeName, usesHttpCredentials
public java.lang.Class<SigV4Trait> getAuthSchemeType()
SecuritySchemeConverter
getAuthSchemeType
in interface SecuritySchemeConverter<SigV4Trait>
public SecurityScheme createSecurityScheme(Context<? extends Trait> context, SigV4Trait trait)
SecuritySchemeConverter
createSecurityScheme
in interface SecuritySchemeConverter<SigV4Trait>
context
- Conversion context.trait
- Authentication trait to convert.public java.util.Set<java.lang.String> getAuthRequestHeaders(Context<? extends Trait> context, SigV4Trait trait)
SecuritySchemeConverter
This is useful when integrating with things like CORS.
getAuthRequestHeaders
in interface SecuritySchemeConverter<SigV4Trait>
context
- Context for the conversion.trait
- The auth trait that is being used.