Class DirectoryTrustAnchorStore

    • Constructor Detail

      • DirectoryTrustAnchorStore

        public DirectoryTrustAnchorStore​(java.util.List<java.lang.String> locations,
                                         java.lang.String diskCache,
                                         int connectionTimeout,
                                         java.util.Timer t,
                                         long updateInterval,
                                         CertificateUtils.Encoding encoding,
                                         ObserversHandler listeners)
      • DirectoryTrustAnchorStore

        protected DirectoryTrustAnchorStore​(java.util.List<java.lang.String> locations,
                                            java.lang.String diskCache,
                                            int connectionTimeout,
                                            java.util.Timer t,
                                            long updateInterval,
                                            CertificateUtils.Encoding encoding,
                                            ObserversHandler observers,
                                            boolean noFirstUpdate)
    • Method Detail

      • loadCerts

        protected java.security.cert.X509Certificate[] loadCerts​(java.net.URL url)
                                                          throws java.io.IOException,
                                                                 java.net.URISyntaxException,
                                                                 java.security.cert.CertificateEncodingException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
        java.security.cert.CertificateEncodingException
      • reloadCerts

        protected void reloadCerts​(java.util.Collection<java.net.URL> locations)
        For all URLs tries to load a CA cert. Information for extensions: this method is guaranteed to be called once per update.
        Parameters:
        locations - a collection of URLs
      • update

        public void update()
        1. work only if schedulingNeeded() 2. for all wildcards refresh file lists 3. remove the locations not valid anymore 4. for all location URLs try to get the cert 5. update timestamp 6. schedule the next update if enabled
        Specified by:
        update in class TimedTrustAnchorStoreBase
      • getTrustAnchors

        public java.util.Set<java.security.cert.TrustAnchor> getTrustAnchors()
      • getTrustedCertificates

        public java.security.cert.X509Certificate[] getTrustedCertificates()
      • getLocations

        public java.util.List<java.lang.String> getLocations()
      • getConnTimeout

        public int getConnTimeout()
      • getCacheDir

        public java.lang.String getCacheDir()