Package io.jmix.email.authentication
Interface EmailRefreshTokenManager
- All Known Implementing Classes:
EmailRefreshTokenManagerImpl
public interface EmailRefreshTokenManager
Interface defining methods for management of refresh token used for OAuth2 authentication with SMTP server.
-
Method Summary
Modifier and TypeMethodDescriptionGets current value of refresh token.Loads refresh token instance from database.storeRefreshTokenValue(String refreshTokenValue) Stores provided token value to database.
-
Method Details
-
storeRefreshTokenValue
Stores provided token value to database. It will override previous value of refresh token.- Parameters:
refreshTokenValue- token value- Returns:
- stored
RefreshTokeninstance
-
getRefreshTokenValue
String getRefreshTokenValue()Gets current value of refresh token.- Returns:
- token value stored in database. If no token value is stored - return token value from application property 'jmix.email.oauth2.refreshToken'
-
loadRefreshToken
Loads refresh token instance from database.- Returns:
RefreshTokeninstance stored in database or null if no token is stored
-