Cleaned up sql tables some more; sticking to _ naming convention
parent
d7deda1699
commit
9c32e92da5
|
@ -48,7 +48,7 @@ import org.springframework.security.oauth2.provider.ClientDetails;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name="clientdetails")
|
@Table(name="client_details")
|
||||||
@NamedQueries({
|
@NamedQueries({
|
||||||
@NamedQuery(name = "ClientDetailsEntity.findAll", query = "SELECT c FROM ClientDetailsEntity c"),
|
@NamedQuery(name = "ClientDetailsEntity.findAll", query = "SELECT c FROM ClientDetailsEntity c"),
|
||||||
@NamedQuery(name = "ClientDetailsEntity.getByClientId", query = "select c from ClientDetailsEntity c where c.clientId = :clientId")
|
@NamedQuery(name = "ClientDetailsEntity.getByClientId", query = "select c from ClientDetailsEntity c where c.clientId = :clientId")
|
||||||
|
@ -304,6 +304,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
* @return the clientDescription
|
* @return the clientDescription
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="client_description")
|
||||||
public String getClientDescription() {
|
public String getClientDescription() {
|
||||||
return clientDescription;
|
return clientDescription;
|
||||||
}
|
}
|
||||||
|
@ -319,6 +320,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
* @return the allowRefresh
|
* @return the allowRefresh
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="allow_refresh")
|
||||||
public Boolean isAllowRefresh() {
|
public Boolean isAllowRefresh() {
|
||||||
return allowRefresh;
|
return allowRefresh;
|
||||||
}
|
}
|
||||||
|
@ -331,6 +333,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="allow_multiple_access_tokens")
|
||||||
public Boolean isAllowMultipleAccessTokens() {
|
public Boolean isAllowMultipleAccessTokens() {
|
||||||
return allowMultipleAccessTokens;
|
return allowMultipleAccessTokens;
|
||||||
}
|
}
|
||||||
|
@ -340,6 +343,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="reuse_refresh_tokens")
|
||||||
public Boolean isReuseRefreshToken() {
|
public Boolean isReuseRefreshToken() {
|
||||||
return reuseRefreshToken;
|
return reuseRefreshToken;
|
||||||
}
|
}
|
||||||
|
@ -375,6 +379,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
@Override
|
@Override
|
||||||
|
@Column(name="client_id")
|
||||||
public String getClientId() {
|
public String getClientId() {
|
||||||
return clientId;
|
return clientId;
|
||||||
}
|
}
|
||||||
|
@ -391,6 +396,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
@Override
|
@Override
|
||||||
|
@Column(name="client_secret")
|
||||||
public String getClientSecret() {
|
public String getClientSecret() {
|
||||||
return clientSecret;
|
return clientSecret;
|
||||||
}
|
}
|
||||||
|
@ -466,6 +472,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="access_token_validity_seconds")
|
||||||
public Integer getAccessTokenValiditySeconds() {
|
public Integer getAccessTokenValiditySeconds() {
|
||||||
return accessTokenValiditySeconds;
|
return accessTokenValiditySeconds;
|
||||||
}
|
}
|
||||||
|
@ -479,6 +486,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="refresh_token_validity_seconds")
|
||||||
public Integer getRefreshTokenValiditySeconds() {
|
public Integer getRefreshTokenValiditySeconds() {
|
||||||
return refreshTokenValiditySeconds;
|
return refreshTokenValiditySeconds;
|
||||||
}
|
}
|
||||||
|
@ -547,6 +555,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
|
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="application_type")
|
||||||
public AppType getApplicationType() {
|
public AppType getApplicationType() {
|
||||||
return applicationType;
|
return applicationType;
|
||||||
}
|
}
|
||||||
|
@ -556,6 +565,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="application_name")
|
||||||
public String getApplicationName() {
|
public String getApplicationName() {
|
||||||
return applicationName;
|
return applicationName;
|
||||||
}
|
}
|
||||||
|
@ -565,6 +575,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="token_endpoint_auth_type")
|
||||||
public AuthType getTokenEndpointAuthType() {
|
public AuthType getTokenEndpointAuthType() {
|
||||||
return tokenEndpointAuthType;
|
return tokenEndpointAuthType;
|
||||||
}
|
}
|
||||||
|
@ -574,6 +585,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="user_id_type")
|
||||||
public String getUserIdType() {
|
public String getUserIdType() {
|
||||||
return userIdType;
|
return userIdType;
|
||||||
}
|
}
|
||||||
|
@ -597,6 +609,17 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="logo_url")
|
||||||
|
public String getLogoUrl() {
|
||||||
|
return logoUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLogoUrl(String logoUrl) {
|
||||||
|
this.logoUrl = logoUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Basic
|
||||||
|
@Column(name="policy_url")
|
||||||
public String getPolicyUrl() {
|
public String getPolicyUrl() {
|
||||||
return policyUrl;
|
return policyUrl;
|
||||||
}
|
}
|
||||||
|
@ -606,6 +629,27 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="jwk_url")
|
||||||
|
public String getJwkUrl() {
|
||||||
|
return jwkUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJwkUrl(String jwkUrl) {
|
||||||
|
this.jwkUrl = jwkUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Basic
|
||||||
|
@Column(name="jwk_encryption_url")
|
||||||
|
public String getJwkEncryptionUrl() {
|
||||||
|
return jwkEncryptionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJwkEncryptionUrl(String jwkEncryptionUrl) {
|
||||||
|
this.jwkEncryptionUrl = jwkEncryptionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Basic
|
||||||
|
@Column(name="x509_url")
|
||||||
public String getX509Url() {
|
public String getX509Url() {
|
||||||
return x509Url;
|
return x509Url;
|
||||||
}
|
}
|
||||||
|
@ -615,6 +659,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="x509_encryption_url")
|
||||||
public String getX509EncryptionUrl() {
|
public String getX509EncryptionUrl() {
|
||||||
return x509EncryptionUrl;
|
return x509EncryptionUrl;
|
||||||
}
|
}
|
||||||
|
@ -624,6 +669,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="sector_identifier_url")
|
||||||
public String getSectorIdentifierUrl() {
|
public String getSectorIdentifierUrl() {
|
||||||
return sectorIdentifierUrl;
|
return sectorIdentifierUrl;
|
||||||
}
|
}
|
||||||
|
@ -633,6 +679,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="requre_signed_request_object")
|
||||||
public JwsAlgorithm getRequireSignedRequestObject() {
|
public JwsAlgorithm getRequireSignedRequestObject() {
|
||||||
return requireSignedRequestObject;
|
return requireSignedRequestObject;
|
||||||
}
|
}
|
||||||
|
@ -643,6 +690,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="user_info_signed_response_alg")
|
||||||
public JwsAlgorithm getUserInfoSignedResponseAlg() {
|
public JwsAlgorithm getUserInfoSignedResponseAlg() {
|
||||||
return userInfoSignedResponseAlg;
|
return userInfoSignedResponseAlg;
|
||||||
}
|
}
|
||||||
|
@ -652,6 +700,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="user_info_encrypted_response_alg")
|
||||||
public JweAlgorithms getUserInfoEncryptedResponseAlg() {
|
public JweAlgorithms getUserInfoEncryptedResponseAlg() {
|
||||||
return userInfoEncryptedResponseAlg;
|
return userInfoEncryptedResponseAlg;
|
||||||
}
|
}
|
||||||
|
@ -662,6 +711,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="user_info_encrypted_response_enc")
|
||||||
public JweAlgorithms getUserInfoEncryptedResponseEnc() {
|
public JweAlgorithms getUserInfoEncryptedResponseEnc() {
|
||||||
return userInfoEncryptedResponseEnc;
|
return userInfoEncryptedResponseEnc;
|
||||||
}
|
}
|
||||||
|
@ -672,6 +722,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="user_info_encrypted_response_int")
|
||||||
public JweAlgorithms getUserInfoEncryptedResponseInt() {
|
public JweAlgorithms getUserInfoEncryptedResponseInt() {
|
||||||
return userInfoEncryptedResponseInt;
|
return userInfoEncryptedResponseInt;
|
||||||
}
|
}
|
||||||
|
@ -682,6 +733,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="id_token_signed_response_alg")
|
||||||
public JwsAlgorithm getIdTokenSignedResponseAlg() {
|
public JwsAlgorithm getIdTokenSignedResponseAlg() {
|
||||||
return idTokenSignedResponseAlg;
|
return idTokenSignedResponseAlg;
|
||||||
}
|
}
|
||||||
|
@ -691,6 +743,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="id_token_encrypted_response_alg")
|
||||||
public JweAlgorithms getIdTokenEncryptedResponseAlg() {
|
public JweAlgorithms getIdTokenEncryptedResponseAlg() {
|
||||||
return idTokenEncryptedResponseAlg;
|
return idTokenEncryptedResponseAlg;
|
||||||
}
|
}
|
||||||
|
@ -701,6 +754,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="id_token_encrypted_response_enc")
|
||||||
public JweAlgorithms getIdTokenEncryptedReponseEnc() {
|
public JweAlgorithms getIdTokenEncryptedReponseEnc() {
|
||||||
return idTokenEncryptedReponseEnc;
|
return idTokenEncryptedReponseEnc;
|
||||||
}
|
}
|
||||||
|
@ -711,6 +765,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="id_token_encrypted_response_int")
|
||||||
public JweAlgorithms getIdTokenEncryptedResponseInt() {
|
public JweAlgorithms getIdTokenEncryptedResponseInt() {
|
||||||
return idTokenEncryptedResponseInt;
|
return idTokenEncryptedResponseInt;
|
||||||
}
|
}
|
||||||
|
@ -721,6 +776,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="default_max_age")
|
||||||
public Integer getDefaultMaxAge() {
|
public Integer getDefaultMaxAge() {
|
||||||
return defaultMaxAge;
|
return defaultMaxAge;
|
||||||
}
|
}
|
||||||
|
@ -730,6 +786,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="require_auth_time")
|
||||||
public Boolean getRequireAuthTime() {
|
public Boolean getRequireAuthTime() {
|
||||||
return requireAuthTime;
|
return requireAuthTime;
|
||||||
}
|
}
|
||||||
|
@ -739,6 +796,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="default_acr")
|
||||||
public String getDefaultACR() {
|
public String getDefaultACR() {
|
||||||
return defaultACR;
|
return defaultACR;
|
||||||
}
|
}
|
||||||
|
@ -747,33 +805,6 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
this.defaultACR = defaultACR;
|
this.defaultACR = defaultACR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
|
||||||
public String getLogoUrl() {
|
|
||||||
return logoUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLogoUrl(String logoUrl) {
|
|
||||||
this.logoUrl = logoUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Basic
|
|
||||||
public String getJwkUrl() {
|
|
||||||
return jwkUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setJwkUrl(String jwkUrl) {
|
|
||||||
this.jwkUrl = jwkUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Basic
|
|
||||||
public String getJwkEncryptionUrl() {
|
|
||||||
return jwkEncryptionUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setJwkEncryptionUrl(String jwkEncryptionUrl) {
|
|
||||||
this.jwkEncryptionUrl = jwkEncryptionUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ClientDetailsEntity ["
|
return "ClientDetailsEntity ["
|
||||||
|
|
|
@ -51,7 +51,7 @@ import org.springframework.security.oauth2.common.OAuth2RefreshToken;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name="accesstoken")
|
@Table(name="access_token")
|
||||||
@NamedQueries({
|
@NamedQueries({
|
||||||
@NamedQuery(name = "OAuth2AccessTokenEntity.getByRefreshToken", query = "select a from OAuth2AccessTokenEntity a where a.refreshToken = :refreshToken"),
|
@NamedQuery(name = "OAuth2AccessTokenEntity.getByRefreshToken", query = "select a from OAuth2AccessTokenEntity a where a.refreshToken = :refreshToken"),
|
||||||
@NamedQuery(name = "OAuth2AccessTokenEntity.getByClient", query = "select a from OAuth2AccessTokenEntity a where a.client = :client"),
|
@NamedQuery(name = "OAuth2AccessTokenEntity.getByClient", query = "select a from OAuth2AccessTokenEntity a where a.client = :client"),
|
||||||
|
@ -179,6 +179,7 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="token_type")
|
||||||
public String getTokenType() {
|
public String getTokenType() {
|
||||||
return tokenType;
|
return tokenType;
|
||||||
}
|
}
|
||||||
|
@ -245,6 +246,7 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
|
||||||
* @return the idTokenString
|
* @return the idTokenString
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="id_token_string")
|
||||||
public String getIdTokenString() {
|
public String getIdTokenString() {
|
||||||
if (idToken != null) {
|
if (idToken != null) {
|
||||||
return idToken.toString();
|
return idToken.toString();
|
||||||
|
|
|
@ -46,7 +46,7 @@ import org.springframework.security.oauth2.common.OAuth2RefreshToken;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name="refreshtoken")
|
@Table(name="refresh_token")
|
||||||
@NamedQueries({
|
@NamedQueries({
|
||||||
@NamedQuery(name = "OAuth2RefreshTokenEntity.getByClient", query = "select r from OAuth2RefreshTokenEntity r where r.client = :client"),
|
@NamedQuery(name = "OAuth2RefreshTokenEntity.getByClient", query = "select r from OAuth2RefreshTokenEntity r where r.client = :client"),
|
||||||
@NamedQuery(name = "OAuth2RefreshTokenEntity.getExpired", query = "select r from OAuth2RefreshTokenEntity r where r.expiration is not null and r.expiration < current_timestamp"),
|
@NamedQuery(name = "OAuth2RefreshTokenEntity.getExpired", query = "select r from OAuth2RefreshTokenEntity r where r.expiration is not null and r.expiration < current_timestamp"),
|
||||||
|
@ -115,7 +115,7 @@ public class OAuth2RefreshTokenEntity implements OAuth2RefreshToken {
|
||||||
* Get the JWT-encoded value of this token
|
* Get the JWT-encoded value of this token
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
@Column(name="tokenValue")
|
@Column(name="token_value")
|
||||||
public String getValue() {
|
public String getValue() {
|
||||||
return jwt.toString();
|
return jwt.toString();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ import java.util.Set;
|
||||||
|
|
||||||
import javax.persistence.Basic;
|
import javax.persistence.Basic;
|
||||||
import javax.persistence.CollectionTable;
|
import javax.persistence.CollectionTable;
|
||||||
|
import javax.persistence.Column;
|
||||||
import javax.persistence.ElementCollection;
|
import javax.persistence.ElementCollection;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.FetchType;
|
import javax.persistence.FetchType;
|
||||||
|
@ -35,7 +36,7 @@ import javax.persistence.Temporal;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name="approvedsite")
|
@Table(name="approved_site")
|
||||||
@NamedQueries({
|
@NamedQueries({
|
||||||
@NamedQuery(name = "ApprovedSite.getAll", query = "select a from ApprovedSite a"),
|
@NamedQuery(name = "ApprovedSite.getAll", query = "select a from ApprovedSite a"),
|
||||||
@NamedQuery(name = "ApprovedSite.getByUserId", query = "select a from ApprovedSite a where a.userId = :userId"),
|
@NamedQuery(name = "ApprovedSite.getByUserId", query = "select a from ApprovedSite a where a.userId = :userId"),
|
||||||
|
@ -97,6 +98,7 @@ public class ApprovedSite {
|
||||||
* @return the userInfo
|
* @return the userInfo
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="user_id")
|
||||||
public String getUserId() {
|
public String getUserId() {
|
||||||
return userId;
|
return userId;
|
||||||
}
|
}
|
||||||
|
@ -112,6 +114,7 @@ public class ApprovedSite {
|
||||||
* @return the clientId
|
* @return the clientId
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="client_id")
|
||||||
public String getClientId() {
|
public String getClientId() {
|
||||||
return clientId;
|
return clientId;
|
||||||
}
|
}
|
||||||
|
@ -128,6 +131,7 @@ public class ApprovedSite {
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||||
|
@Column(name="creation_date")
|
||||||
public Date getCreationDate() {
|
public Date getCreationDate() {
|
||||||
return creationDate;
|
return creationDate;
|
||||||
}
|
}
|
||||||
|
@ -144,6 +148,7 @@ public class ApprovedSite {
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||||
|
@Column(name="access_date")
|
||||||
public Date getAccessDate() {
|
public Date getAccessDate() {
|
||||||
return accessDate;
|
return accessDate;
|
||||||
}
|
}
|
||||||
|
@ -179,6 +184,7 @@ public class ApprovedSite {
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
|
||||||
|
@Column(name="timeout_date")
|
||||||
public Date getTimeoutDate() {
|
public Date getTimeoutDate() {
|
||||||
return timeoutDate;
|
return timeoutDate;
|
||||||
}
|
}
|
||||||
|
@ -201,7 +207,7 @@ public class ApprovedSite {
|
||||||
|
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name="whitelistedsite_id")
|
@JoinColumn(name="whitelisted_site_id")
|
||||||
public WhitelistedSite getWhitelistedSite() {
|
public WhitelistedSite getWhitelistedSite() {
|
||||||
return whitelistedSite;
|
return whitelistedSite;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ import java.util.Set;
|
||||||
|
|
||||||
import javax.persistence.Basic;
|
import javax.persistence.Basic;
|
||||||
import javax.persistence.CollectionTable;
|
import javax.persistence.CollectionTable;
|
||||||
|
import javax.persistence.Column;
|
||||||
import javax.persistence.ElementCollection;
|
import javax.persistence.ElementCollection;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.FetchType;
|
import javax.persistence.FetchType;
|
||||||
|
@ -37,7 +38,7 @@ import javax.persistence.Table;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name="whitelistedsite")
|
@Table(name="whitelisted_site")
|
||||||
@NamedQueries({
|
@NamedQueries({
|
||||||
@NamedQuery(name = "WhitelistedSite.getAll", query = "select w from WhitelistedSite w"),
|
@NamedQuery(name = "WhitelistedSite.getAll", query = "select w from WhitelistedSite w"),
|
||||||
@NamedQuery(name = "WhitelistedSite.getByClientId", query = "select w from WhitelistedSite w where w.clientId = :clientId"),
|
@NamedQuery(name = "WhitelistedSite.getByClientId", query = "select w from WhitelistedSite w where w.clientId = :clientId"),
|
||||||
|
@ -85,6 +86,7 @@ public class WhitelistedSite {
|
||||||
* @return the clientId
|
* @return the clientId
|
||||||
*/
|
*/
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="client_id")
|
||||||
public String getClientId() {
|
public String getClientId() {
|
||||||
return clientId;
|
return clientId;
|
||||||
}
|
}
|
||||||
|
@ -116,6 +118,7 @@ public class WhitelistedSite {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
@Column(name="creator_user_id")
|
||||||
public String getCreatorUserId() {
|
public String getCreatorUserId() {
|
||||||
return creatorUserId;
|
return creatorUserId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
CREATE TABLE accesstoken (
|
CREATE TABLE access_token (
|
||||||
id VARCHAR(256),
|
id VARCHAR(256),
|
||||||
token_value VARCHAR(4096),
|
token_value VARCHAR(4096),
|
||||||
expiration TIMESTAMP,
|
expiration TIMESTAMP,
|
||||||
tokenType VARCHAR(256),
|
token_type VARCHAR(256),
|
||||||
refresh_token_id VARCHAR(256),
|
refresh_token_id VARCHAR(256),
|
||||||
client_id VARCHAR(256),
|
client_id VARCHAR(256),
|
||||||
authentication LONGBLOB,
|
authentication LONGBLOB,
|
||||||
idTokenString VARCHAR(4096)
|
id_token_string VARCHAR(4096)
|
||||||
);
|
);
|
|
@ -0,0 +1,9 @@
|
||||||
|
CREATE TABLE approved_site (
|
||||||
|
id VARCHAR(256),
|
||||||
|
user_id VARCHAR(256),
|
||||||
|
client_id VARCHAR(256),
|
||||||
|
creation_date DATE,
|
||||||
|
access_date DATE,
|
||||||
|
timeout_date DATE,
|
||||||
|
whitelisted_site_id VARCHAR(256)
|
||||||
|
);
|
|
@ -1,9 +0,0 @@
|
||||||
CREATE TABLE approvedsite (
|
|
||||||
id BIGINT AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
userId VARCHAR(256),
|
|
||||||
clientId VARCHAR(256),
|
|
||||||
creationDate DATE,
|
|
||||||
accessDate DATE,
|
|
||||||
timeoutDate DATE,
|
|
||||||
whitelistedsite_id VARCHAR(256)
|
|
||||||
);
|
|
|
@ -1,5 +1,5 @@
|
||||||
CREATE TABLE authentication_holder {
|
CREATE TABLE authentication_holder (
|
||||||
id VARCHAR(256),
|
id VARCHAR(256),
|
||||||
owner_id VARCHAR(256),
|
owner_id VARCHAR(256),
|
||||||
authentication LONGBLOB
|
authentication LONGBLOB
|
||||||
}
|
);
|
|
@ -0,0 +1,41 @@
|
||||||
|
CREATE TABLE client_details (
|
||||||
|
id VARCHAR(256),
|
||||||
|
client_description VARCHAR(256),
|
||||||
|
allow_refresh TINYINT,
|
||||||
|
allow_multiple_access_tokens TINYINT,
|
||||||
|
reuse_refresh_tokens TINYINT,
|
||||||
|
|
||||||
|
client_id VARCHAR(256),
|
||||||
|
client_secret VARCHAR(2000),
|
||||||
|
access_token_validity_seconds BIGINT,
|
||||||
|
refresh_token_validity_seconds BIGINT,
|
||||||
|
|
||||||
|
application_type VARCHAR(256),
|
||||||
|
application_name VARCHAR(256),
|
||||||
|
token_endpoint_auth_type VARCHAR(256),
|
||||||
|
user_id_type VARCHAR(256),
|
||||||
|
|
||||||
|
logo_url VARCHAR(256),
|
||||||
|
policy_url VARCHAR(256),
|
||||||
|
jwk_url VARCHAR(256),
|
||||||
|
jwk_encryption_url VARCHAR(256),
|
||||||
|
x509_url VARCHAR(256),
|
||||||
|
x509_encryption_url VARCHAR(256),
|
||||||
|
sector_identifier_url VARCHAR(256),
|
||||||
|
|
||||||
|
requre_signed_request_object VARCHAR(256),
|
||||||
|
|
||||||
|
user_info_signed_response_alg VARCHAR(256),
|
||||||
|
user_info_encrypted_response_alg VARCHAR(256),
|
||||||
|
user_info_encrypted_response_enc VARCHAR(256),
|
||||||
|
user_info_encrypted_response_int VARCHAR(256),
|
||||||
|
|
||||||
|
id_token_signed_response_alg VARCHAR(256),
|
||||||
|
id_token_encrypted_response_alg VARCHAR(256),
|
||||||
|
id_token_encrypted_response_enc VARCHAR(256),
|
||||||
|
id_token_encrypted_response_int VARCHAR(256),
|
||||||
|
|
||||||
|
default_max_age BIGINT,
|
||||||
|
require_auth_time TINYINT,
|
||||||
|
default_acr VARCHAR(256)
|
||||||
|
);
|
|
@ -1,41 +0,0 @@
|
||||||
CREATE TABLE clientdetails (
|
|
||||||
id VARCHAR(256),
|
|
||||||
clientDescription VARCHAR(256),
|
|
||||||
allowRefresh TINYINT,
|
|
||||||
allowMultipleAccessTokens TINYINT,
|
|
||||||
reuseRefreshTokens TINYINT,
|
|
||||||
|
|
||||||
clientId VARCHAR(256),
|
|
||||||
clientSecret VARCHAR(2000),
|
|
||||||
accessTokenValiditySeconds BIGINT,
|
|
||||||
refreshTokenValiditySeconds BIGINT,
|
|
||||||
|
|
||||||
applicationType VARCHAR(256),
|
|
||||||
applicationName VARCHAR(256),
|
|
||||||
tokenEndpointAuthType VARCHAR(256),
|
|
||||||
userIdType VARCHAR(256),
|
|
||||||
|
|
||||||
logoUrl VARCHAR(256),
|
|
||||||
policyUrl VARCHAR(256),
|
|
||||||
jwkUrl VARCHAR(256),
|
|
||||||
jwkEncryptionUrl VARCHAR(256),
|
|
||||||
x509Url VARCHAR(256)
|
|
||||||
x509EncryptionUrl VARCHAR(256),
|
|
||||||
sectorIdentifierUrl VARCHAR(256),
|
|
||||||
|
|
||||||
requreSignedRequestObject VARCHAR(256),
|
|
||||||
|
|
||||||
userInfoSignedResponseAlg VARCHAR(256),
|
|
||||||
userInfoEncryptedResponseAlg VARCHAR(256),
|
|
||||||
userInfoEncryptedResponseEnc VARCHAR(256),
|
|
||||||
userInfoEncryptedResponseInt VARCHAR(256),
|
|
||||||
|
|
||||||
idTokenSignedResponseAlg VARCHAR(256),
|
|
||||||
idTokenEncryptedResponseAlg VARCHAR(256),
|
|
||||||
idTokenEncryptedResponseEnc VARCHAR(256),
|
|
||||||
idTokenEncryptedResponseInt VARCHAR(256),
|
|
||||||
|
|
||||||
defaultMaxAge BIGINT,
|
|
||||||
requireAuthTime TINYINT,
|
|
||||||
defaultACR VARCHAR(256)
|
|
||||||
);
|
|
|
@ -1,4 +1,4 @@
|
||||||
CREATE TABLE contact {
|
CREATE TABLE contact (
|
||||||
owner_id VARCHAR(256),
|
owner_id VARCHAR(256),
|
||||||
contact VARCHAR(256)
|
contact VARCHAR(256)
|
||||||
}
|
);
|
|
@ -1,6 +1,6 @@
|
||||||
CREATE TABLE refreshtoken (
|
CREATE TABLE refresh_token (
|
||||||
id VARCHAR(256),
|
id VARCHAR(256),
|
||||||
tokenValue VARCHAR(4096),
|
token_value VARCHAR(4096),
|
||||||
expiration TIMESTAMP,
|
expiration TIMESTAMP,
|
||||||
client_id VARCHAR(256)
|
client_id VARCHAR(256)
|
||||||
);
|
);
|
|
@ -0,0 +1,5 @@
|
||||||
|
CREATE TABLE whitelisted_site (
|
||||||
|
id VARCHAR(256),
|
||||||
|
creator_user_id VARCHAR(256),
|
||||||
|
client_id VARCHAR(256)
|
||||||
|
);
|
|
@ -1,5 +0,0 @@
|
||||||
CREATE TABLE whitelistedsite (
|
|
||||||
id BIGINT AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
creatorUserId VARCHAR(256),
|
|
||||||
clientId VARCHAR(256)
|
|
||||||
);
|
|
Loading…
Reference in New Issue