Interface ClientAttributeCertificateResource


public interface ClientAttributeCertificateResource
Author:
Stan Silvert ssilvert@redhat.com (C) 2016 Red Hat Inc.
  • Method Details

    • getKeyInfo

      @GET @Produces("application/json") CertificateRepresentation getKeyInfo()
      Get key info
      Returns:
    • generate

      @POST @Path("generate") @Produces("application/json") CertificateRepresentation generate()
      Generate a new certificate with new key pair
      Returns:
    • uploadJks

      @POST @Path("upload") @Consumes("multipart/form-data") @Produces("application/json") CertificateRepresentation uploadJks(Object output)
      Upload certificate and eventually private key
      Parameters:
      output -
      Returns:
    • uploadJksCertificate

      @POST @Path("upload-certificate") @Consumes("multipart/form-data") @Produces("application/json") CertificateRepresentation uploadJksCertificate(Object output)
      Upload only certificate, not private key
      Parameters:
      output -
      Returns:
    • getKeystore

      @POST @Path("/download") @Produces("application/octet-stream") @Consumes("application/json") byte[] getKeystore(KeyStoreConfig config)
      Get a keystore file for the client, containing private key and public certificate
      Parameters:
      config - Keystore configuration as JSON
      Returns:
    • generateAndGetKeystore

      @POST @Path("/generate-and-download") @Produces("application/octet-stream") @Consumes("application/json") byte[] generateAndGetKeystore(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.
      Parameters:
      config - Keystore configuration as JSON
      Returns: