Class 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

      Nested Classes 
      Modifier and Type Class Description
      protected static class  TrustsDescription.TrustsItem
      Class representing an individual credential item.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _rcsid  
      protected java.util.HashMap patternHash
      This is the hash that contains everything.
    • Constructor Summary

      Constructors 
      Constructor Description
      TrustsDescription​(org.apache.manifoldcf.core.interfaces.ConfigParams configData)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.manifoldcf.connectorcommon.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

      • 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.connectorcommon.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