@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 |
|---|---|
reactor.core.publisher.Mono<Void> |
addTrustBundle(org.nhindirect.config.model.TrustBundle bundle)
Adds a trust bundle to the system.
|
reactor.core.publisher.Mono<Void> |
associateTrustBundleToDomain(String bundleName,
String domainName,
boolean incoming,
boolean outgoing)
Associates a trust bundle to a domain along with directional trust.
|
reactor.core.publisher.Mono<Void> |
deleteBundle(String bundleName)
Deletes a trust bundle.
|
reactor.core.publisher.Mono<Void> |
disassociateTrustBundleFromDomain(String bundleName,
String domainName)
Removes the association of a trust bundle from a domain.
|
reactor.core.publisher.Mono<Void> |
disassociateTrustBundleFromDomains(String bundleName)
Removes a trust bundle from all domains.
|
reactor.core.publisher.Mono<Void> |
disassociateTrustBundlesFromDomain(String domainName)
Removes all trust bundle from a domain.
|
reactor.core.publisher.Flux<org.nhindirect.config.model.TrustBundleDomainReltn> |
getAllTrustBundleDomainRelts(boolean fetchAnchors) |
reactor.core.publisher.Mono<org.nhindirect.config.model.TrustBundle> |
getTrustBundleByName(String bundleName)
Gets a trust bundle by name.
|
reactor.core.publisher.Flux<org.nhindirect.config.model.TrustBundle> |
getTrustBundles(boolean fetchAnchors)
Gets all trust bundles in the system.
|
reactor.core.publisher.Flux<org.nhindirect.config.model.TrustBundleDomainReltn> |
getTrustBundlesByDomain(String domainName,
boolean fetchAnchors)
Gets all trust bundles associated to a domain.
|
reactor.core.publisher.Mono<Void> |
refreshTrustBundle(String bundleName)
Forces the refresh of a trust bundle.
|
void |
setAddressRepository(org.nhindirect.config.repository.AddressRepository addRepo)
Sets the address repository.
|
void |
setBunldeRefreshProcessor(BundleRefreshProcessor bundleRefreshProcessor)
Sets the bundleRefreshProcessor.
|
void |
setDomainRepository(org.nhindirect.config.repository.DomainRepository domainRepo)
Sets the domain repository.
|
void |
setTrustBundleDomainReltnRepository(org.nhindirect.config.repository.TrustBundleDomainReltnRepository reltnRepo)
Sets the trustBundleDomainReltn repository.
|
void |
setTrustBundleRepository(org.nhindirect.config.repository.TrustBundleAnchorRepository bundleAnchorRepo)
Sets the trustBundleAnchor repository.
|
void |
setTrustBundleRepository(org.nhindirect.config.repository.TrustBundleRepository bundleRepo)
Sets the trustBundle repository.
|
reactor.core.publisher.Mono<Void> |
updateBundleAttributes(String bundleName,
org.nhindirect.config.model.TrustBundle bundleData)
Updates multiple bundle attributes.
|
reactor.core.publisher.Mono<Void> |
updateSigningCert(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 setTrustBundleRepository(org.nhindirect.config.repository.TrustBundleAnchorRepository bundleAnchorRepo)
bundleAnchorRepo - The trustBundle anchor 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 public void setAddressRepository(org.nhindirect.config.repository.AddressRepository addRepo)
addRepo - Address repository@Autowired public void setBunldeRefreshProcessor(BundleRefreshProcessor bundleRefreshProcessor)
bundleRefreshProcessor - The bundleRefreshProcessor.@GetMapping(produces="application/json")
public 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")
public reactor.core.publisher.Flux<org.nhindirect.config.model.TrustBundleDomainReltn> getAllTrustBundleDomainRelts(@RequestParam(name="fetchAnchors",defaultValue="true")
boolean fetchAnchors)
@GetMapping(value="domains/{domainName}",
produces="application/json")
public reactor.core.publisher.Flux<org.nhindirect.config.model.TrustBundleDomainReltn> getTrustBundlesByDomain(@PathVariable(value="domainName")
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")
public reactor.core.publisher.Mono<org.nhindirect.config.model.TrustBundle> getTrustBundleByName(@PathVariable(value="bundleName")
String bundleName)
bundleName - The name of the trust bundle to retrieve.@PutMapping(consumes="application/json") @ResponseStatus(value=CREATED) public reactor.core.publisher.Mono<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")
@ResponseStatus(value=NO_CONTENT)
public reactor.core.publisher.Mono<Void> refreshTrustBundle(@PathVariable(value="bundle")
String bundleName)
bundleName - The name of the trust bundle to refresh.@DeleteMapping(value="{bundle}")
public reactor.core.publisher.Mono<Void> deleteBundle(@PathVariable(value="bundle")
String bundleName)
bundleName - The name of the bundle to delete.@PostMapping(value="{bundle}/signingCert",
consumes="application/json")
@ResponseStatus(value=NO_CONTENT)
public reactor.core.publisher.Mono<Void> updateSigningCert(@PathVariable(value="bundle")
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")
@ResponseStatus(value=NO_CONTENT)
public reactor.core.publisher.Mono<Void> updateBundleAttributes(@PathVariable(value="bundle")
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}")
@ResponseStatus(value=NO_CONTENT)
public reactor.core.publisher.Mono<Void> associateTrustBundleToDomain(@PathVariable(value="bundle")
String bundleName,
@PathVariable(value="domain")
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 reactor.core.publisher.Mono<Void> disassociateTrustBundleFromDomain(@PathVariable(value="bundle")
String bundleName,
@PathVariable(value="domain")
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 reactor.core.publisher.Mono<Void> disassociateTrustBundlesFromDomain(@PathVariable(value="domain")
String domainName)
domainName - The name of the domain to remove trust bundle from.@DeleteMapping(value="{bundle}/deleteFromBundle")
public reactor.core.publisher.Mono<Void> disassociateTrustBundleFromDomains(@PathVariable(value="bundle")
String bundleName)
bundleName - The name of the trust bundle to remove from all domains.Copyright © 2021. All rights reserved.