org.apache.manifoldcf.crawler.connectors.webcrawler
Class TrustsDescription

java.lang.Object
  extended by org.apache.manifoldcf.crawler.connectors.webcrawler.TrustsDescription

public class TrustsDescription
extends java.lang.Object

This class describes trust information pulled from a configuration. The data contained is organized by regular expression performed on a url. What we store for each regular expression is a Pattern, for efficiency. This structure deals with trusts as applied to a matching set of urls. Generally it is a good thing to limit the number of regexps that need to be evaluated against any given url value as much as possible. For that reason I've organized this structure accordingly.


Nested Class Summary
protected static class TrustsDescription.TrustsItem
          Class representing an individual credential item.
 
Field Summary
static java.lang.String _rcsid
           
protected  java.util.HashMap patternHash
          This is the hash that contains everything.
 
Constructor Summary
TrustsDescription(org.apache.manifoldcf.core.interfaces.ConfigParams configData)
          Constructor.
 
Method Summary
 org.apache.manifoldcf.core.interfaces.IKeystoreManager getTrustStore(java.lang.String url)
          Given a URL, build the right trust certificate store, or return null if all certs should be accepted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rcsid

public static final java.lang.String _rcsid
See Also:
Constant Field Values

patternHash

protected java.util.HashMap patternHash
This is the hash that contains everything. It's keyed by the regexp string itself. Values are TrustsItem objects.

Constructor Detail

TrustsDescription

public TrustsDescription(org.apache.manifoldcf.core.interfaces.ConfigParams configData)
                  throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Constructor. Build the description from the ConfigParams.

Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
Method Detail

getTrustStore

public org.apache.manifoldcf.core.interfaces.IKeystoreManager getTrustStore(java.lang.String url)
                                                                     throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Given a URL, build the right trust certificate store, or return null if all certs should be accepted.

Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException