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