Class SharingParamManager

java.lang.Object
com.luna.common.encrypt.security.SharingParamManager

public class SharingParamManager extends Object
Author:
luna
  • Field Details

    • CURRENT_DEFAULT_VERSION

      public static final String CURRENT_DEFAULT_VERSION
      当前协议默认的版本号
      See Also:
  • Constructor Details

    • SharingParamManager

      public SharingParamManager(SecurityManager securityManager)
    • SharingParamManager

      public SharingParamManager(SecurityManager securityManager, String version, String... param)
    • SharingParamManager

      public SharingParamManager()
  • Method Details

    • generate

      public String generate()
      生成分享参数 如果分享者为null,分享参数为null
      Returns:
    • parse

      public boolean parse(String body)
      解析分享参数
      Returns:
      true--校验成功,否则校验失败
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getParam

      public String[] getParam()
    • setParam

      public void setParam(String[] param)