Class BasicOpenApiSecurityExtension
- java.lang.Object
-
- net.officefloor.web.openapi.security.BasicOpenApiSecurityExtension
-
- All Implemented Interfaces:
ServiceFactory<OpenApiSecurityExtension>
,OpenApiSecurityExtension
,OpenApiSecurityExtensionServiceFactory
public class BasicOpenApiSecurityExtension extends java.lang.Object implements OpenApiSecurityExtension, OpenApiSecurityExtensionServiceFactory
OpenApiSecurityExtension
forbasic
authentication.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BASIC_HTTP_SECURITY_SOURCE_CLASS_NAME
-
Constructor Summary
Constructors Constructor Description BasicOpenApiSecurityExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenApiSecurityExtension
createService(ServiceContext context)
Creates the service.void
extend(OpenApiSecurityExtensionContext context)
Extends the security.
-
-
-
Field Detail
-
BASIC_HTTP_SECURITY_SOURCE_CLASS_NAME
public static final java.lang.String BASIC_HTTP_SECURITY_SOURCE_CLASS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createService
public OpenApiSecurityExtension createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<OpenApiSecurityExtension>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
extend
public void extend(OpenApiSecurityExtensionContext context) throws java.lang.Exception
Description copied from interface:OpenApiSecurityExtension
Extends the security.- Specified by:
extend
in interfaceOpenApiSecurityExtension
- Parameters:
context
-OpenApiSecurityExtensionContext
.- Throws:
java.lang.Exception
- If fails to extend.
-
-