Add getter and setter of token value hash
parent
c6c4af6d12
commit
12e0ca7a09
|
@ -103,6 +103,8 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
|
||||||
|
|
||||||
private JWT jwtValue; // JWT-encoded access token value
|
private JWT jwtValue; // JWT-encoded access token value
|
||||||
|
|
||||||
|
private String tokenValueHash; // hash of access token value
|
||||||
|
|
||||||
private Date expiration;
|
private Date expiration;
|
||||||
|
|
||||||
private String tokenType = OAuth2AccessToken.BEARER_TYPE;
|
private String tokenType = OAuth2AccessToken.BEARER_TYPE;
|
||||||
|
@ -272,6 +274,19 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
|
||||||
this.jwtValue = jwt;
|
this.jwtValue = jwt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the tokenValueHash
|
||||||
|
*/
|
||||||
|
@Basic
|
||||||
|
@Column(name="token_value_hash")
|
||||||
|
public String getTokenValueHash() {
|
||||||
|
return tokenValueHash;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTokenValueHash(String hash) {
|
||||||
|
this.tokenValueHash = hash;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transient
|
@Transient
|
||||||
public int getExpiresIn() {
|
public int getExpiresIn() {
|
||||||
|
|
Loading…
Reference in New Issue