org.keycloak.models.RealmModel.getAuthenticationExecutions()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(60)

本文整理了Java中org.keycloak.models.RealmModel.getAuthenticationExecutions方法的一些代码示例,展示了RealmModel.getAuthenticationExecutions的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RealmModel.getAuthenticationExecutions方法的具体详情如下:
包路径:org.keycloak.models.RealmModel
类名称:RealmModel
方法名:getAuthenticationExecutions

RealmModel.getAuthenticationExecutions介绍

暂无

代码示例

代码示例来源:origin: org.keycloak/keycloak-invalidation-cache-infinispan

@Override
public List<AuthenticationExecutionModel> getAuthenticationExecutions(String flowId) {
  if (updated != null) return updated.getAuthenticationExecutions(flowId);
  return cached.getAuthenticationExecutions().get(flowId);
}

代码示例来源:origin: org.keycloak/keycloak-model-infinispan

@Override
public List<AuthenticationExecutionModel> getAuthenticationExecutions(String flowId) {
  if (isUpdated()) return updated.getAuthenticationExecutions(flowId);
  return cached.getAuthenticationExecutions().get(flowId);
}

代码示例来源:origin: org.keycloak/keycloak-model-api

/**
 * Recursively find all AuthenticationExecutionModel from specified flow or all it's subflows
 *
 * @param realm
 * @param flow
 * @param result input should be empty list. At the end will be all executions added to this list
 */
public static void deepFindAuthenticationExecutions(RealmModel realm, AuthenticationFlowModel flow, List<AuthenticationExecutionModel> result) {
  List<AuthenticationExecutionModel> executions = realm.getAuthenticationExecutions(flow.getId());
  for (AuthenticationExecutionModel execution : executions) {
    if (execution.isAuthenticatorFlow()) {
      AuthenticationFlowModel subFlow = realm.getAuthenticationFlowById(execution.getFlowId());
      deepFindAuthenticationExecutions(realm, subFlow, result);
    } else {
      result.add(execution);
    }
  }
}

代码示例来源:origin: org.keycloak/keycloak-model-api

public static AuthenticationFlowRepresentation  toRepresentation(RealmModel realm, AuthenticationFlowModel model) {
  AuthenticationFlowRepresentation rep = new AuthenticationFlowRepresentation();
  rep.setBuiltIn(model.isBuiltIn());
  rep.setTopLevel(model.isTopLevel());
  rep.setProviderId(model.getProviderId());
  rep.setAlias(model.getAlias());
  rep.setDescription(model.getDescription());
  rep.setAuthenticationExecutions(new LinkedList<AuthenticationExecutionRepresentation>());
  for (AuthenticationExecutionModel execution : realm.getAuthenticationExecutions(model.getId())) {
    rep.getAuthenticationExecutions().add(toRepresentation(realm, execution));
  }
  return rep;
}

代码示例来源:origin: org.keycloak/keycloak-invalidation-cache-model

authenticationFlows.put(flow.getId(), flow);
authenticationExecutions.put(flow.getId(), new LinkedList<AuthenticationExecutionModel>());
for (AuthenticationExecutionModel execution : model.getAuthenticationExecutions(flow.getId())) {
  authenticationExecutions.add(flow.getId(), execution);
  executionsById.put(execution.getId(), execution);

代码示例来源:origin: org.keycloak/keycloak-model-infinispan

this.authenticationFlows.put(flow.getId(), flow);
authenticationExecutions.put(flow.getId(), new LinkedList<AuthenticationExecutionModel>());
for (AuthenticationExecutionModel execution : model.getAuthenticationExecutions(flow.getId())) {
  authenticationExecutions.add(flow.getId(), execution);
  executionsById.put(execution.getId(), execution);

相关文章

微信公众号

最新文章

更多

RealmModel类方法