eu.emi.security.authn.x509.helpers.pkipath
Class PlainStoreUtils

java.lang.Object
  extended by eu.emi.security.authn.x509.helpers.pkipath.PlainStoreUtils

public class PlainStoreUtils
extends Object

Class for CA or CRL stores with utility methods for handling list of locations as wildcards or URLs.

Author:
K. Benedyczak

Constructor Summary
PlainStoreUtils(String diskPath, String suffix, List<String> locations)
           
 
Method Summary
 void establishWildcardsLocations()
          resolves all wildcards
 File getCacheFile(URL url)
           
 List<String> getLocations()
           
 List<URL> getResolvedWildcards()
           
 List<URL> getURLLocations()
           
 boolean isPresent(URL u)
           
 void saveCacheFile(byte[] what, URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainStoreUtils

public PlainStoreUtils(String diskPath,
                       String suffix,
                       List<String> locations)
Method Detail

getCacheFile

public File getCacheFile(URL url)
                  throws URISyntaxException
Throws:
URISyntaxException

saveCacheFile

public void saveCacheFile(byte[] what,
                          URL url)
                   throws URISyntaxException,
                          IOException
Throws:
URISyntaxException
IOException

establishWildcardsLocations

public void establishWildcardsLocations()
resolves all wildcards


isPresent

public boolean isPresent(URL u)

getResolvedWildcards

public List<URL> getResolvedWildcards()

getURLLocations

public List<URL> getURLLocations()

getLocations

public List<String> getLocations()


Copyright © 2012-2013 European Middleware Initiative. All Rights Reserved.