removed unnecessary cached token values
parent
74a40fc973
commit
47ff885032
|
@ -73,9 +73,6 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
|
|||
|
||||
private Jwt jwtValue; // JWT-encoded access token value
|
||||
|
||||
//TODO should not need this
|
||||
private String value;
|
||||
|
||||
private IdToken idToken; // JWT-encoded OpenID Connect IdToken
|
||||
|
||||
private Date expiration;
|
||||
|
@ -158,8 +155,7 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
|
|||
@Basic
|
||||
@Column(name="token_value")
|
||||
public String getValue() {
|
||||
this.value = jwtValue.toString();
|
||||
return value;
|
||||
return jwtValue.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -169,7 +165,6 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
|
|||
* @throws IllegalArgumentException if "value" is not a properly formatted JWT string
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
setJwt(Jwt.parse(value));
|
||||
}
|
||||
|
||||
|
@ -281,7 +276,6 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
|
|||
*/
|
||||
public void setJwt(Jwt jwt) {
|
||||
this.jwtValue = jwt;
|
||||
this.value = jwt.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -64,9 +64,6 @@ public class OAuth2RefreshTokenEntity implements OAuth2RefreshToken {
|
|||
//JWT-encoded representation of this access token entity
|
||||
private Jwt jwt;
|
||||
|
||||
//TOOD: shouldn't need this
|
||||
private String value;
|
||||
|
||||
// our refresh tokens might expire
|
||||
private Date expiration;
|
||||
|
||||
|
@ -118,8 +115,7 @@ public class OAuth2RefreshTokenEntity implements OAuth2RefreshToken {
|
|||
@Basic
|
||||
@Column(name="token_value")
|
||||
public String getValue() {
|
||||
value = jwt.toString();
|
||||
return value;
|
||||
return jwt.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -128,7 +124,6 @@ public class OAuth2RefreshTokenEntity implements OAuth2RefreshToken {
|
|||
* @throws IllegalArgumentException if the value is not a valid JWT string
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
setJwt(Jwt.parse(value));
|
||||
}
|
||||
|
||||
|
@ -185,7 +180,6 @@ public class OAuth2RefreshTokenEntity implements OAuth2RefreshToken {
|
|||
*/
|
||||
public void setJwt(Jwt jwt) {
|
||||
this.jwt = jwt;
|
||||
this.value = jwt.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue