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 Object
implements SecurityObjectWrapper<T>, Storable
// JGLOBUS-91 : add javadoc
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private final long
private boolean
protected GlobusResource
private boolean
private long
private long
private org.apache.commons.logging.Log
private T
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
create
(GlobusResource targetResource) getAlias()
getFile()
boolean
protected void
protected void
protected void
init
(GlobusResource initialResource) protected void
init
(GlobusResource initialResource, T initialSecurityObject) void
refresh()
-
Field Details
-
globusResolver
-
globusResource
-
logger
private org.apache.commons.logging.Log logger -
changed
private boolean changed -
securityObject
-
lastModified
private long lastModified -
lastRefresh
private long lastRefresh -
cacheLifetime
private final long cacheLifetime -
alias
-
inMemory
private boolean inMemory
-
-
Constructor Details
-
AbstractResourceSecurityWrapper
protected AbstractResourceSecurityWrapper(boolean inMemory)
-
-
Method Details
-
init
- Throws:
ResourceStoreException
-
init
- Throws:
ResourceStoreException
-
getAlias
- Specified by:
getAlias
in interfaceSecurityObjectWrapper<T>
-
init
- Throws:
ResourceStoreException
-
init
protected void init(GlobusResource initialResource, T initialSecurityObject) throws ResourceStoreException - Throws:
ResourceStoreException
-
getGlobusResource
-
getResourceURL
-
getFile
-
refresh
- Specified by:
refresh
in interfaceSecurityObjectWrapper<T>
- Throws:
ResourceStoreException
-
create
- Throws:
ResourceStoreException
-
getSecurityObject
- Specified by:
getSecurityObject
in interfaceSecurityObjectWrapper<T>
- Throws:
ResourceStoreException
-
hasChanged
public boolean hasChanged()- Specified by:
hasChanged
in interfaceSecurityObjectWrapper<T>
-