Class PublishedSigningKeysUseCase
java.lang.Object
com.irurueta.authserver.authorization.application.keys.PublishedSigningKeysUseCase
Use case that finds the keys to publish in the JWKS: the active key, the next key (so relying parties can cache it
before it signs) and every retired key whose tokens may still be unexpired.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClockSource of the current time.private final SigningKeyRepositoryPort that stores the keys.private final SigningKeyRetentionDecides how long a retired key stays published. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
signingKeyRepository
Port that stores the keys. -
clock
Source of the current time. -
signingKeyRetention
Decides how long a retired key stays published.
-
-
Constructor Details
-
PublishedSigningKeysUseCase
public PublishedSigningKeysUseCase()
-
-
Method Details
-
execute
Finds the keys to publish.- Returns:
- the active, next and still-valid retired keys.
-