Package at.jku.dke.etutor.task_app.auth
Class ApiKeyConfiguration
java.lang.Object
at.jku.dke.etutor.task_app.auth.ApiKeyConfiguration
Loads the clients from the application-properties.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents an API-key. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the API-key with the specified key.Gets the API-keys.void
setApiKeys
(List<ApiKeyConfiguration.ApiKey> apiKeys) Sets the API-keys.
-
Constructor Details
-
ApiKeyConfiguration
public ApiKeyConfiguration()Creates a new instance of classApiKeyConfiguration
.
-
-
Method Details
-
getApiKeys
Gets the API-keys.- Returns:
- The available API keys.
-
setApiKeys
Sets the API-keys.- Parameters:
apiKeys
- The API-keys.
-
getApiKey
Returns the API-key with the specified key.- Parameters:
key
- The API-key to find.- Returns:
- The
ApiKeyConfiguration.ApiKey
instance or an empty result if no key was found.
-