Interface CredentialsProvider
- All Known Implementing Classes:
ConfigCredentialsProvider
public interface CredentialsProvider
Provider for security credentials. Clients can implement this interface to control how to provide security credentials in
runtime.
Annotate your bean with @RequestScope (or @Dependant) and @Priority(1).
-
Method Summary
Modifier and TypeMethodDescriptiongetApiKey(CredentialsContext input) Gets the API Key given the OpenAPI definition and security schemaGets the password given the OpenAPI definition and security schemaGets the username given the OpenAPI definition and security schemagetBearerToken(CredentialsContext input) Gets the Bearer Token given the OpenAPI definition and security schemaGets the OAuth2 Bearer Token given the OpenAPI definition and security schema
-
Method Details
-
getApiKey
Gets the API Key given the OpenAPI definition and security schema- Parameters:
input- the input data available to the method- Returns:
- the API Key to use when filtering the request
-
getBasicUsername
Gets the username given the OpenAPI definition and security schema- Parameters:
input- the input data available to the method- Returns:
- the username to use when filtering the request
-
getBasicPassword
Gets the password given the OpenAPI definition and security schema- Parameters:
input- the input data available to the method- Returns:
- the password to use when filtering the request
-
getBearerToken
Gets the Bearer Token given the OpenAPI definition and security schema- Parameters:
input- the input data available to the method- Returns:
- the Bearer Token to use when filtering the request
-
getOauth2BearerToken
Gets the OAuth2 Bearer Token given the OpenAPI definition and security schema- Parameters:
input- the input data available to the method- Returns:
- the Bearer Token to use when filtering the request
-