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

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

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

RealmModel.getAuthenticatorConfigs介绍

暂无

代码示例

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

@Override
public List<AuthenticatorConfigModel> getAuthenticatorConfigs() {
  if (updated != null) return updated.getAuthenticatorConfigs();
  List<AuthenticatorConfigModel> models = new ArrayList<>();
  models.addAll(cached.getAuthenticatorConfigs().values());
  return models;
}

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

@Override
public List<AuthenticatorConfigModel> getAuthenticatorConfigs() {
  if (isUpdated()) return updated.getAuthenticatorConfigs();
  List<AuthenticatorConfigModel> models = new ArrayList<>();
  models.addAll(cached.getAuthenticatorConfigs().values());
  return Collections.unmodifiableList(models);
}

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

public static void exportAuthenticationFlows(RealmModel realm, RealmRepresentation rep) {
  rep.setAuthenticationFlows(new LinkedList<AuthenticationFlowRepresentation>());
  rep.setAuthenticatorConfig(new LinkedList<AuthenticatorConfigRepresentation>());
  List<AuthenticationFlowModel> authenticationFlows = new ArrayList<>(realm.getAuthenticationFlows());
  //ensure consistent ordering of authenticationFlows.
  Collections.sort(authenticationFlows, new Comparator<AuthenticationFlowModel>() {
    @Override
    public int compare(AuthenticationFlowModel left, AuthenticationFlowModel right) {
      return left.getAlias().compareTo(right.getAlias());
    }
  });
  for (AuthenticationFlowModel model : authenticationFlows) {
    AuthenticationFlowRepresentation flowRep = toRepresentation(realm, model);
    rep.getAuthenticationFlows().add(flowRep);
  }
  List<AuthenticatorConfigModel> authenticatorConfigs = new ArrayList<>(realm.getAuthenticatorConfigs());
  //ensure consistent ordering of authenticatorConfigs.
  Collections.sort(authenticatorConfigs, new Comparator<AuthenticatorConfigModel>() {
    @Override
    public int compare(AuthenticatorConfigModel left, AuthenticatorConfigModel right) {
      return left.getAlias().compareTo(right.getAlias());
    }
  });
  for (AuthenticatorConfigModel model : authenticatorConfigs) {
    rep.getAuthenticatorConfig().add(toRepresentation(model));
  }
}

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

groups.add(group.getId());
for (AuthenticatorConfigModel authenticator : model.getAuthenticatorConfigs()) {
  authenticatorConfigs.put(authenticator.getId(), authenticator);

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

for (AuthenticatorConfigModel authenticator : model.getAuthenticatorConfigs()) {
  authenticatorConfigs.put(authenticator.getId(), authenticator);

相关文章

微信公众号

最新文章

更多

RealmModel类方法