Class Authorization
java.lang.Object
dev.vernite.vernite.integration.git.github.model.Authorization
Entity for representing GitHub authorization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrefreshToken(OauthToken token) Refresh token.booleanvoidupdate(OauthToken token, GitHubUser user, User userEntity) Updates authorization with new data.
-
Constructor Details
-
Authorization
public Authorization()
-
-
Method Details
-
update
Updates authorization with new data.- Parameters:
token- OAuth tokenuser- GitHub useruserEntity- user entity
-
refreshToken
Refresh token.- Parameters:
token- Oauth token
-
shouldRefreshToken
public boolean shouldRefreshToken()- Returns:
- true if token should be refreshed
-