Package net.officefloor.web.jwt.validate
Interface JwtValidateKeyCollector
public interface JwtValidateKeyCollector
Collects
JwtValidateKey instances for JWT validation.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionObtains the currentJwtValidateKeyinstances.voidsetFailure(Throwable cause, long timeToNextCheck, TimeUnit unit) Indicates failure in retrieving theJwtValidateKeyinstances.voidsetKeys(JwtValidateKey... keys) Specifies theJwtValidateKeyinstances.
-
Method Details
-
getCurrentKeys
JwtValidateKey[] getCurrentKeys()Obtains the currentJwtValidateKeyinstances.- Returns:
- Current
JwtValidateKeyinstances.
-
setKeys
Specifies theJwtValidateKeyinstances.- Parameters:
keys-JwtValidateKeyinstances.
-
setFailure
Indicates failure in retrieving theJwtValidateKeyinstances.- Parameters:
cause- Cause of the failure.timeToNextCheck- Allows overriding the default poll refresh interval. This typically allows retrying earlier than the default refresh period.unit-TimeUnitfor the next time to check.
-