Interface ClientAssertionKeyProvider
Supplies one immutable key and header snapshot per assertion POST. Implementations must be thread-safe,
cooperate with the remaining budget and interruption, and return promptly. Execution is on the calling thread.
No key lookup occurs at client construction or on a cached token result.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionUses one fixed immutable key snapshot.getSigningKey(@NonNull Duration remainingBudget) Selects the key for one outgoing assertion.
-
Method Details
-
getSigningKey
Selects the key for one outgoing assertion.- Parameters:
remainingBudget- the positive time left in the original operation- Returns:
- one immutable signer and identifier snapshot
- Since:
- 1.0.0
-
fromKey
@CheckReturnValue static @NonNull ClientAssertionKeyProvider fromKey(@NonNull ClientAssertionSigningKey key) Uses one fixed immutable key snapshot.- Parameters:
key- the snapshot- Returns:
- a thread-safe fixed provider
- Since:
- 1.0.0
-