Add getter and setter of token value hash

pull/1611/head
rmiccoli 2023-06-13 17:04:09 +02:00
parent c6c4af6d12
commit 12e0ca7a09
1 changed files with 15 additions and 0 deletions

View File

@ -103,6 +103,8 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
private JWT jwtValue; // JWT-encoded access token value
private String tokenValueHash; // hash of access token value
private Date expiration;
private String tokenType = OAuth2AccessToken.BEARER_TYPE;
@ -272,6 +274,19 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
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
@Transient
public int getExpiresIn() {