Class PlainStoreUtils


  • public class PlainStoreUtils
    extends java.lang.Object
    Class for CA or CRL stores with utility methods for handling list of locations as wildcards or URLs.
    • Field Detail

      • diskPath

        private java.lang.String diskPath
      • suffix

        private java.lang.String suffix
      • srcLocations

        private final java.util.List<java.lang.String> srcLocations
      • wildcardLocations

        private final java.util.List<java.lang.String> wildcardLocations
      • urlLocations

        private final java.util.List<java.net.URL> urlLocations
      • resolvedWildcardLocations

        private java.util.List<java.net.URL> resolvedWildcardLocations
    • Constructor Detail

      • PlainStoreUtils

        public PlainStoreUtils​(java.lang.String diskPath,
                               java.lang.String suffix,
                               java.util.List<java.lang.String> locations)
    • Method Detail

      • getCacheFile

        public java.io.File getCacheFile​(java.net.URL url)
                                  throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • saveCacheFile

        public void saveCacheFile​(byte[] what,
                                  java.net.URL url)
                           throws java.net.URISyntaxException,
                                  java.io.IOException
        Throws:
        java.net.URISyntaxException
        java.io.IOException
      • establishWildcardLocations

        private void establishWildcardLocations​(java.lang.String wildcard)
        resolves one wildcard and add results to the resolvedWildcardLocations list
        Parameters:
        wildcard -
      • establishWildcardsLocations

        public void establishWildcardsLocations()
        resolves all wildcards
      • isPresent

        public boolean isPresent​(java.net.URL u)
      • getResolvedWildcards

        public java.util.List<java.net.URL> getResolvedWildcards()
      • getURLLocations

        public java.util.List<java.net.URL> getURLLocations()
      • getLocations

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