Package net.officefloor.web.jwt.validate
Interface JwtValidateKeyCollector
-
public interface JwtValidateKeyCollectorCollectsJwtValidateKeyinstances for JWT validation.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JwtValidateKey[]getCurrentKeys()Obtains the currentJwtValidateKeyinstances.voidsetFailure(java.lang.Throwable cause, long timeToNextCheck, java.util.concurrent.TimeUnit unit)Indicates failure in retrieving theJwtValidateKeyinstances.voidsetKeys(JwtValidateKey... keys)Specifies theJwtValidateKeyinstances.
-
-
-
Method Detail
-
getCurrentKeys
JwtValidateKey[] getCurrentKeys()
Obtains the currentJwtValidateKeyinstances.- Returns:
- Current
JwtValidateKeyinstances.
-
setKeys
void setKeys(JwtValidateKey... keys)
Specifies theJwtValidateKeyinstances.- Parameters:
keys-JwtValidateKeyinstances.
-
setFailure
void setFailure(java.lang.Throwable cause, long timeToNextCheck, java.util.concurrent.TimeUnit unit)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.
-
-