|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.processor.impl.DefaultBundleRefreshProcessorImpl
public class DefaultBundleRefreshProcessorImpl
Camel based implementation of the BundleRefreshProcessor interface.
The implementation allows for bundles to be downloaded from SSL protected sites that may not
chain back to a trust CA. This is useful in developement environments and is not recommended in
a production invironment. By default, this feature is disable, but can be enabled using the
BUNDLE_REFRESH_PROCESSOR_ALLOW_DOWNLOAD_FROM_UNTRUSTED options parameter.
| Field Summary | |
|---|---|
static String |
BUNDLE_REFRESH_PROCESSOR_ALLOW_DOWNLOAD_FROM_UNTRUSTED
Boolean value that specifies if bundles can be downloaded from non verified or untrusted SSL URLs. |
protected org.nhindirect.config.store.dao.TrustBundleDao |
dao
|
protected static int |
DEFAULT_URL_CONNECTION_TIMEOUT
|
protected static int |
DEFAULT_URL_READ_TIMEOUT
|
| Constructor Summary | |
|---|---|
DefaultBundleRefreshProcessorImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
protected Collection<X509Certificate> |
convertRawBundleToAnchorCollection(byte[] rawBundle,
org.nhindirect.config.store.TrustBundle existingBundle,
Calendar processAttempStart)
Converts a trust raw trust bundle byte array into a collection of X509Certificate objects. |
protected byte[] |
downloadBundleToByteArray(org.nhindirect.config.store.TrustBundle bundle,
Calendar processAttempStart)
Downloads a bundle from the bundle's URL and returns the result as a byte array. |
static void |
initJVMParams()
Initializes system preferences using the Direct OptionsManager pattern. |
void |
refreshBundle(org.nhindirect.config.store.TrustBundle bundle)
Refreshes the set of anchors within a bundle. |
void |
setDao(org.nhindirect.config.store.dao.TrustBundleDao dao)
Sets the trust bundle DAO for updating the bundle storage medium. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BUNDLE_REFRESH_PROCESSOR_ALLOW_DOWNLOAD_FROM_UNTRUSTED
JVM Parameter/Options Name: org.nhindirect.config.processor.impl.bundlerefresh.AllowNonVerifiedSSL
protected static final int DEFAULT_URL_CONNECTION_TIMEOUT
protected static final int DEFAULT_URL_READ_TIMEOUT
protected org.nhindirect.config.store.dao.TrustBundleDao dao
| Constructor Detail |
|---|
public DefaultBundleRefreshProcessorImpl()
| Method Detail |
|---|
public static void initJVMParams()
OptionsManager pattern.
public void setDao(org.nhindirect.config.store.dao.TrustBundleDao dao)
dao - The trust bundle DAOP@Handler public void refreshBundle(org.nhindirect.config.store.TrustBundle bundle)
refreshBundle in interface BundleRefreshProcessorbundle - The bundle that will be updated.
protected Collection<X509Certificate> convertRawBundleToAnchorCollection(byte[] rawBundle,
org.nhindirect.config.store.TrustBundle existingBundle,
Calendar processAttempStart)
X509Certificate objects.
rawBundle - The raw representation of the bundle. This generally the raw byte string downloaded from the bundle's URL.existingBundle - The configured bundle object in the DAO. This object may contain the signing certificate
used for bundle authenticity checking.processAttempStart - The time that the update process started.
protected byte[] downloadBundleToByteArray(org.nhindirect.config.store.TrustBundle bundle,
Calendar processAttempStart)
bundle - The bundle that will be downloaded.processAttempStart - The time that the update process started.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||