本文整理汇总了Java中org.keycloak.models.KeycloakSessionFactory类的典型用法代码示例。如果您正苦于以下问题:Java KeycloakSessionFactory类的具体用法?Java KeycloakSessionFactory怎么用?Java KeycloakSessionFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
KeycloakSessionFactory类属于org.keycloak.models包,在下文中一共展示了KeycloakSessionFactory类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: successResponse
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
@Override
protected Response successResponse() {
UserSessionModel userSession = clientSession.getUserSession();
Set<ProtocolMapperModel> mappings = new ClientSessionCode<>(session, realm, clientSession).getRequestedProtocolMappers();
KeycloakSessionFactory sessionFactory = session.getKeycloakSessionFactory();
Map<String, Object> attributes = new HashMap<>();
for (ProtocolMapperModel mapping : mappings) {
ProtocolMapper mapper = (ProtocolMapper) sessionFactory.getProviderFactory(ProtocolMapper.class, mapping.getProtocolMapper());
if (mapper instanceof CASAttributeMapper) {
((CASAttributeMapper) mapper).setAttribute(attributes, mapping, userSession);
}
}
CASServiceResponse serviceResponse = ServiceResponseHelper.createSuccess(userSession.getUser().getUsername(), attributes);
return prepare(Response.Status.OK, serviceResponse);
}
开发者ID:Doccrazy,项目名称:keycloak-protocol-cas,代码行数:18,代码来源:ServiceValidateEndpoint.java
示例2: postInit
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
@Override
public void postInit(KeycloakSessionFactory factory) {
}
开发者ID:Doccrazy,项目名称:keycloak-protocol-cas,代码行数:4,代码来源:AbstractCASProtocolMapper.java
示例3: postInit
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
@Override
public void postInit(KeycloakSessionFactory factory) {
//nothing to do
}
开发者ID:larscheid-schmitzhermes,项目名称:keycloak-monitoring-prometheus,代码行数:5,代码来源:MonitoringEventListenerProviderFactory.java
示例4: postInit
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
@Override
public void postInit(KeycloakSessionFactory factory) {
//NOOP
}
开发者ID:thomasdarimont,项目名称:keycloak-health-checks,代码行数:5,代码来源:FilesystemHealthIndicatorFactory.java
示例5: postInit
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
@Override
public void postInit(KeycloakSessionFactory keycloakSessionFactory) {
// noop
}
开发者ID:jugsaar,项目名称:visit-yajug-20161023-keycloak,代码行数:5,代码来源:JmsEventListenerProviderFactory.java
示例6: setKeycloakSessionFactory
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
void setKeycloakSessionFactory(final KeycloakSessionFactory keycloakSessionFactory)
{
this.keycloakSessionFactory = keycloakSessionFactory;
}
开发者ID:EnMasseProject,项目名称:enmasse,代码行数:5,代码来源:AmqpServer.java
示例7: SaslAuthenticator
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
SaslAuthenticator(final KeycloakSessionFactory sessionFactory, final Config.Scope config, final boolean secure) {
this.keycloakSessionFactory = sessionFactory;
this.config = config;
}
开发者ID:EnMasseProject,项目名称:enmasse,代码行数:5,代码来源:SaslAuthenticator.java
示例8: postInit
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
@Override
public void postInit(KeycloakSessionFactory factory) {
// no-op
}
开发者ID:Smartling,项目名称:keycloak-user-migration-provider,代码行数:5,代码来源:RemoteUserFederationProviderFactory.java
示例9: syncAllUsers
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
@Override
public UserFederationSyncResult syncAllUsers(KeycloakSessionFactory sessionFactory, String realmId, UserFederationProviderModel model)
{
throw new UnsupportedOperationException("This federation provider doesn't support syncAllUsers()");
}
开发者ID:Smartling,项目名称:keycloak-user-migration-provider,代码行数:6,代码来源:RemoteUserFederationProviderFactory.java
示例10: syncChangedUsers
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
@Override
public UserFederationSyncResult syncChangedUsers(KeycloakSessionFactory sessionFactory, String realmId, UserFederationProviderModel model, Date lastSync)
{
throw new UnsupportedOperationException("This federation provider doesn't support syncChangedUsers()");
}
开发者ID:Smartling,项目名称:keycloak-user-migration-provider,代码行数:6,代码来源:RemoteUserFederationProviderFactory.java
示例11: postInit
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
@Override
public void postInit(KeycloakSessionFactory factory) {
}
开发者ID:Doccrazy,项目名称:keycloak-protocol-cas,代码行数:5,代码来源:KeycloakCASClientInstallation.java
示例12: postInit
import org.keycloak.models.KeycloakSessionFactory; //导入依赖的package包/类
public void postInit(KeycloakSessionFactory keycloakSessionFactory) {
}
开发者ID:ohioit,项目名称:keycloak-link-idp-with-user,代码行数:4,代码来源:LinkIdpLoginAuthenticatorFactory.java
注:本文中的org.keycloak.models.KeycloakSessionFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论