Skip to content

Commit 1c7531f

Browse files
committed
Add copy constructor.
1 parent 3e2e550 commit 1c7531f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/src/main/java/ch/cyberduck/core/OAuthTokens.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ public OAuthTokens(final String accessToken, final String refreshToken, final Lo
3838
this.idToken = idToken;
3939
}
4040

41+
public OAuthTokens(final OAuthTokens copy) {
42+
this.accessToken = copy.accessToken;
43+
this.refreshToken = copy.refreshToken;
44+
this.expiryInMilliseconds = copy.expiryInMilliseconds;
45+
this.idToken = copy.idToken;
46+
}
47+
4148
public boolean validate() {
4249
return StringUtils.isNotEmpty(accessToken);
4350
}

0 commit comments

Comments
 (0)