Class GoogleSecretGenerator

java.lang.Object
com.sankcrm.erp.auth.infrastructure.user.dynamiccode.GoogleSecretGenerator
All Implemented Interfaces:
SecretGenerator

@Component public class GoogleSecretGenerator extends Object implements SecretGenerator
Google密钥生成
Since:
2.3.0
Author:
zhsxin
create time:
2024-05-09 16:01
  • Constructor Details

    • GoogleSecretGenerator

      public GoogleSecretGenerator()
  • Method Details

    • provider

      public CodeProviders provider()
      Description copied from interface: SecretGenerator
      动态验证码供货商
      Specified by:
      provider in interface SecretGenerator
      Returns:
      CodeProviders
    • generate

      public com.sankcrm.erp.common.sensitive.SecretKey generate(UserInfo user)
      Description copied from interface: SecretGenerator
      生成密钥
      Specified by:
      generate in interface SecretGenerator
      Parameters:
      user - 账号
      Returns:
      SecretKey
    • qrInfo

      public String qrInfo(UserInfo user, com.sankcrm.erp.common.sensitive.SecretKey secret)
      Description copied from interface: SecretGenerator
      生成二维码的信息
      Specified by:
      qrInfo in interface SecretGenerator
      Parameters:
      user - 账号
      secret - 密钥
      Returns:
      生成二维码的信息