public interface ClientAttributeCertificateResource
Modifier and Type | Method and Description |
---|---|
CertificateRepresentation |
generate()
Generate a new certificate with new key pair
|
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.
|
CertificateRepresentation |
getKeyInfo()
Get key info
|
byte[] |
getKeystore(KeyStoreConfig config)
Get a keystore file for the client, containing private key and public certificate
|
CertificateRepresentation |
uploadJks(org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataOutput output)
Upload certificate and eventually private key
|
CertificateRepresentation |
uploadJksCertificate(org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataOutput output)
Upload only certificate, not private key
|
@GET @Produces(value="application/json") CertificateRepresentation getKeyInfo()
@POST @Path(value="generate") @Produces(value="application/json") CertificateRepresentation generate()
@POST @Path(value="upload") @Consumes(value="multipart/form-data") @Produces(value="application/json") CertificateRepresentation uploadJks(org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataOutput output)
output
- @POST @Path(value="upload-certificate") @Consumes(value="multipart/form-data") @Produces(value="application/json") CertificateRepresentation uploadJksCertificate(org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataOutput output)
output
- @POST @Path(value="/download") @Produces(value="application/octet-stream") @Consumes(value="application/json") byte[] getKeystore(KeyStoreConfig config)
config
- Keystore configuration as JSON@POST @Path(value="/generate-and-download") @Produces(value="application/octet-stream") @Consumes(value="application/json") byte[] generateAndGetKeystore(KeyStoreConfig config)
config
- Keystore configuration as JSONCopyright © 2021 JBoss by Red Hat. All rights reserved.