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 private java.lang.String
alias
private long
cacheLifetime
private boolean
changed
protected GlobusPathMatchingResourcePatternResolver
globusResolver
protected GlobusResource
globusResource
private boolean
inMemory
private long
lastModified
private long
lastRefresh
private org.apache.commons.logging.Log
logger
private T
securityObject
-
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
-
logger
private org.apache.commons.logging.Log logger
-
changed
private boolean changed
-
securityObject
private T securityObject
-
lastModified
private long lastModified
-
lastRefresh
private long lastRefresh
-
cacheLifetime
private final long cacheLifetime
-
alias
private java.lang.String alias
-
inMemory
private boolean inMemory
-
-
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>
-
-