@RestController @RequestMapping(value="certpolicy") public class CertPolicyResource 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 |
|---|
CertPolicyResource()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
addPolicy(org.nhindirect.config.model.CertPolicy policy)
Adds a certificate policy to the system.
|
reactor.core.publisher.Mono<Void> |
addPolicyGroup(org.nhindirect.config.model.CertPolicyGroup group)
Adds a policy group to the system.
|
reactor.core.publisher.Mono<Void> |
addPolicyUseToGroup(String groupName,
org.nhindirect.config.model.CertPolicyGroupUse use)
Adds a certificate policy usage to a policy group.
|
reactor.core.publisher.Mono<Void> |
associatePolicyGroupToDomain(String groupName,
String domainName)
Associates a policy group to a domain.
|
reactor.core.publisher.Mono<Void> |
disassociatePolicyGroupFromDomain(String groupName,
String domainName)
Removed a policy group from a domain.
|
reactor.core.publisher.Mono<Void> |
disassociatePolicyGroupFromDomains(String groupName)
Removes a given policy group from all domains.
|
reactor.core.publisher.Mono<Void> |
disassociatePolicyGroupsFromDomain(String domainName)
Removes all policy groups for a given domain.
|
reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicy> |
getPolicies()
Gets all certificate policies in the system.
|
reactor.core.publisher.Mono<org.nhindirect.config.model.CertPolicy> |
getPolicyByName(String policyName)
Gets a certificate policy by name.
|
reactor.core.publisher.Mono<org.nhindirect.config.model.CertPolicyGroup> |
getPolicyGroupByName(String groupName)
Gets a policy group name.
|
reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroupDomainReltn> |
getPolicyGroupDomainReltns()
Gets all policy group to domain relationships.
|
reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroup> |
getPolicyGroups()
Gets all policy groups in the system.
|
reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroup> |
getPolicyGroupsByDomain(String domainName)
Gets all policy groups associated with a domain.
|
reactor.core.publisher.Mono<Void> |
removedPolicyUseFromGroup(String groupName,
org.nhindirect.config.model.CertPolicyGroupUse use)
Removes a certificate policy usage from a policy group.
|
reactor.core.publisher.Mono<Void> |
removePolicyByName(String policyName)
Deletes a certificate policy by name.
|
reactor.core.publisher.Mono<Void> |
removePolicyGroupByName(String groupName)
Deletes a policy group from the system.
|
void |
setCertPolicyGroupDomainReltnRepository(org.nhindirect.config.repository.CertPolicyGroupDomainReltnRepository domainReltnRepo)
Sets the policy group to domain reltn repository.
|
void |
setCertPolicyGroupReltnRepository(org.nhindirect.config.repository.CertPolicyGroupReltnRepository polGroupReltnRepo)
Sets the policy group tp policy use reltn repository.
|
void |
setCertPolicyGroupRepository(org.nhindirect.config.repository.CertPolicyGroupRepository groupRepo)
Sets the policy group repository.
|
void |
setCertPolicyRepository(org.nhindirect.config.repository.CertPolicyRepository policyRepo)
Sets the policy repository.
|
void |
setDomainRepository(org.nhindirect.config.repository.DomainRepository domainRepo)
Sets the domain repository.
|
void |
setInternalThisProxy(CertPolicyResource internalProxy) |
reactor.core.publisher.Mono<Void> |
updateGroupAttributes(String groupName,
String newGroupName)
Updates the attributes of a policy group.
|
reactor.core.publisher.Mono<Void> |
updatePolicyAttributes(String policyName,
org.nhindirect.config.model.CertPolicy policyData)
Updates the information of a certificate policy.
|
@Autowired public void setCertPolicyRepository(org.nhindirect.config.repository.CertPolicyRepository policyRepo)
policyRepo - CertPolicyDao repository@Autowired public void setDomainRepository(org.nhindirect.config.repository.DomainRepository domainRepo)
domainRepo - DomainDao repository@Autowired public void setCertPolicyGroupRepository(org.nhindirect.config.repository.CertPolicyGroupRepository groupRepo)
groupRepo - CertPolicyGroup repository@Autowired public void setCertPolicyGroupDomainReltnRepository(org.nhindirect.config.repository.CertPolicyGroupDomainReltnRepository domainReltnRepo)
reltnRepo - CertPolicyGroupDomainReltn repository@Autowired public void setCertPolicyGroupReltnRepository(org.nhindirect.config.repository.CertPolicyGroupReltnRepository polGroupReltnRepo)
reltnRepo - CertPolicyGroupDomainReltn repository@Autowired public void setInternalThisProxy(CertPolicyResource internalProxy)
@GetMapping(produces="application/json") public reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicy> getPolicies()
@GetMapping(value="/{policyName}",
produces="application/json")
public reactor.core.publisher.Mono<org.nhindirect.config.model.CertPolicy> getPolicyByName(@PathVariable(value="policyName")
String policyName)
policyName - The name of the certificate policy to retrieve.@PutMapping(consumes="application/json") @ResponseStatus(value=CREATED) public reactor.core.publisher.Mono<Void> addPolicy(@RequestBody org.nhindirect.config.model.CertPolicy policy)
uriInfo - Injected URI context used for building the location URI.policy - The certificate policy to add.@DeleteMapping(value="{policyName}")
public reactor.core.publisher.Mono<Void> removePolicyByName(@PathVariable(value="policyName")
String policyName)
policyName - The name of the certificate policy.@PostMapping(value="{policyName}/policyAttributes",
consumes="application/json")
@ResponseStatus(value=NO_CONTENT)
public reactor.core.publisher.Mono<Void> updatePolicyAttributes(@PathVariable(value="policyName")
String policyName,
@RequestBody
org.nhindirect.config.model.CertPolicy policyData)
policyName - The name of the certificate policy to update.policyData - Data that should be update. Any null or empty attributes will result in that attribute not being updated.@GetMapping(value="groups",
produces="application/json")
public reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroup> getPolicyGroups()
@GetMapping(value="groups/{groupName}",
produces="application/json")
public reactor.core.publisher.Mono<org.nhindirect.config.model.CertPolicyGroup> getPolicyGroupByName(@PathVariable(value="groupName")
String groupName)
groupName - The name of the policy group to retrieve.@PutMapping(value="groups",
consumes="application/json")
@ResponseStatus(value=CREATED)
public reactor.core.publisher.Mono<Void> addPolicyGroup(@RequestBody
org.nhindirect.config.model.CertPolicyGroup group)
uriInfo - Injected URI context used for building the location URI.group - The policy group to add.@DeleteMapping(value="groups/{groupName}")
public reactor.core.publisher.Mono<Void> removePolicyGroupByName(@PathVariable(value="groupName")
String groupName)
groupName - The name of the policy group to delete.@PostMapping(value="groups/{groupName}/groupAttributes",
consumes="application/json")
@ResponseStatus(value=NO_CONTENT)
public reactor.core.publisher.Mono<Void> updateGroupAttributes(@PathVariable(value="groupName")
String groupName,
@RequestBody
String newGroupName)
groupName - The name of the policy group to update.newGroupName - The new name of the policy group.@PostMapping(value="groups/uses/{group}",
consumes="application/json")
@ResponseStatus(value=NO_CONTENT)
public reactor.core.publisher.Mono<Void> addPolicyUseToGroup(@PathVariable(value="group")
String groupName,
@RequestBody
org.nhindirect.config.model.CertPolicyGroupUse use)
groupName - The name of the policy group to add the usage to.use - The certificate policy usage to add to the policy group.@PostMapping(value="groups/uses/{group}/removePolicy",
consumes="application/json")
public reactor.core.publisher.Mono<Void> removedPolicyUseFromGroup(@PathVariable(value="group")
String groupName,
@RequestBody
org.nhindirect.config.model.CertPolicyGroupUse use)
groupName - The name of the policy group to remove the usage from.use - The certificate policy usage to removed from the policy group.@GetMapping(value="/groups/domain",
produces="application/json")
public reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroupDomainReltn> getPolicyGroupDomainReltns()
@GetMapping(value="groups/domain/{domain}",
produces="application/json")
public reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroup> getPolicyGroupsByDomain(@PathVariable(value="domain")
String domainName)
domainName - The domain name to retrieve associate policy groups from.@PostMapping(value="groups/domain/{group}/{domain}")
@ResponseStatus(value=NO_CONTENT)
public reactor.core.publisher.Mono<Void> associatePolicyGroupToDomain(@PathVariable(value="group")
String groupName,
@PathVariable(value="domain")
String domainName)
groupName - The policy group name to associate to the domain.domainName - The domain name to associate to the policy group.@DeleteMapping(value="groups/domain/{group}/{domain}")
public reactor.core.publisher.Mono<Void> disassociatePolicyGroupFromDomain(@PathVariable(value="group")
String groupName,
@PathVariable(value="domain")
String domainName)
groupName - The policy group name to remove from the domain.domainName - The domain name to remove from the policy group.@DeleteMapping(value="groups/domain/{domain}/deleteFromDomain")
public reactor.core.publisher.Mono<Void> disassociatePolicyGroupsFromDomain(@PathVariable(value="domain")
String domainName)
domainName - The domain to remove all policy groups from.@DeleteMapping(value="groups/domain/{group}/deleteFromGroup")
public reactor.core.publisher.Mono<Void> disassociatePolicyGroupFromDomains(@PathVariable(value="group")
String groupName)
groupName - The policy group to remove from all domains.Copyright © 2022. All rights reserved.