Class PlainStoreUtils
- java.lang.Object
-
- eu.emi.security.authn.x509.helpers.pkipath.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 Summary
Fields Modifier and Type Field Description private java.lang.String
diskPath
private java.util.List<java.net.URL>
resolvedWildcardLocations
private java.util.List<java.lang.String>
srcLocations
private java.lang.String
suffix
private java.util.List<java.net.URL>
urlLocations
private 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 void
establishWildcardLocations(java.lang.String wildcard)
resolves one wildcard and add results to the resolvedWildcardLocations listvoid
establishWildcardsLocations()
resolves all wildcardsjava.io.File
getCacheFile(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()
boolean
isPresent(java.net.URL u)
void
saveCacheFile(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.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()
-
-