keycloak-service
静的公開メンバ関数 | 全メンバ一覧
org.keycloak.authentication.AuthenticatorUtil クラス
org.keycloak.authentication.AuthenticatorUtil 連携図
Collaboration graph

静的公開メンバ関数

static List< AuthenticationExecutionModel > getEnabledExecutionsRecursively (RealmModel realm, String flowId)
 
static void recurseExecutions (RealmModel realm, String flowId, List< AuthenticationExecutionModel > executions)
 
static AuthenticationExecutionModel findExecutionByAuthenticator (RealmModel realm, String flowId, String authProviderId)
 
static boolean isEnabled (RealmModel realm, String flowId, String authProviderId)
 
static boolean isRequired (RealmModel realm, String flowId, String authProviderId)
 

詳解

著者
Bill Burke
バージョン
Revision
1

関数詳解

◆ findExecutionByAuthenticator()

static AuthenticationExecutionModel org.keycloak.authentication.AuthenticatorUtil.findExecutionByAuthenticator ( RealmModel  realm,
String  flowId,
String  authProviderId 
)
inlinestatic
50  {
51  for (AuthenticationExecutionModel model : realm.getAuthenticationExecutions(flowId)) {
52  if (model.isAuthenticatorFlow()) {
53  AuthenticationExecutionModel recurse = findExecutionByAuthenticator(realm, model.getFlowId(), authProviderId);
54  if (recurse != null) return recurse;
55 
56  }
57  if (model.getAuthenticator().equals(authProviderId)) {
58  return model;
59  }
60  }
61  return null;
62  }
static AuthenticationExecutionModel findExecutionByAuthenticator(RealmModel realm, String flowId, String authProviderId)
Definition: AuthenticatorUtil.java:50

◆ getEnabledExecutionsRecursively()

static List<AuthenticationExecutionModel> org.keycloak.authentication.AuthenticatorUtil.getEnabledExecutionsRecursively ( RealmModel  realm,
String  flowId 
)
inlinestatic
32  {
33  List<AuthenticationExecutionModel> executions = new LinkedList<>();
34  recurseExecutions(realm, flowId, executions);
35  return executions;
36 
37  }
static void recurseExecutions(RealmModel realm, String flowId, List< AuthenticationExecutionModel > executions)
Definition: AuthenticatorUtil.java:39

◆ isEnabled()

static boolean org.keycloak.authentication.AuthenticatorUtil.isEnabled ( RealmModel  realm,
String  flowId,
String  authProviderId 
)
inlinestatic
64  {
65  AuthenticationExecutionModel execution = findExecutionByAuthenticator(realm, flowId, authProviderId);
66  if (execution == null) {
67  return false;
68  }
69  return execution.isEnabled();
70  }
static AuthenticationExecutionModel findExecutionByAuthenticator(RealmModel realm, String flowId, String authProviderId)
Definition: AuthenticatorUtil.java:50

◆ isRequired()

static boolean org.keycloak.authentication.AuthenticatorUtil.isRequired ( RealmModel  realm,
String  flowId,
String  authProviderId 
)
inlinestatic
71  {
72  AuthenticationExecutionModel execution = findExecutionByAuthenticator(realm, flowId, authProviderId);
73  if (execution == null) {
74  return false;
75  }
76  return execution.isRequired();
77  }
static AuthenticationExecutionModel findExecutionByAuthenticator(RealmModel realm, String flowId, String authProviderId)
Definition: AuthenticatorUtil.java:50

◆ recurseExecutions()

static void org.keycloak.authentication.AuthenticatorUtil.recurseExecutions ( RealmModel  realm,
String  flowId,
List< AuthenticationExecutionModel >  executions 
)
inlinestatic
39  {
40  List<AuthenticationExecutionModel> authenticationExecutions = realm.getAuthenticationExecutions(flowId);
41  if (authenticationExecutions == null) return;
42  for (AuthenticationExecutionModel model : authenticationExecutions) {
43  executions.add(model);
44  if (model.isAuthenticatorFlow() && model.isEnabled()) {
45  recurseExecutions(realm, model.getFlowId(), executions);
46  }
47  }
48  }
static void recurseExecutions(RealmModel realm, String flowId, List< AuthenticationExecutionModel > executions)
Definition: AuthenticatorUtil.java:39

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