@Component 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 |
|---|---|
javax.ws.rs.core.Response |
addTrustBundle(javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.TrustBundle bundle)
Adds a trust bundle to the system.
|
javax.ws.rs.core.Response |
associateTrustBundleToDomain(String bundleName,
String domainName,
boolean incoming,
boolean outgoing)
Associates a trust bundle to a domain along with directional trust.
|
javax.ws.rs.core.Response |
deleteBundle(String bundleName)
Deletes a trust bundle.
|
javax.ws.rs.core.Response |
disassociateTrustBundleFromDomain(String bundleName,
String domainName)
Removes the association of a trust bundle from a domain.
|
javax.ws.rs.core.Response |
disassociateTrustBundleFromDomains(String bundleName)
Removes a trust bundle from all domains.
|
javax.ws.rs.core.Response |
disassociateTrustBundlesFromDomain(String domainName)
Removes all trust bundle from a domain.
|
javax.ws.rs.core.Response |
getTrustBundleByName(String bundleName)
Gets a trust bundle by name.
|
javax.ws.rs.core.Response |
getTrustBundles(boolean fetchAnchors)
Gets all trust bundles in the system.
|
javax.ws.rs.core.Response |
getTrustBundlesByDomain(String domainName,
boolean fetchAnchors)
Gets all trust bundles associated to a domain.
|
javax.ws.rs.core.Response |
refreshTrustBundle(String bundleName)
Forces the refresh of a trust bundle.
|
void |
setDomainDao(org.nhindirect.config.store.dao.DomainDao domainDao)
Sets the domain Dao.
|
void |
setTemplate(org.apache.camel.ProducerTemplate template)
Sets the producer template.
|
void |
setTrustBundleDao(org.nhindirect.config.store.dao.TrustBundleDao bundleDao)
Sets the trustBundle Dao.
|
javax.ws.rs.core.Response |
updateBundleAttributes(String bundleName,
org.nhindirect.config.model.TrustBundle bundleData)
Updates multiple bundle attributes.
|
javax.ws.rs.core.Response |
updateSigningCert(String bundleName,
byte[] certData)
Updates the signing certificate of a trust bundle.
|
@Autowired public void setTrustBundleDao(org.nhindirect.config.store.dao.TrustBundleDao bundleDao)
bundleDao - The trustBundle Dao.@Autowired public void setDomainDao(org.nhindirect.config.store.dao.DomainDao domainDao)
domainDao - The domain Dao.@Autowired @Qualifier(value="bundleRefresh") public void setTemplate(org.apache.camel.ProducerTemplate template)
template - The producer template.public javax.ws.rs.core.Response getTrustBundles(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.public javax.ws.rs.core.Response getTrustBundlesByDomain(String domainName, 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.public javax.ws.rs.core.Response getTrustBundleByName(String bundleName)
bundleName - The name of the trust bundle to retrieve.public javax.ws.rs.core.Response addTrustBundle(@Context
javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.TrustBundle bundle)
uriInfo - Injected URI context used for building the location URI.bundle - The bundle to add to the system.public javax.ws.rs.core.Response refreshTrustBundle(String bundleName)
bundleName - The name of the trust bundle to refresh.public javax.ws.rs.core.Response deleteBundle(String bundleName)
bundleName - The name of the bundle to delete.public javax.ws.rs.core.Response updateSigningCert(String bundleName, byte[] certData)
bundleName - The name of the trust bundle to update.certData - A DER encoded representation of the new signing certificate.public javax.ws.rs.core.Response updateBundleAttributes(String bundleName, 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.public javax.ws.rs.core.Response associateTrustBundleToDomain(String bundleName, String domainName, boolean incoming, 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.public javax.ws.rs.core.Response disassociateTrustBundleFromDomain(String bundleName, 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.public javax.ws.rs.core.Response disassociateTrustBundlesFromDomain(String domainName)
domainName - The name of the domain to remove trust bundle from.public javax.ws.rs.core.Response disassociateTrustBundleFromDomains(String bundleName)
bundleName - The name of the trust bundle to remove from all domains.Copyright © 2015. All Rights Reserved.