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 String |
authServer |
protected String |
clientId |
protected String |
clientPassword |
protected org.keycloak.admin.client.Keycloak |
keycloak |
protected String |
password |
protected String |
realm |
protected String |
user |
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 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 org.keycloak.admin.client.Keycloak |
getKeyCloakInstance() |
protected org.keycloak.admin.client.resource.RealmResource |
getRealmResource() |
protected org.keycloak.representations.idm.RoleRepresentation |
getRoleRepresentation(String name,
org.keycloak.admin.client.resource.RoleResource roleResource) |
protected AbstractEntityManager.SearchRequest |
getSearchRequest(AbstractEntityManager.SearchRequest request) |
protected Set[] |
getUserGroupsAndRoles(org.keycloak.admin.client.resource.RoleMappingResource roleMappingResource) |
protected org.keycloak.admin.client.resource.UserResource |
getUserResource(org.keycloak.admin.client.resource.UsersResource usersResource,
String username) |
protected void |
handleResponse(javax.ws.rs.core.Response response) |
protected static boolean |
isConfigPropertySet(org.uberfire.commons.config.ConfigProperties.ConfigProperty property) |
protected static boolean |
isEmpty(String s) |
protected void |
loadConfig(org.uberfire.commons.config.ConfigProperties config) |
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 org.keycloak.admin.client.Keycloak keycloak
protected String authServer
protected String realm
protected String user
protected String password
protected String clientId
protected String clientPassword
protected void loadConfig(org.uberfire.commons.config.ConfigProperties config)
protected org.keycloak.admin.client.Keycloak getKeyCloakInstance()
protected org.keycloak.admin.client.resource.RealmResource getRealmResource()
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(org.keycloak.admin.client.resource.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 org.keycloak.admin.client.resource.UserResource getUserResource(org.keycloak.admin.client.resource.UsersResource usersResource,
String username)
protected org.keycloak.representations.idm.RoleRepresentation getRoleRepresentation(String name, org.keycloak.admin.client.resource.RoleResource roleResource)
protected void handleResponse(javax.ws.rs.core.Response response)
protected static boolean isConfigPropertySet(org.uberfire.commons.config.ConfigProperties.ConfigProperty property)
protected static boolean isEmpty(String s)
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.