Class AuthResolutionContext
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.authentication.AuthResolutionContext
Context information for resolving the appropriate authentication provider
for a request.
This context carries information about the request that can be used to determine which scoped authentication provider should be used. The resolver checks scopes in order of specificity (API/RouteProvider → InstanceDefault).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for apiMetaDataGetter for apiNameGetter for requestPathGetter for routeMetaDataGetter for routeProviderNamevoidsetApiMetaData(Object apiMetaData) Setter for apiMetaDatavoidsetApiName(String apiName) Setter for apiNamevoidsetRequestPath(String requestPath) Setter for requestPathvoidsetRouteMetaData(Object routeMetaData) Setter for routeMetaDatavoidsetRouteProviderName(String routeProviderName) Setter for routeProviderNamewithApiMetaData(Object apiMetaData) Fluent setter for apiMetaDatawithApiName(String apiName) Fluent setter for apiNamewithRequestPath(String requestPath) Fluent setter for requestPathwithRouteMetaData(Object routeMetaData) Fluent setter for routeMetaDatawithRouteProviderName(String routeProviderName) Fluent setter for routeProviderName
-
Constructor Details
-
AuthResolutionContext
public AuthResolutionContext()Default constructor
-
-
Method Details
-
getApiName
-
setApiName
-
withApiName
Fluent setter for apiName- Parameters:
apiName- The API name- Returns:
- This context for method chaining
-
getApiMetaData
Getter for apiMetaDataNote: Returns Object to avoid module dependencies. Cast to
ApiInstanceMetaDatawhen used in code that has access to the qqq-middleware-api module.- Returns:
- The API metadata (if this is an API request, should be ApiInstanceMetaData)
-
setApiMetaData
Setter for apiMetaData- Parameters:
apiMetaData- The API metadata (should be ApiInstanceMetaData)
-
withApiMetaData
Fluent setter for apiMetaDataNote: Uses reflection to extract name if available.
- Parameters:
apiMetaData- The API metadata (should be ApiInstanceMetaData)- Returns:
- This context for method chaining
-
getRouteProviderName
Getter for routeProviderName- Returns:
- The route provider name (if this is a route provider request)
-
setRouteProviderName
Setter for routeProviderName- Parameters:
routeProviderName- The route provider name
-
withRouteProviderName
Fluent setter for routeProviderName- Parameters:
routeProviderName- The route provider name- Returns:
- This context for method chaining
-
getRouteMetaData
Getter for routeMetaDataNote: Returns Object to avoid module dependencies. Cast to
JavalinRouteProviderMetaDatawhen used in code that has access to the qqq-middleware-javalin module.- Returns:
- The route provider metadata (if this is a route provider request, should be JavalinRouteProviderMetaData)
-
setRouteMetaData
Setter for routeMetaData- Parameters:
routeMetaData- The route provider metadata (should be JavalinRouteProviderMetaData)
-
withRouteMetaData
Fluent setter for routeMetaDataNote: Uses reflection to extract name if available.
- Parameters:
routeMetaData- The route provider metadata (should be JavalinRouteProviderMetaData)- Returns:
- This context for method chaining
-
getRequestPath
Getter for requestPath- Returns:
- The request path (for diagnostics/logging)
-
setRequestPath
Setter for requestPath- Parameters:
requestPath- The request path
-
withRequestPath
Fluent setter for requestPath- Parameters:
requestPath- The request path- Returns:
- This context for method chaining
-