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

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

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

RealmModel.getAuthenticatorConfigById介绍

暂无

代码示例

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

@Override
public AuthenticatorConfigModel getAuthenticatorConfigById(String id) {
  if (updated != null) return updated.getAuthenticatorConfigById(id);
  return cached.getAuthenticatorConfigs().get(id);
}

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

@Override
public AuthenticatorConfigModel getAuthenticatorConfigById(String id) {
  if (isUpdated()) return updated.getAuthenticatorConfigById(id);
  return cached.getAuthenticatorConfigs().get(id);
}

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

public static AuthenticationExecutionRepresentation toRepresentation(RealmModel realm, AuthenticationExecutionModel model) {
  AuthenticationExecutionRepresentation rep = new AuthenticationExecutionRepresentation();
  if (model.getAuthenticatorConfig() != null) {
    AuthenticatorConfigModel config = realm.getAuthenticatorConfigById(model.getAuthenticatorConfig());
    rep.setAuthenticatorConfig(config.getAlias());
  }
  rep.setAuthenticator(model.getAuthenticator());
  rep.setAutheticatorFlow(model.isAuthenticatorFlow());
  if (model.getFlowId() != null) {
    AuthenticationFlowModel flow = realm.getAuthenticationFlowById(model.getFlowId());
    rep.setFlowAlias(flow.getAlias());
  }
  rep.setPriority(model.getPriority());
  rep.setRequirement(model.getRequirement().name());
  return rep;
}

相关文章

微信公众号

最新文章

更多

RealmModel类方法