public abstract class BaseKeyCloakManager extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
ATTRIBUTE_USER_EMAIL |
protected static String |
ATTRIBUTE_USER_EMAIL_VERIFIED |
protected static String |
ATTRIBUTE_USER_ENABLED |
protected static String |
ATTRIBUTE_USER_FIRST_NAME |
protected static String |
ATTRIBUTE_USER_ID |
protected static String |
ATTRIBUTE_USER_LAST_NAME |
protected ClientFactory |
factory |
protected static Collection<UserManager.UserAttribute> |
USER_ATTRIBUTES |
protected static UserManager.UserAttribute |
USER_EMAIL |
protected static UserManager.UserAttribute |
USER_EMAIL_VERIFIED |
protected static UserManager.UserAttribute |
USER_ENABLED |
protected static UserManager.UserAttribute |
USER_FIST_NAME |
protected static UserManager.UserAttribute |
USER_ID |
protected static UserManager.UserAttribute |
USER_LAST_NAME |
Constructor and Description |
---|
BaseKeyCloakManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
consumeRealm(Consumer<RealmResource> consumer) |
protected org.jboss.errai.security.shared.api.Group |
createGroup(org.keycloak.representations.idm.RoleRepresentation roleRepresentation) |
protected org.jboss.errai.security.shared.api.Group |
createGroup(String name) |
protected org.jboss.errai.security.shared.api.identity.User |
createUser(org.keycloak.representations.idm.UserRepresentation userRepresentation) |
protected org.jboss.errai.security.shared.api.identity.User |
createUser(org.keycloak.representations.idm.UserRepresentation userRepresentation,
Set<org.jboss.errai.security.shared.api.Group> groups,
Set<org.jboss.errai.security.shared.api.Role> roles) |
protected void |
fillUserAttributes(org.jboss.errai.security.shared.api.identity.User user,
org.keycloak.representations.idm.UserRepresentation userRepresentation) |
protected void |
fillUserRepresentationAttributes(org.jboss.errai.security.shared.api.identity.User user,
org.keycloak.representations.idm.UserRepresentation userRepresentation) |
protected Keycloak |
getKeyCloakInstance() |
protected org.keycloak.representations.idm.RoleRepresentation |
getRoleRepresentation(String name,
RoleResource roleResource) |
protected AbstractEntityManager.SearchRequest |
getSearchRequest(AbstractEntityManager.SearchRequest request) |
protected Set[] |
getUserGroupsAndRoles(RoleMappingResource roleMappingResource) |
protected UserResource |
getUserResource(UsersResource usersResource,
String username) |
protected void |
handleResponse(org.jboss.resteasy.client.ClientResponse response) |
protected void |
init(ClientFactory factory) |
protected static final String ATTRIBUTE_USER_ID
protected static final String ATTRIBUTE_USER_FIRST_NAME
protected static final String ATTRIBUTE_USER_LAST_NAME
protected static final String ATTRIBUTE_USER_ENABLED
protected static final String ATTRIBUTE_USER_EMAIL
protected static final String ATTRIBUTE_USER_EMAIL_VERIFIED
protected static final UserManager.UserAttribute USER_ID
protected static final UserManager.UserAttribute USER_FIST_NAME
protected static final UserManager.UserAttribute USER_LAST_NAME
protected static final UserManager.UserAttribute USER_ENABLED
protected static final UserManager.UserAttribute USER_EMAIL
protected static final UserManager.UserAttribute USER_EMAIL_VERIFIED
protected static final Collection<UserManager.UserAttribute> USER_ATTRIBUTES
protected ClientFactory factory
protected void init(ClientFactory factory)
protected Keycloak getKeyCloakInstance()
protected void consumeRealm(Consumer<RealmResource> consumer)
protected AbstractEntityManager.SearchRequest getSearchRequest(AbstractEntityManager.SearchRequest request)
protected org.jboss.errai.security.shared.api.identity.User createUser(org.keycloak.representations.idm.UserRepresentation userRepresentation)
protected org.jboss.errai.security.shared.api.identity.User createUser(org.keycloak.representations.idm.UserRepresentation userRepresentation, Set<org.jboss.errai.security.shared.api.Group> groups, Set<org.jboss.errai.security.shared.api.Role> roles)
protected org.jboss.errai.security.shared.api.Group createGroup(org.keycloak.representations.idm.RoleRepresentation roleRepresentation)
protected org.jboss.errai.security.shared.api.Group createGroup(String name)
protected Set[] getUserGroupsAndRoles(RoleMappingResource roleMappingResource)
protected void fillUserAttributes(org.jboss.errai.security.shared.api.identity.User user, org.keycloak.representations.idm.UserRepresentation userRepresentation)
protected void fillUserRepresentationAttributes(org.jboss.errai.security.shared.api.identity.User user, org.keycloak.representations.idm.UserRepresentation userRepresentation)
protected UserResource getUserResource(UsersResource usersResource, String username)
protected org.keycloak.representations.idm.RoleRepresentation getRoleRepresentation(String name, RoleResource roleResource)
protected void handleResponse(org.jboss.resteasy.client.ClientResponse response)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.