Class PlainStoreUtils
- java.lang.Object
-
- eu.emi.security.authn.x509.helpers.pkipath.PlainStoreUtils
-
public class PlainStoreUtils extends java.lang.ObjectClass for CA or CRL stores with utility methods for handling list of locations as wildcards or URLs.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringdiskPathprivate java.util.List<java.net.URL>resolvedWildcardLocationsprivate java.util.List<java.lang.String>srcLocationsprivate java.lang.Stringsuffixprivate java.util.List<java.net.URL>urlLocationsprivate java.util.List<java.lang.String>wildcardLocations
-
Constructor Summary
Constructors Constructor Description PlainStoreUtils(java.lang.String diskPath, java.lang.String suffix, java.util.List<java.lang.String> locations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidestablishWildcardLocations(java.lang.String wildcard)resolves one wildcard and add results to the resolvedWildcardLocations listvoidestablishWildcardsLocations()resolves all wildcardsjava.io.FilegetCacheFile(java.net.URL url)java.util.List<java.lang.String>getLocations()java.util.List<java.net.URL>getResolvedWildcards()java.util.List<java.net.URL>getURLLocations()booleanisPresent(java.net.URL u)voidsaveCacheFile(byte[] what, java.net.URL url)
-
-
-
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
-
-
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.URISyntaxExceptionjava.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()
-
-