Interface OAuthServerClientRepository
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Application-owned lookup of trusted, pre-registered client configuration.
Implementations must be thread safe and honor the remaining budget. Absence means a genuinely unknown client;
exceptions, null results and exhausted budgets are infrastructure faults, never an unknown-client decision.
A returned registration must retain the exact requested client identifier.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionfindRegisteredClient(@NonNull String clientId, @NonNull Duration remainingTime) Looks up trusted registration without interpreting the identifier as an outbound URL.
-
Method Details
-
findRegisteredClient
@NonNull Optional<@NonNull OAuthServerClientRegistration> findRegisteredClient(@NonNull String clientId, @NonNull Duration remainingTime) Looks up trusted registration without interpreting the identifier as an outbound URL.- Parameters:
clientId- the exact client identifierremainingTime- the cooperative remaining operation budget- Returns:
- the registration, or genuine absence
- Since:
- 1.0.0
-