public class OAuthClientResource extends Object
Modifier and Type | Field and Description |
---|---|
protected KeycloakApplication |
application |
protected static org.jboss.logging.Logger |
logger |
protected OAuthClientModel |
oauthClient |
protected RealmModel |
realm |
protected KeycloakSession |
session |
protected javax.ws.rs.core.UriInfo |
uriInfo |
Constructor and Description |
---|
OAuthClientResource(RealmModel realm,
RealmAuth auth,
OAuthClientModel oauthClient,
KeycloakSession session) |
Modifier and Type | Method and Description |
---|---|
void |
deleteOAuthClient()
Remove the OAuth Client
|
protected KeycloakApplication |
getApplication() |
ClientAttributeCertificateResource |
getCertficateResource(String attributePrefix) |
ClaimResource |
getClaimResource()
Base path for managing allowed oauth client claims
|
CredentialRepresentation |
getClientSecret()
Get the secret of the oauth client
|
String |
getInstallation()
Get an example keycloak.json file to use to configure the oauth client
|
OAuthClientRepresentation |
getOAuthClient()
Get a representation of the oauth client
|
ScopeMappedResource |
getScopeMappedResource()
Base path for managing the oauth client's scope
|
CredentialRepresentation |
regenerateSecret()
Generate a new client secret for the oauth client
|
javax.ws.rs.core.Response |
update(OAuthClientRepresentation rep)
Update the oauth client
|
protected static final org.jboss.logging.Logger logger
protected RealmModel realm
protected OAuthClientModel oauthClient
protected KeycloakSession session
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected KeycloakApplication application
public OAuthClientResource(RealmModel realm, RealmAuth auth, OAuthClientModel oauthClient, KeycloakSession session)
protected KeycloakApplication getApplication()
@Path(value="claims") public ClaimResource getClaimResource()
@Path(value="certificates/{attr}") public ClientAttributeCertificateResource getCertficateResource(@PathParam(value="attr") String attributePrefix)
attributePrefix
- @PUT @Consumes(value="application/json") public javax.ws.rs.core.Response update(OAuthClientRepresentation rep)
rep
- @GET @Produces(value="application/json") public OAuthClientRepresentation getOAuthClient()
@GET @Path(value="installation") @Produces(value="application/json") public String getInstallation() throws IOException
IOException
@DELETE public void deleteOAuthClient()
@Path(value="client-secret") @POST @Produces(value="application/json") @Consumes(value="application/json") public CredentialRepresentation regenerateSecret()
@Path(value="client-secret") @GET @Produces(value="application/json") public CredentialRepresentation getClientSecret()
@Path(value="scope-mappings") public ScopeMappedResource getScopeMappedResource()
Copyright © 2015. All Rights Reserved.