Refine search
/** * Set or create child. This will just set the parent if it exists. Create it and set the parent * if the group doesn't exist. * * @param rep */ @POST @Path("children") @NoCache @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response subGroup(GroupRepresentation rep);
@Path("testLDAPConnection") @POST @NoCache Response testLDAPConnection(@FormParam("action") String action, @FormParam("connectionUrl") String connectionUrl, @FormParam("bindDn") String bindDn, @FormParam("bindCredential") String bindCredential, @FormParam("useTruststoreSpi") String useTruststoreSpi, @FormParam("connectionTimeout") String connectionTimeout);
/** * Get a keystore file for the client, containing private key and public certificate * * @param config Keystore configuration as JSON * @return */ @POST @NoCache @Path("/download") @Produces(MediaType.APPLICATION_OCTET_STREAM) @Consumes(MediaType.APPLICATION_JSON) public byte[] getKeystore(final KeyStoreConfig config);
/** * Generate a new keypair and certificate, and get the private key file * * Generates a keypair and certificate and serves the private key in a specified keystore format. * Only generated public certificate is saved in Keycloak DB - the private key is not. * * @param config Keystore configuration as JSON * @return */ @POST @NoCache @Path("/generate-and-download") @Produces(MediaType.APPLICATION_OCTET_STREAM) @Consumes(MediaType.APPLICATION_JSON) public byte[] generateAndGetKeystore(final KeyStoreConfig config); }
@Path("{id}") @DELETE @NoCache public Response delete(final @Context UriInfo uriInfo, final @PathParam("id") String id) { auth.checkManageBeer(); BeerEntity beer = find(id); em.remove(beer); em.flush(); adminEvent .operation(OperationType.DELETE) // .resource(ResourceType.of("BEER")) .resourcePath(uriInfo) .success(); if (session.getTransactionManager().isActive()) { session.getTransactionManager().commit(); } return Response.noContent().build(); }