public interface TrustBundleService
| Modifier and Type | Method and Description |
|---|---|
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.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 |
refreshTrustBundle(long id)
Forces an on demand refresh of a trust bundle regardless of its refresh internal.
|
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.
|
Collection<org.nhindirect.config.store.TrustBundle> getTrustBundles(boolean fetchAnchors) throws ConfigurationServiceException
fetchAnchors - 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.ConfigurationServiceExceptionorg.nhindirect.config.store.TrustBundle getTrustBundleByName(String bundleName) throws ConfigurationServiceException
bundleName - The bundle name.ConfigurationServiceExceptionorg.nhindirect.config.store.TrustBundle getTrustBundleById(long id)
throws ConfigurationServiceException
id - The internal trust bundle id.ConfigurationServiceExceptionvoid addTrustBundle(org.nhindirect.config.store.TrustBundle bundle)
throws ConfigurationServiceException
bundle - The bundle to add.ConfigurationServiceException - Throw if a bundle with the same name already exists of if required properties
are empty or null.void refreshTrustBundle(long id)
throws ConfigurationServiceException
id - The id of the trust bundle to refresh.ConfigurationServiceExceptionvoid updateLastUpdateError(long trustBundleId,
Calendar attemptTime,
org.nhindirect.config.store.BundleRefreshError error)
throws ConfigurationServiceException
trustBundleId - The id of the bundle.attemptTime - The time the bundle update was attemptederror - The reason for the error.ConfigurationServiceExceptionvoid deleteTrustBundles(long[] trustBundleIds)
throws ConfigurationServiceException
trustBundleIds - The ids of the bundles to delete.ConfigurationServiceExceptionvoid updateTrustBundleSigningCertificate(long trustBundleId,
org.nhindirect.config.store.Certificate signingCert)
throws ConfigurationServiceException
trustBundleId - The trust bundle id.signingCert - The certificate used to sign the bundleConfigurationServiceExceptionvoid updateTrustBundleAttributes(long trustBundleId,
String bundleName,
String bundleUrl,
org.nhindirect.config.store.Certificate signingCert,
int refreshInterval)
throws ConfigurationServiceException
trustBundleId - 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.ConfigurationServiceExceptionvoid associateTrustBundleToDomain(long domainId,
long trustBundleId,
boolean incoming,
boolean outgoing)
throws ConfigurationServiceException
domainId - 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.ConfigurationServiceExceptionvoid disassociateTrustBundleFromDomain(long domainId,
long trustBundleId)
throws ConfigurationServiceException
domainId - The id of the domaintrustBundleId - The id of the trust bundleConfigurationServiceExceptionvoid disassociateTrustBundlesFromDomain(long domainId)
throws ConfigurationServiceException
domainId - The id of the domainConfigurationServiceExceptionvoid disassociateTrustBundleFromDomains(long trustBundleId)
throws ConfigurationServiceException
trustBundleId - The trust bundle id.ConfigurationServiceExceptionCollection<org.nhindirect.config.store.TrustBundleDomainReltn> getTrustBundlesByDomain(long domainId, boolean fetchAnchors) throws ConfigurationServiceException
domainId - 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.ConfigurationServiceExceptionCopyright © 2015. All Rights Reserved.