本文整理了Java中org.keycloak.models.RealmModel.getAuthenticatorConfigById
方法的一些代码示例,展示了RealmModel.getAuthenticatorConfigById
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RealmModel.getAuthenticatorConfigById
方法的具体详情如下:
包路径:org.keycloak.models.RealmModel
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!