Class CachingJwtTokenProvider
- java.lang.Object
-
- cz.diribet.chystat.api.client.jwt.CachingJwtTokenProvider
-
- All Implemented Interfaces:
JwtTokenProvider
- Direct Known Subclasses:
DefaultJwtTokenProvider
public abstract class CachingJwtTokenProvider extends Object implements JwtTokenProvider
JWT token provider that caches the created JWT tokens for 9 minutes (10 minutes is the validity of the JWT token)
-
-
Constructor Summary
Constructors Constructor Description CachingJwtTokenProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetFreshJwtToken()StringgetJwtToken()
-
-
-
Method Detail
-
getJwtToken
public String getJwtToken()
- Specified by:
getJwtTokenin interfaceJwtTokenProvider
-
getFreshJwtToken
protected abstract String getFreshJwtToken()
-
-