Interface ApiKeyGenerator
- All Known Implementing Classes:
DefaultApiKeyGenerator
public interface ApiKeyGenerator
Interface responsible for generating secure, cryptographically random API keys and producing safe
display previews.
-
Method Summary
Modifier and TypeMethodDescriptiongenerate(ApiKeyGenerationRequest request) Generates a new API key based on the provided generation request constraints.
-
Method Details
-
generate
Generates a new API key based on the provided generation request constraints.- Parameters:
request- the request containing configuration details for the key- Returns:
- the result containing the raw key, the hash, and a display-safe preview
-