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.
    Author:
    K. Benedyczak
    • 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
      • 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()