public class AccountRestService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.keycloak.common.ClientConnection |
clientConnection |
protected javax.ws.rs.core.HttpHeaders |
headers |
protected javax.ws.rs.core.UriInfo |
uriInfo |
| Constructor and Description |
|---|
AccountRestService(KeycloakSession session,
Auth auth,
ClientModel client,
EventBuilder event) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
account()
Get account information.
|
void |
init() |
javax.ws.rs.core.Response |
preflight()
CORS preflight
|
javax.ws.rs.core.Response |
sessions()
Get session information.
|
javax.ws.rs.core.Response |
sessionsLogout(boolean removeCurrent)
Remove sessions
|
javax.ws.rs.core.Response |
updateAccount(UserRepresentation userRep) |
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected javax.ws.rs.core.HttpHeaders headers
@Context protected org.keycloak.common.ClientConnection clientConnection
public AccountRestService(KeycloakSession session, Auth auth, ClientModel client, EventBuilder event)
public void init()
@Path(value="/") @OPTIONS public javax.ws.rs.core.Response preflight()
@Path(value="/") @GET @Produces(value="application/json") public javax.ws.rs.core.Response account()
@Path(value="/") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response updateAccount(UserRepresentation userRep)
@Path(value="/sessions") @GET @Produces(value="application/json") public javax.ws.rs.core.Response sessions()
@Path(value="/sessions")
@DELETE
@Produces(value="application/json")
public javax.ws.rs.core.Response sessionsLogout(@QueryParam(value="current")
boolean removeCurrent)
removeCurrent - remove current session (default is false)Copyright © 2018 JBoss by Red Hat. All rights reserved.