@RestController @RequestMapping(value="trustbundle") public class TrustBundleResource 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 |
|---|
TrustBundleResource()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
addTrustBundle(org.nhindirect.config.model.TrustBundle bundle)
Adds a trust bundle to the system.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
associateTrustBundleToDomain(java.lang.String bundleName,
java.lang.String domainName,
boolean incoming,
boolean outgoing)
Associates a trust bundle to a domain along with directional trust.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
deleteBundle(java.lang.String bundleName)
Deletes a trust bundle.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
disassociateTrustBundleFromDomain(java.lang.String bundleName,
java.lang.String domainName)
Removes the association of a trust bundle from a domain.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
disassociateTrustBundleFromDomains(java.lang.String bundleName)
Removes a trust bundle from all domains.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
disassociateTrustBundlesFromDomain(java.lang.String domainName)
Removes all trust bundle from a domain.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.TrustBundleDomainReltn>> |
getAllTrustBundleDomainRelts(boolean fetchAnchors) |
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<org.nhindirect.config.model.TrustBundle>> |
getTrustBundleByName(java.lang.String bundleName)
Gets a trust bundle by name.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.TrustBundle>> |
getTrustBundles(boolean fetchAnchors)
Gets all trust bundles in the system.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.TrustBundleDomainReltn>> |
getTrustBundlesByDomain(java.lang.String domainName,
boolean fetchAnchors)
Gets all trust bundles associated to a domain.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
refreshTrustBundle(java.lang.String bundleName)
Forces the refresh of a trust bundle.
|
void |
setDomainRepository(org.nhindirect.config.repository.DomainRepository domainRepo)
Sets the domain repository.
|
void |
setTemplate(org.apache.camel.ProducerTemplate template)
Sets the producer template.
|
void |
setTrustBundleDomainReltnRepository(org.nhindirect.config.repository.TrustBundleDomainReltnRepository reltnRepo)
Sets the trustBundleDomainReltn repository.
|
void |
setTrustBundleRepository(org.nhindirect.config.repository.TrustBundleRepository bundleRepo)
Sets the trustBundle repository.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
updateBundleAttributes(java.lang.String bundleName,
org.nhindirect.config.model.TrustBundle bundleData)
Updates multiple bundle attributes.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
updateSigningCert(java.lang.String bundleName,
byte[] certData)
Updates the signing certificate of a trust bundle.
|
@Autowired public void setTrustBundleRepository(org.nhindirect.config.repository.TrustBundleRepository bundleRepo)
bundleRepo - The trustBundle repository.@Autowired public void setTrustBundleDomainReltnRepository(org.nhindirect.config.repository.TrustBundleDomainReltnRepository reltnRepo)
reltnRepo - The trustBundleDomainReltn repository.@Autowired public void setDomainRepository(org.nhindirect.config.repository.DomainRepository domainRepo)
domainRepo - The domain repository.@Autowired @Qualifier(value="bundleRefresh") public void setTemplate(org.apache.camel.ProducerTemplate template)
template - The producer template.@GetMapping(produces="application/json")
@Transactional(readOnly=true)
public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.TrustBundle>> getTrustBundles(@RequestParam(name="fetchAnchors",defaultValue="true")
boolean fetchAnchors)
fetchAnchors - Indicates if the retrieval should also include the trust anchors in the bundle. When only needing bundle names,
this parameter should be set to false for better performance.@GetMapping(value="domains/bundles/reltns",
produces="application/json")
@Transactional(readOnly=true)
public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.TrustBundleDomainReltn>> getAllTrustBundleDomainRelts(@RequestParam(name="fetchAnchors",defaultValue="true")
boolean fetchAnchors)
@GetMapping(value="domains/{domainName}",
produces="application/json")
@Transactional(readOnly=true)
public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.TrustBundleDomainReltn>> getTrustBundlesByDomain(@PathVariable(value="domainName")
java.lang.String domainName,
@RequestParam(name="fetchAnchors",defaultValue="true")
boolean fetchAnchors)
domainName - The name of the domain to fetch trust bundles for.fetchAnchors - Indicates if the retrieval should also include the trust anchors in the bundle. When only needing bundle names,
this parameter should be set to false for better performance.@GetMapping(value="{bundleName}",
produces="application/json")
@Transactional(readOnly=true)
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<org.nhindirect.config.model.TrustBundle>> getTrustBundleByName(@PathVariable(value="bundleName")
java.lang.String bundleName)
bundleName - The name of the trust bundle to retrieve.@PutMapping(consumes="application/json")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> addTrustBundle(@RequestBody
org.nhindirect.config.model.TrustBundle bundle)
uriInfo - Injected URI context used for building the location URI.bundle - The bundle to add to the system.@PostMapping(value="{bundle}/refreshBundle")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> refreshTrustBundle(@PathVariable(value="bundle")
java.lang.String bundleName)
bundleName - The name of the trust bundle to refresh.@DeleteMapping(value="{bundle}")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> deleteBundle(@PathVariable(value="bundle")
java.lang.String bundleName)
bundleName - The name of the bundle to delete.@PostMapping(value="{bundle}/signingCert",
consumes="application/json")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> updateSigningCert(@PathVariable(value="bundle")
java.lang.String bundleName,
@RequestBody(required=false)
byte[] certData)
bundleName - The name of the trust bundle to update.certData - A DER encoded representation of the new signing certificate.@PostMapping(value="{bundle}/bundleAttributes",
consumes="application/json")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> updateBundleAttributes(@PathVariable(value="bundle")
java.lang.String bundleName,
@RequestBody
org.nhindirect.config.model.TrustBundle bundleData)
bundleName - The name of the bundle to update.bundleData - The data of the trust bundle to update. Empty or null attributes indicate that the attribute should not be changed.@PostMapping(value="{bundle}/{domain}")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> associateTrustBundleToDomain(@PathVariable(value="bundle")
java.lang.String bundleName,
@PathVariable(value="domain")
java.lang.String domainName,
@RequestParam(name="incoming",defaultValue="true")
boolean incoming,
@RequestParam(name="outgoing",defaultValue="true")
boolean outgoing)
bundleName - The name of the bundle to associate to a domain.domainName - The name of the domain to associate to a bundle.incoming - Indicates if trust should be allowed for incoming messages.outgoing - Indicates if trust should be allowed for outgoing messages.@DeleteMapping(value="{bundle}/{domain}")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> disassociateTrustBundleFromDomain(@PathVariable(value="bundle")
java.lang.String bundleName,
@PathVariable(value="domain")
java.lang.String domainName)
bundleName - The name of the trust bundle to remove from the domain.domainName - The name of the domain to remove from the trust bundle.@DeleteMapping(value="{domain}/deleteFromDomain")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> disassociateTrustBundlesFromDomain(@PathVariable(value="domain")
java.lang.String domainName)
domainName - The name of the domain to remove trust bundle from.@DeleteMapping(value="{bundle}/deleteFromBundle")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> disassociateTrustBundleFromDomains(@PathVariable(value="bundle")
java.lang.String bundleName)
bundleName - The name of the trust bundle to remove from all domains.Copyright © 2019. All Rights Reserved.