@RestController @RequestMapping(value="certificate") public class CertificateResource extends ProtectedResource
Although not required, this class is instantiated using the Jersey SpringServlet and dependencies are defined in the Sprint context XML file.
| Constructor and Description |
|---|
CertificateResource()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
addCertificate(org.nhindirect.config.model.Certificate cert)
Adds a certificate to the system.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.Certificate>> |
getAllCertificates()
Gets all certificates in the system.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.Certificate>> |
getCertificatesByOwner(java.lang.String owner)
Gets all certificates for a specific owner.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<org.nhindirect.config.model.Certificate>> |
getCertificatesByOwnerAndThumbprint(java.lang.String owner,
java.lang.String thumbprint)
Gets a certificate for a specific owner and thumbprint.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
removeCertificatesByIds(java.lang.String ids)
Deletes certificates by system id.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
removeCertificatesByOwner(java.lang.String owner)
Deletes all certificate for a specific owner.
|
void |
setCertificateRepository(org.nhindirect.config.repository.CertificateRepository certRepo)
Sets the certificate repository.
|
void |
setKeyStoreProtectionMgr(org.nhindirect.common.crypto.KeyStoreProtectionManager kspMgr) |
@Autowired public void setCertificateRepository(org.nhindirect.config.repository.CertificateRepository certRepo)
certRepo - The certificate repository@Autowired(required=false) public void setKeyStoreProtectionMgr(org.nhindirect.common.crypto.KeyStoreProtectionManager kspMgr)
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.Certificate>> getAllCertificates()
@GetMapping(value="/{owner}",
produces="application/json")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.Certificate>> getCertificatesByOwner(@PathVariable(value="owner")
java.lang.String owner)
owner - The owner to retrieive certificates for.@GetMapping(value="/{owner}/{thumbprint}",
produces="application/json")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<org.nhindirect.config.model.Certificate>> getCertificatesByOwnerAndThumbprint(@PathVariable(value="owner")
java.lang.String owner,
@PathVariable(value="thumbprint")
java.lang.String thumbprint)
owner - The owner or the certificate.thumbprint - The thubmprint of the certificates.@PutMapping(consumes="application/json")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> addCertificate(@RequestBody
org.nhindirect.config.model.Certificate cert)
uriInfo - Injected URI context used for building the location URI.cert - The certificate to add.@DeleteMapping(value="ids/{ids}")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> removeCertificatesByIds(@PathVariable(value="ids")
java.lang.String ids)
ids - Comma delimited list of system ids to delete.@DeleteMapping(value="{owner}")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> removeCertificatesByOwner(@PathVariable(value="owner")
java.lang.String owner)
owner - The owner of the certificate.Copyright © 2019. All Rights Reserved.