|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.service.impl.TrustBundleServiceImpl
public class TrustBundleServiceImpl
Implementation of the TrustBundleService
| Constructor Summary | |
|---|---|
TrustBundleServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addTrustBundle(org.nhindirect.config.store.TrustBundle bundle)
Adds a trust bundle to the system. |
void |
associateTrustBundleToDomain(long domainId,
long trustBundleId,
boolean incoming,
boolean outgoing)
Associates a domain to a trust bundle. |
void |
deleteTrustBundles(long[] trustBundleIds)
Deletes a set of trust bundle from the system. |
void |
disassociateTrustBundleFromDomain(long domainId,
long trustBundleId)
Dissociates a domain from a trust bundle. |
void |
disassociateTrustBundleFromDomains(long trustBundleId)
Dissociates a trust bundle from all domains. |
void |
disassociateTrustBundlesFromDomain(long domainId)
Dissociates a domain from all trust bundles. |
org.nhindirect.config.store.dao.TrustBundleDao |
getDao()
Return the value of the TrustBundlDao object. |
org.nhindirect.config.store.TrustBundle |
getTrustBundleById(long id)
Gets a specific trust bundle by its internal id. |
org.nhindirect.config.store.TrustBundle |
getTrustBundleByName(String bundleName)
Gets a specific trust bundle by name. |
Collection<org.nhindirect.config.store.TrustBundle> |
getTrustBundles(boolean fetchAnchors)
Gets a collection of all trust bundles in the system |
Collection<org.nhindirect.config.store.TrustBundleDomainReltn> |
getTrustBundlesByDomain(long domainId,
boolean fetchAnchors)
Gets all trust bundles associated with a domain |
void |
init()
Initialization method. |
void |
refreshTrustBundle(long id)
Forces an on demand refresh of a trust bundle regardless of its refresh internal. |
void |
setDao(org.nhindirect.config.store.dao.TrustBundleDao dao)
Set the value of the TrustBundlDao object. |
void |
setTemplate(org.apache.camel.ProducerTemplate template)
Sets the camel ProducerTemplate object for bundle refresh operations. |
void |
updateLastUpdateError(long trustBundleId,
Calendar attemptTime,
org.nhindirect.config.store.BundleRefreshError error)
Updates the last error that occurred when trying to download or refresh the bundle from its URL. |
void |
updateTrustBundleAttributes(long trustBundleId,
String bundleName,
String bundleUrl,
org.nhindirect.config.store.Certificate signingCert,
int refreshInterval)
Updates multiple attributes of a trust bundle. |
void |
updateTrustBundleSigningCertificate(long trustBundleId,
org.nhindirect.config.store.Certificate signingCert)
Updates the signing certificate used to validate the authenticity of a bundle. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrustBundleServiceImpl()
| Method Detail |
|---|
public void init()
public Collection<org.nhindirect.config.store.TrustBundle> getTrustBundles(boolean fetchAnchors)
throws ConfigurationServiceException
getTrustBundles in interface TrustBundleServicefetchAnchors - Indicates if the anchors should be fetched. When only the trust bundle names are needed, it is desireable
to suppress returning the list of anchors for efficiency.
ConfigurationServiceException
public org.nhindirect.config.store.TrustBundle getTrustBundleByName(String bundleName)
throws ConfigurationServiceException
getTrustBundleByName in interface TrustBundleServicebundleName - The bundle name.
ConfigurationServiceException
public org.nhindirect.config.store.TrustBundle getTrustBundleById(long id)
throws ConfigurationServiceException
getTrustBundleById in interface TrustBundleServiceid - The internal trust bundle id.
ConfigurationServiceException
public void addTrustBundle(org.nhindirect.config.store.TrustBundle bundle)
throws ConfigurationServiceException
addTrustBundle in interface TrustBundleServicebundle - The bundle to add.
ConfigurationServiceException - Throw if a bundle with the same name already exists of if required properties
are empty or null.
public void refreshTrustBundle(long id)
throws ConfigurationServiceException
refreshTrustBundle in interface TrustBundleServiceid - The id of the trust bundle to refresh.
ConfigurationServiceException
public void updateLastUpdateError(long trustBundleId,
Calendar attemptTime,
org.nhindirect.config.store.BundleRefreshError error)
throws ConfigurationServiceException
updateLastUpdateError in interface TrustBundleServicetrustBundleId - The id of the bundle.attemptTime - The time the bundle update was attemptederror - The reason for the error.
ConfigurationServiceException
public void deleteTrustBundles(long[] trustBundleIds)
throws ConfigurationServiceException
deleteTrustBundles in interface TrustBundleServicetrustBundleIds - The ids of the bundles to delete.
ConfigurationServiceException
public void updateTrustBundleSigningCertificate(long trustBundleId,
org.nhindirect.config.store.Certificate signingCert)
throws ConfigurationServiceException
updateTrustBundleSigningCertificate in interface TrustBundleServicetrustBundleId - The trust bundle id.signingCert - The certificate used to sign the bundle
ConfigurationServiceException
public void updateTrustBundleAttributes(long trustBundleId,
String bundleName,
String bundleUrl,
org.nhindirect.config.store.Certificate signingCert,
int refreshInterval)
throws ConfigurationServiceException
updateTrustBundleAttributes in interface TrustBundleServicetrustBundleId - The id of the bundle to update.bundleName - The new bundle name. If empty or null, then the name is not updated. If the URL changes, a bundle refresh is forced.bundleUrl - The new bundle url. If empty or null, then the url is not updated.signingCert - The new certificate used to sign the bundle. The attributes will be applied even if the signingCert is null.refreshInterval - The new refresh interval.
ConfigurationServiceException
public void associateTrustBundleToDomain(long domainId,
long trustBundleId,
boolean incoming,
boolean outgoing)
throws ConfigurationServiceException
associateTrustBundleToDomain in interface TrustBundleServicedomainId - The id of the domain.trustBundleId - The id of the trust bundle.incoming - Indicates if the trust should allow incoming messages.outgoing - Indicates if the trust should allow outgoing messages.
ConfigurationServiceException
public void disassociateTrustBundleFromDomain(long domainId,
long trustBundleId)
throws ConfigurationServiceException
disassociateTrustBundleFromDomain in interface TrustBundleServicedomainId - The id of the domaintrustBundleId - The id of the trust bundle
ConfigurationServiceException
public void disassociateTrustBundlesFromDomain(long domainId)
throws ConfigurationServiceException
disassociateTrustBundlesFromDomain in interface TrustBundleServicedomainId - The id of the domain
ConfigurationServiceException
public void disassociateTrustBundleFromDomains(long trustBundleId)
throws ConfigurationServiceException
disassociateTrustBundleFromDomains in interface TrustBundleServicetrustBundleId - The trust bundle id.
ConfigurationServiceException
public Collection<org.nhindirect.config.store.TrustBundleDomainReltn> getTrustBundlesByDomain(long domainId,
boolean fetchAnchors)
throws ConfigurationServiceException
getTrustBundlesByDomain in interface TrustBundleServicedomainId - The domain idfetchAnchors - Indicates if the anchors should be returned with each bundle. When only the trust bundle names are needed, it is desirable
to suppress returning the list of anchors for efficiency.
ConfigurationServiceException@Autowired public void setDao(org.nhindirect.config.store.dao.TrustBundleDao dao)
dao - the value of the TrustBundlDao object.public org.nhindirect.config.store.dao.TrustBundleDao getDao()
@Autowired @Qualifier(value="bundleRefresh") public void setTemplate(org.apache.camel.ProducerTemplate template)
ProducerTemplate object for bundle refresh operations.
template -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||