keycloak
公開メンバ関数 | 全メンバ一覧
org.keycloak.models.OTPPolicy.GoogleAuthenticator クラス
org.keycloak.models.OTPPolicy.GoogleAuthenticator の継承関係図
Inheritance graph
org.keycloak.models.OTPPolicy.GoogleAuthenticator 連携図
Collaboration graph

公開メンバ関数

String getName ()
 
boolean supports (OTPPolicy policy)
 

詳解

関数詳解

◆ getName()

String org.keycloak.models.OTPPolicy.GoogleAuthenticator.getName ( )
inline

org.keycloak.models.OTPPolicy.OtpAppを実装しています。

183  {
184  return "Google Authenticator";
185  }

◆ supports()

boolean org.keycloak.models.OTPPolicy.GoogleAuthenticator.supports ( OTPPolicy  policy)
inline

org.keycloak.models.OTPPolicy.OtpAppを実装しています。

188  {
189  if (policy.digits != 6) {
190  return false;
191  }
192 
193  if (!policy.getAlgorithm().equals("HmacSHA1")) {
194  return false;
195  }
196 
197  if (policy.getType().equals("totp") && policy.getPeriod() != 30) {
198  return false;
199  }
200 
201  return true;
202  }

このクラス詳解は次のファイルから抽出されました: