@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 |
|---|---|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
addPolicy(org.nhindirect.config.model.CertPolicy policy)
Adds a certificate policy to the system.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
addPolicyGroup(org.nhindirect.config.model.CertPolicyGroup group)
Adds a policy group to the system.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
addPolicyUseToGroup(java.lang.String groupName,
org.nhindirect.config.model.CertPolicyGroupUse use)
Adds a certificate policy usage to a policy group.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
associatePolicyGroupToDomain(java.lang.String groupName,
java.lang.String domainName)
Associates a policy group to a domain.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
disassociatePolicyGroupFromDomain(java.lang.String groupName,
java.lang.String domainName)
Removed a policy group from a domain.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
disassociatePolicyGroupFromDomains(java.lang.String groupName)
Removes a given policy group from all domains.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
disassociatePolicyGroupsFromDomain(java.lang.String domainName)
Removes all policy groups for a given domain.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicy>> |
getPolicies()
Gets all certificate policies in the system.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<org.nhindirect.config.model.CertPolicy>> |
getPolicyByName(java.lang.String policyName)
Gets a certificate policy by name.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<org.nhindirect.config.model.CertPolicyGroup>> |
getPolicyGroupByName(java.lang.String groupName)
Gets a policy group name.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroupDomainReltn>> |
getPolicyGroupDomainReltns()
Gets all policy group to domain relationships.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroup>> |
getPolicyGroups()
Gets all policy groups in the system.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroup>> |
getPolicyGroupsByDomain(java.lang.String domainName)
Gets all policy groups associated with a domain.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
removedPolicyUseFromGroup(java.lang.String groupName,
org.nhindirect.config.model.CertPolicyGroupUse use)
Removes a certificate policy usage from a policy group.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
removePolicyByName(java.lang.String policyName)
Deletes a certificate policy by name.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
removePolicyGroupByName(java.lang.String groupName)
Deletes a policy group from the system.
|
void |
setCertPolicyGroupDomainReltnRepository(org.nhindirect.config.repository.CertPolicyGroupDomainReltnRepository reltnRepo)
Sets the policy group 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) |
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
updateGroupAttributes(java.lang.String groupName,
java.lang.String newGroupName)
Updates the attributes of a policy group.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
updatePolicyAttributes(java.lang.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 reltnRepo)
reltnRepo - CertPolicyGroupDomainReltn repository@Autowired public void setInternalThisProxy(CertPolicyResource internalProxy)
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicy>> getPolicies()
@GetMapping(value="/{policyName}",
produces="application/json")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<org.nhindirect.config.model.CertPolicy>> getPolicyByName(@PathVariable(value="policyName")
java.lang.String policyName)
policyName - The name of the certificate policy to retrieve.@PutMapping(consumes="application/json")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.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 org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> removePolicyByName(@PathVariable(value="policyName")
java.lang.String policyName)
policyName - The name of the certificate policy.@PostMapping(value="{policyName}/policyAttributes",
consumes="application/json")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> updatePolicyAttributes(@PathVariable(value="policyName")
java.lang.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")
@Transactional(readOnly=true)
public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroup>> getPolicyGroups()
@GetMapping(value="groups/{groupName}",
produces="application/json")
@Transactional(readOnly=true)
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<org.nhindirect.config.model.CertPolicyGroup>> getPolicyGroupByName(@PathVariable(value="groupName")
java.lang.String groupName)
groupName - The name of the policy group to retrieve.@PutMapping(value="groups",
consumes="application/json")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.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 org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> removePolicyGroupByName(@PathVariable(value="groupName")
java.lang.String groupName)
groupName - The name of the policy group to delete.@PostMapping(value="groups/{groupName}/groupAttributes",
consumes="application/json")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> updateGroupAttributes(@PathVariable(value="groupName")
java.lang.String groupName,
@RequestBody
java.lang.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")
@Transactional
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> addPolicyUseToGroup(@PathVariable(value="group")
java.lang.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")
@Transactional
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> removedPolicyUseFromGroup(@PathVariable(value="group")
java.lang.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")
@Transactional(readOnly=true)
public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroupDomainReltn>> getPolicyGroupDomainReltns()
@GetMapping(value="groups/domain/{domain}",
produces="application/json")
@Transactional(readOnly=true)
public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.CertPolicyGroup>> getPolicyGroupsByDomain(@PathVariable(value="domain")
java.lang.String domainName)
domainName - The domain name to retrieve associate policy groups from.@PostMapping(value="groups/domain/{group}/{domain}")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> associatePolicyGroupToDomain(@PathVariable(value="group")
java.lang.String groupName,
@PathVariable(value="domain")
java.lang.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 org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> disassociatePolicyGroupFromDomain(@PathVariable(value="group")
java.lang.String groupName,
@PathVariable(value="domain")
java.lang.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")
@Transactional
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> disassociatePolicyGroupsFromDomain(@PathVariable(value="domain")
java.lang.String domainName)
domainName - The domain to remove all policy groups from.@DeleteMapping(value="groups/domain/{group}/deleteFromGroup")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> disassociatePolicyGroupFromDomains(@PathVariable(value="group")
java.lang.String groupName)
groupName - The policy group to remove from all domains.Copyright © 2019. All Rights Reserved.