AuthConstant.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the dreamlu.net developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: Chill 庄骞 (smallchill@163.com)
  16. */
  17. package org.springblade.auth.constant;
  18. /**
  19. * 授权校验常量
  20. *
  21. * @author Chill
  22. */
  23. public interface AuthConstant {
  24. /**
  25. * 密码加密规则
  26. */
  27. String ENCRYPT = "{blade}";
  28. /**
  29. * blade_client表字段
  30. */
  31. String CLIENT_FIELDS = "client_id, CONCAT('{noop}',client_secret) as client_secret, resource_ids, scope, authorized_grant_types, " +
  32. "web_server_redirect_uri, authorities, access_token_validity, " +
  33. "refresh_token_validity, additional_information, autoapprove";
  34. /**
  35. * blade_client查询语句
  36. */
  37. String BASE_STATEMENT = "select " + CLIENT_FIELDS + " from blade_client";
  38. /**
  39. * blade_client查询排序
  40. */
  41. String DEFAULT_FIND_STATEMENT = BASE_STATEMENT + " order by client_id";
  42. /**
  43. * 查询client_id
  44. */
  45. String DEFAULT_SELECT_STATEMENT = BASE_STATEMENT + " where client_id = ?";
  46. }