Package org.globus.gsi.stores
Class AbstractResourceSecurityWrapper<T>
- java.lang.Object
-
- org.globus.gsi.stores.AbstractResourceSecurityWrapper<T>
-
- Type Parameters:
T
- Type of security object
- All Implemented Interfaces:
SecurityObjectWrapper<T>
,Storable
- Direct Known Subclasses:
ResourceCRL
,ResourceProxyCredential
,ResourceTrustAnchor
public abstract class AbstractResourceSecurityWrapper<T> extends java.lang.Object implements SecurityObjectWrapper<T>, Storable
// JGLOBUS-91 : add javadoc
-
-
Field Summary
Fields Modifier and Type Field Description protected GlobusPathMatchingResourcePatternResolver
globusResolver
protected GlobusResource
globusResource
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractResourceSecurityWrapper(boolean inMemory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
create(GlobusResource targetResource)
java.lang.String
getAlias()
java.io.File
getFile()
GlobusResource
getGlobusResource()
java.net.URL
getResourceURL()
T
getSecurityObject()
boolean
hasChanged()
protected void
init(java.lang.String locationPattern)
protected void
init(java.lang.String locationPattern, T initialSecurityObject)
protected void
init(GlobusResource initialResource)
protected void
init(GlobusResource initialResource, T initialSecurityObject)
void
refresh()
-
-
-
Field Detail
-
globusResolver
protected GlobusPathMatchingResourcePatternResolver globusResolver
-
globusResource
protected GlobusResource globusResource
-
-
Method Detail
-
init
protected void init(java.lang.String locationPattern) throws ResourceStoreException
- Throws:
ResourceStoreException
-
init
protected void init(GlobusResource initialResource) throws ResourceStoreException
- Throws:
ResourceStoreException
-
getAlias
public java.lang.String getAlias()
- Specified by:
getAlias
in interfaceSecurityObjectWrapper<T>
-
init
protected void init(java.lang.String locationPattern, T initialSecurityObject) throws ResourceStoreException
- Throws:
ResourceStoreException
-
init
protected void init(GlobusResource initialResource, T initialSecurityObject) throws ResourceStoreException
- Throws:
ResourceStoreException
-
getGlobusResource
public GlobusResource getGlobusResource()
-
getResourceURL
public java.net.URL getResourceURL()
-
getFile
public java.io.File getFile()
-
refresh
public void refresh() throws ResourceStoreException
- Specified by:
refresh
in interfaceSecurityObjectWrapper<T>
- Throws:
ResourceStoreException
-
create
protected abstract T create(GlobusResource targetResource) throws ResourceStoreException
- Throws:
ResourceStoreException
-
getSecurityObject
public T getSecurityObject() throws ResourceStoreException
- Specified by:
getSecurityObject
in interfaceSecurityObjectWrapper<T>
- Throws:
ResourceStoreException
-
hasChanged
public boolean hasChanged()
- Specified by:
hasChanged
in interfaceSecurityObjectWrapper<T>
-
-