Class GoogleAuthenticator

java.lang.Object
com.sankcrm.erp.auth.infrastructure.user.dynamiccode.GoogleAuthenticator
All Implemented Interfaces:
Authenticator

@Component public class GoogleAuthenticator extends Object implements Authenticator
Google
Since:
2.3.0
Author:
zhsxin
create time:
2024-05-09 17:44
  • Constructor Details

    • GoogleAuthenticator

      public GoogleAuthenticator()
  • Method Details

    • provider

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

      public boolean verify(DynamicCode mode, com.sankcrm.erp.common.sensitive.SecretKey code)
      Description copied from interface: Authenticator
      校验
      Specified by:
      verify in interface Authenticator
      Parameters:
      mode - DynamicCode
      code - 验证码
      Returns:
      true 成功