Class HttpDigestConverter
- java.lang.Object
-
- software.amazon.smithy.openapi.fromsmithy.security.HttpDigestConverter
-
- All Implemented Interfaces:
SecuritySchemeConverter<HttpDigestAuthTrait>
public final class HttpDigestConverter extends java.lang.Object implements SecuritySchemeConverter<HttpDigestAuthTrait>
Applies Digest HTTP auth.
-
-
Constructor Summary
Constructors Constructor Description HttpDigestConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityScheme
createSecurityScheme(Context<? extends Trait> context, HttpDigestAuthTrait trait)
Creates an OpenAPI security scheme.java.lang.Class<HttpDigestAuthTrait>
getAuthSchemeType()
Get the U that matches this converter.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.openapi.fromsmithy.SecuritySchemeConverter
createSecurityRequirements, getAuthRequestHeaders, getAuthResponseHeaders, getAuthSchemeId, getOpenApiAuthSchemeName, usesHttpCredentials
-
-
-
-
Method Detail
-
getAuthSchemeType
public java.lang.Class<HttpDigestAuthTrait> getAuthSchemeType()
Description copied from interface:SecuritySchemeConverter
Get the U that matches this converter.- Specified by:
getAuthSchemeType
in interfaceSecuritySchemeConverter<HttpDigestAuthTrait>
- Returns:
- The Smithy security auth scheme ID.
-
createSecurityScheme
public SecurityScheme createSecurityScheme(Context<? extends Trait> context, HttpDigestAuthTrait trait)
Description copied from interface:SecuritySchemeConverter
Creates an OpenAPI security scheme.- Specified by:
createSecurityScheme
in interfaceSecuritySchemeConverter<HttpDigestAuthTrait>
- Parameters:
context
- Conversion context.trait
- Authentication trait to convert.- Returns:
- The generated security scheme
- See Also:
- Security Scheme Object
-
-