only our entity version may be stored in our storage layer. removed TODO.
parent
c5743dc810
commit
e9c246808f
|
@ -217,7 +217,6 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
|
||||||
|
|
||||||
public void setRefreshToken(OAuth2RefreshToken refreshToken) {
|
public void setRefreshToken(OAuth2RefreshToken refreshToken) {
|
||||||
if (!(refreshToken instanceof OAuth2RefreshTokenEntity)) {
|
if (!(refreshToken instanceof OAuth2RefreshTokenEntity)) {
|
||||||
// TODO: make a copy constructor instead....
|
|
||||||
throw new IllegalArgumentException("Not a storable refresh token entity!");
|
throw new IllegalArgumentException("Not a storable refresh token entity!");
|
||||||
}
|
}
|
||||||
// force a pass through to the entity version
|
// force a pass through to the entity version
|
||||||
|
|
Loading…
Reference in New Issue