SsoProperties.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package com.usoft.sso.utils;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.stereotype.Component;
  4. /**
  5. * SSO 配置
  6. *
  7. * @author: wangcanyi
  8. * @date: 2018-08-16 09:29
  9. **/
  10. @Component
  11. @ConfigurationProperties("sso")
  12. public class SsoProperties {
  13. /**
  14. * Application Number
  15. */
  16. private String app = "";
  17. /**
  18. * Login, decrypt, secret key
  19. */
  20. private String secretKey = "";
  21. /**
  22. * cookie is check user-agent property
  23. */
  24. private boolean cookieBrowser = false;
  25. /**
  26. * Application Number
  27. *
  28. * @return
  29. */
  30. public String getApp() {
  31. return app;
  32. }
  33. /**
  34. * @param app Application Number
  35. */
  36. public void setApp(String app) {
  37. this.app = app;
  38. }
  39. /**
  40. * Login, decrypt, secret key
  41. *
  42. * @return
  43. */
  44. public String getSecretKey() {
  45. return secretKey;
  46. }
  47. /**
  48. * @param secretKey Login, decrypt, secret key
  49. */
  50. public void setSecretKey(String secretKey) {
  51. this.secretKey = secretKey;
  52. }
  53. /**
  54. * cookie is check user-agent property
  55. *
  56. * @return
  57. */
  58. public boolean isCookieBrowser() {
  59. return cookieBrowser;
  60. }
  61. /**
  62. * @param cookieBrowser cookie is check user-agent property
  63. */
  64. public void setCookieBrowser(boolean cookieBrowser) {
  65. this.cookieBrowser = cookieBrowser;
  66. }
  67. }