Class TokenRevokedInterceptor
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.interceptors.TokenRevokedInterceptor
-
- All Implemented Interfaces:
okhttp3.Interceptor
public class TokenRevokedInterceptor extends java.lang.Object implements okhttp3.Interceptor
Class for intercepting Token Revoked and Invalid Token Scenarios.Looks for the following Error Codes:
- 4001: Invalid token - happens when an invalid Access Token was used
- 4003: Revoked token - happens when the current user is deactivated from the console
TokenRevokedInterceptor.TokenRevokedListener.onTokenRevoked(int)
will be called.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TokenRevokedInterceptor.TokenRevokedListener
-
Constructor Summary
Constructors Constructor Description TokenRevokedInterceptor(TokenRevokedInterceptor.TokenRevokedListener onTokenRevoked)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.Response
intercept(okhttp3.Interceptor.Chain chain)
-
-
-
Constructor Detail
-
TokenRevokedInterceptor
public TokenRevokedInterceptor(TokenRevokedInterceptor.TokenRevokedListener onTokenRevoked)
-
-