Class HttpBearerConverter
java.lang.Object
software.amazon.smithy.openapi.fromsmithy.security.HttpBearerConverter
- All Implemented Interfaces:
SecuritySchemeConverter<HttpBearerAuthTrait>
public final class HttpBearerConverter
extends Object
implements SecuritySchemeConverter<HttpBearerAuthTrait>
Uses the Bearer scheme of the Authentication header.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSecurityScheme(Context<? extends Trait> context, HttpBearerAuthTrait trait) Creates an OpenAPI security scheme.Get the U that matches this converter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.smithy.openapi.fromsmithy.SecuritySchemeConverter
createSecurityRequirements, getAuthRequestHeaders, getAuthResponseHeaders, getAuthSchemeId, getOpenApiAuthSchemeName, usesHttpCredentials
-
Constructor Details
-
HttpBearerConverter
public HttpBearerConverter()
-
-
Method Details
-
getAuthSchemeType
Description copied from interface:SecuritySchemeConverterGet the U that matches this converter.- Specified by:
getAuthSchemeTypein interfaceSecuritySchemeConverter<HttpBearerAuthTrait>- Returns:
- The Smithy security auth scheme ID.
-
createSecurityScheme
public SecurityScheme createSecurityScheme(Context<? extends Trait> context, HttpBearerAuthTrait trait) Description copied from interface:SecuritySchemeConverterCreates an OpenAPI security scheme.- Specified by:
createSecuritySchemein interfaceSecuritySchemeConverter<HttpBearerAuthTrait>- Parameters:
context- Conversion context.trait- Authentication trait to convert.- Returns:
- The generated security scheme
- See Also:
-