SysClientDetails.java 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. package com.ruoyi.system.domain;
  2. import org.apache.commons.lang3.builder.ToStringBuilder;
  3. import org.apache.commons.lang3.builder.ToStringStyle;
  4. import com.ruoyi.common.core.web.domain.BaseEntity;
  5. /**
  6. * 终端配置表 sys_oauth_client_details
  7. *
  8. * @author ruoyi
  9. */
  10. public class SysClientDetails extends BaseEntity
  11. {
  12. private static final long serialVersionUID = 1L;
  13. /**
  14. * 终端编号
  15. */
  16. private String clientId;
  17. /**
  18. * 资源ID标识
  19. */
  20. private String resourceIds;
  21. /**
  22. * 终端安全码
  23. */
  24. private String clientSecret;
  25. /**
  26. * 终端授权范围
  27. */
  28. private String scope;
  29. /**
  30. * 终端授权类型
  31. */
  32. private String authorizedGrantTypes;
  33. /**
  34. * 服务器回调地址
  35. */
  36. private String webServerRedirectUri;
  37. /**
  38. * 访问资源所需权限
  39. */
  40. private String authorities;
  41. /**
  42. * 设定终端的access_token的有效时间值(秒)
  43. */
  44. private Integer accessTokenValidity;
  45. /**
  46. * 设定终端的refresh_token的有效时间值(秒)
  47. */
  48. private Integer refreshTokenValidity;
  49. /**
  50. * 附加信息
  51. */
  52. private String additionalInformation;
  53. /**
  54. * 是否登录时跳过授权
  55. */
  56. private String autoapprove;
  57. public String getClientId()
  58. {
  59. return clientId;
  60. }
  61. public void setClientId(String clientId)
  62. {
  63. this.clientId = clientId;
  64. }
  65. public String getResourceIds()
  66. {
  67. return resourceIds;
  68. }
  69. public void setResourceIds(String resourceIds)
  70. {
  71. this.resourceIds = resourceIds;
  72. }
  73. public String getClientSecret()
  74. {
  75. return clientSecret;
  76. }
  77. public void setClientSecret(String clientSecret)
  78. {
  79. this.clientSecret = clientSecret;
  80. }
  81. public String getScope()
  82. {
  83. return scope;
  84. }
  85. public void setScope(String scope)
  86. {
  87. this.scope = scope;
  88. }
  89. public String getAuthorizedGrantTypes()
  90. {
  91. return authorizedGrantTypes;
  92. }
  93. public void setAuthorizedGrantTypes(String authorizedGrantTypes)
  94. {
  95. this.authorizedGrantTypes = authorizedGrantTypes;
  96. }
  97. public String getWebServerRedirectUri()
  98. {
  99. return webServerRedirectUri;
  100. }
  101. public void setWebServerRedirectUri(String webServerRedirectUri)
  102. {
  103. this.webServerRedirectUri = webServerRedirectUri;
  104. }
  105. public String getAuthorities()
  106. {
  107. return authorities;
  108. }
  109. public void setAuthorities(String authorities)
  110. {
  111. this.authorities = authorities;
  112. }
  113. public Integer getAccessTokenValidity()
  114. {
  115. return accessTokenValidity;
  116. }
  117. public void setAccessTokenValidity(Integer accessTokenValidity)
  118. {
  119. this.accessTokenValidity = accessTokenValidity;
  120. }
  121. public Integer getRefreshTokenValidity()
  122. {
  123. return refreshTokenValidity;
  124. }
  125. public void setRefreshTokenValidity(Integer refreshTokenValidity)
  126. {
  127. this.refreshTokenValidity = refreshTokenValidity;
  128. }
  129. public String getAdditionalInformation()
  130. {
  131. return additionalInformation;
  132. }
  133. public void setAdditionalInformation(String additionalInformation)
  134. {
  135. this.additionalInformation = additionalInformation;
  136. }
  137. public String getAutoapprove()
  138. {
  139. return autoapprove;
  140. }
  141. public void setAutoapprove(String autoapprove)
  142. {
  143. this.autoapprove = autoapprove;
  144. }
  145. @Override
  146. public String toString() {
  147. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  148. .append("clientId", getClientId())
  149. .append("resourceIds", getResourceIds())
  150. .append("clientSecret", getClientSecret())
  151. .append("scope", getScope())
  152. .append("authorizedGrantTypes", getAuthorizedGrantTypes())
  153. .append("webServerRedirectUri", getWebServerRedirectUri())
  154. .append("authorities", getAuthorities())
  155. .append("accessTokenValidity", getAccessTokenValidity())
  156. .append("refreshTokenValidity", getRefreshTokenValidity())
  157. .append("additionalInformation", getAdditionalInformation())
  158. .append("autoapprove", getAutoapprove())
  159. .toString();
  160. }
  161. }