Skip to content

Commit

Permalink
make changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gs-gunjan authored Jun 27, 2024
1 parent 9ec3495 commit df9146b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ public class GitLabTokenResponse
{
private final GitLabToken accessToken;
private final String refreshToken;
private final long expiryInSecs;
private final long expiresInSecs;

protected GitLabTokenResponse(String accessToken, String refreshToken, Integer expiryInSecs)
protected GitLabTokenResponse(String accessToken, String refreshToken, Integer expiresInSecs)
{
this.accessToken = GitLabToken.newGitLabToken(TokenType.OAUTH2_ACCESS, accessToken);
this.refreshToken = refreshToken;
this.expiryInSecs = expiryInSecs != null ? expiryInSecs.longValue() : 0L;
this.expiresInSecs = expiresInSecs != null ? expiresInSecs.longValue() : 0L;
}

@Override
Expand All @@ -45,13 +45,13 @@ public boolean equals(Object other)
GitLabTokenResponse that = (GitLabTokenResponse) other;
return this.accessToken.equals(that.accessToken) &&
this.refreshToken.equals(that.refreshToken) &&
this.expiryInSecs == that.expiryInSecs;
this.expiresInSecs == that.expiresInSecs;
}

@Override
public int hashCode()
{
return this.accessToken.hashCode() + 31 * (this.refreshToken.hashCode() + 31 * Long.hashCode(this.expiryInSecs));
return this.accessToken.hashCode() + 31 * (this.refreshToken.hashCode() + 31 * Long.hashCode(this.expiresInSecs));
}

public GitLabToken getAccessToken()
Expand All @@ -64,8 +64,8 @@ public String getRefreshToken()
return this.refreshToken;
}

public long getExpiryInSecs()
public long getExpiresInSecs()
{
return this.expiryInSecs;
return this.expiresInSecs;
}
}

0 comments on commit df9146b

Please sign in to comment.