@Component
public class CertPolicyResource
extends java.lang.Object
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 |
|---|---|
javax.ws.rs.core.Response |
addPolicy(javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.CertPolicy policy)
Adds a certificate policy to the system.
|
javax.ws.rs.core.Response |
addPolicyGroup(javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.CertPolicyGroup group)
Adds a policy group to the system.
|
javax.ws.rs.core.Response |
addPolicyUseToGroup(java.lang.String groupName,
org.nhindirect.config.model.CertPolicyGroupUse use)
Adds a certificate policy usage to a policy group.
|
javax.ws.rs.core.Response |
associatePolicyGroupToDomain(java.lang.String groupName,
java.lang.String domainName)
Associates a policy group to a domain.
|
javax.ws.rs.core.Response |
disassociatePolicyGroupFromDomain(java.lang.String groupName,
java.lang.String domainName)
Removed a policy group from a domain.
|
javax.ws.rs.core.Response |
disassociatePolicyGroupFromDomains(java.lang.String groupName)
Removes a given policy group from all domains.
|
javax.ws.rs.core.Response |
disassociatePolicyGroupsFromDomain(java.lang.String domainName)
Removes all policy groups for a given domain.
|
javax.ws.rs.core.Response |
getPolicies()
Gets all certificate policies in the system.
|
javax.ws.rs.core.Response |
getPolicyByName(java.lang.String policyName)
Gets a certificate policy by name.
|
javax.ws.rs.core.Response |
getPolicyGroupByName(java.lang.String groupName)
Gets a policy group name.
|
javax.ws.rs.core.Response |
getPolicyGroupDomainReltns()
Gets all policy group to domain relationships.
|
javax.ws.rs.core.Response |
getPolicyGroups()
Gets all policy groups in the system.
|
javax.ws.rs.core.Response |
getPolicyGroupsByDomain(java.lang.String domainName)
Gets all policy groups associated with a domain.
|
javax.ws.rs.core.Response |
removedPolicyUseFromGroup(java.lang.String groupName,
org.nhindirect.config.model.CertPolicyGroupUse use)
Removes a certificate policy usage from a policy group.
|
javax.ws.rs.core.Response |
removePolicyByName(java.lang.String policyName)
Deletes a certificate policy by name.
|
javax.ws.rs.core.Response |
removePolicyGroupByName(java.lang.String groupName)
Deletes a policy group from the system.
|
void |
setCertPolicyDao(org.nhindirect.config.store.dao.CertPolicyDao policyDao)
Sets the policy Dao.
|
void |
setDomainDao(org.nhindirect.config.store.dao.DomainDao domainDao)
Sets the domain Dao.
|
javax.ws.rs.core.Response |
updateGroupAttributes(java.lang.String groupName,
java.lang.String newGroupName)
Updates the attributes of a policy group.
|
javax.ws.rs.core.Response |
updatePolicyAttributes(java.lang.String policyName,
org.nhindirect.config.model.CertPolicy policyData)
Updates the information of a certificate policy.
|
@Autowired public void setCertPolicyDao(org.nhindirect.config.store.dao.CertPolicyDao policyDao)
policyDao - CertPolicyDao Dao@Autowired public void setDomainDao(org.nhindirect.config.store.dao.DomainDao domainDao)
domainDao - DomainDao Daopublic javax.ws.rs.core.Response getPolicies()
public javax.ws.rs.core.Response getPolicyByName(java.lang.String policyName)
policyName - The name of the certificate policy to retrieve.public javax.ws.rs.core.Response addPolicy(@Context
javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.CertPolicy policy)
uriInfo - Injected URI context used for building the location URI.policy - The certificate policy to add.public javax.ws.rs.core.Response removePolicyByName(java.lang.String policyName)
policyName - The name of the certificate policy.public javax.ws.rs.core.Response updatePolicyAttributes(java.lang.String policyName,
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.public javax.ws.rs.core.Response getPolicyGroups()
public javax.ws.rs.core.Response getPolicyGroupByName(java.lang.String groupName)
groupName - The name of the policy group to retrieve.public javax.ws.rs.core.Response addPolicyGroup(@Context
javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.CertPolicyGroup group)
uriInfo - Injected URI context used for building the location URI.group - The policy group to add.public javax.ws.rs.core.Response removePolicyGroupByName(java.lang.String groupName)
groupName - The name of the policy group to delete.public javax.ws.rs.core.Response updateGroupAttributes(java.lang.String groupName,
java.lang.String newGroupName)
groupName - The name of the policy group to update.newGroupName - The new name of the policy group.public javax.ws.rs.core.Response addPolicyUseToGroup(java.lang.String groupName,
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.public javax.ws.rs.core.Response removedPolicyUseFromGroup(java.lang.String groupName,
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.public javax.ws.rs.core.Response getPolicyGroupDomainReltns()
public javax.ws.rs.core.Response getPolicyGroupsByDomain(java.lang.String domainName)
domainName - The domain name to retrieve associate policy groups from.public javax.ws.rs.core.Response associatePolicyGroupToDomain(java.lang.String groupName,
java.lang.String domainName)
groupName - The policy group name to associate to the domain.domainName - The domain name to associate to the policy group.public javax.ws.rs.core.Response disassociatePolicyGroupFromDomain(java.lang.String groupName,
java.lang.String domainName)
groupName - The policy group name to remove from the domain.domainName - The domain name to remove from the policy group.public javax.ws.rs.core.Response disassociatePolicyGroupsFromDomain(java.lang.String domainName)
domainName - The domain to remove all policy groups from.public javax.ws.rs.core.Response disassociatePolicyGroupFromDomains(java.lang.String groupName)
groupName - The policy group to remove from all domains.Copyright © 2018. All Rights Reserved.