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