|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.delegation.service.DelegationResource
public class DelegationResource
| Field Summary | |
|---|---|
private java.lang.String |
callerDN
|
private org.globus.gsi.GlobusCredential |
credential
|
private ResourceSecurityDescriptor |
desc
|
private static org.globus.util.I18n |
i18n
|
private java.util.HashMap |
listeners
|
private java.lang.String |
localName
|
(package private) static org.apache.commons.logging.Log |
logger
|
private FilePersistenceHelper |
persistenceHelper
|
private ResourcePropertySet |
propSet
|
private java.lang.String |
resourceId
|
static javax.xml.namespace.QName |
RP_SET
|
private java.util.Calendar |
terminationTime
|
| Constructor Summary | |
|---|---|
DelegationResource()
|
|
| Method Summary | |
|---|---|
private void |
addListener(DelegationListener listener)
|
void |
addRefreshListener(DelegationListener listener)
Register listener. |
void |
addRefreshListener(DelegationListener listener,
javax.security.auth.Subject subject)
Register listener. |
private void |
authorize()
|
private void |
authorize(java.lang.String callerDN)
|
private void |
authorize(javax.security.auth.Subject subject)
|
void |
create(org.apache.ws.security.message.token.BinarySecurity _token,
java.lang.String _callerDN,
java.lang.String _localName,
java.lang.String _resourceDescPath,
java.lang.String id)
Called only at resource creation time. |
private java.security.cert.X509Certificate[] |
getCertificateChain(org.apache.ws.security.message.token.BinarySecurity token)
|
org.globus.gsi.GlobusCredential |
getCredential()
Retireve credential. |
org.globus.gsi.GlobusCredential |
getCredential(javax.security.auth.Subject subject)
Retrieve credential. |
java.util.Calendar |
getCurrentTime()
|
java.lang.Object |
getID()
Resource identifier interface |
private java.io.File |
getKeyAsFile(java.lang.Object key)
|
protected FilePersistenceHelper |
getPersistenceHelper()
|
ResourcePropertySet |
getResourcePropertySet()
Resource property interface |
ResourceSecurityDescriptor |
getSecurityDescriptor()
Secure resource interface |
java.util.Calendar |
getTerminationTime()
|
private void |
initialize()
|
void |
load(ResourceKey key)
Loads and sets up the resource - credential, expiration time, listeners and security descriptor. |
private void |
notifyCredentialDelete()
|
private void |
notifyListeners()
|
void |
remove()
Remove callback interface |
void |
removeRefreshListener(java.lang.String listenerId)
Remove listener. |
private void |
setExpirationTime()
|
private void |
setResourceDescriptor(java.lang.String resourceDescPath)
|
void |
setTerminationTime(java.util.Calendar _terminationTime)
Resource lifetime interface |
private void |
setTerminationTimeProperty()
|
private void |
setToken(org.apache.ws.security.message.token.BinarySecurity token)
|
void |
store()
Persists the credential, callerDN, localName, resourceDescPath, termination time and listeners |
void |
storeToken(org.apache.ws.security.message.token.BinarySecurity token)
Called on refresh. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ResourceSecurityDescriptor desc
private static org.globus.util.I18n i18n
static org.apache.commons.logging.Log logger
private FilePersistenceHelper persistenceHelper
private org.globus.gsi.GlobusCredential credential
private java.lang.String callerDN
private java.lang.String localName
private java.util.Calendar terminationTime
private java.util.HashMap listeners
private java.lang.String resourceId
private ResourcePropertySet propSet
public static final javax.xml.namespace.QName RP_SET
| Constructor Detail |
|---|
public DelegationResource()
| Method Detail |
|---|
public void create(org.apache.ws.security.message.token.BinarySecurity _token,
java.lang.String _callerDN,
java.lang.String _localName,
java.lang.String _resourceDescPath,
java.lang.String id)
throws DelegationException
DelegationException
public void storeToken(org.apache.ws.security.message.token.BinarySecurity token)
throws DelegationException
DelegationException
public org.globus.gsi.GlobusCredential getCredential()
throws DelegationException
DelegationException
public org.globus.gsi.GlobusCredential getCredential(javax.security.auth.Subject subject)
throws DelegationException
DelegationException
public void addRefreshListener(DelegationListener listener)
throws DelegationException
DelegationException
public void addRefreshListener(DelegationListener listener,
javax.security.auth.Subject subject)
throws DelegationException
DelegationExceptionpublic void removeRefreshListener(java.lang.String listenerId)
public ResourcePropertySet getResourcePropertySet()
getResourcePropertySet in interface ResourcePropertiespublic java.lang.Object getID()
getID in interface ResourceIdentifierpublic void setTerminationTime(java.util.Calendar _terminationTime)
setTerminationTime in interface ResourceLifetimepublic java.util.Calendar getTerminationTime()
getTerminationTime in interface ResourceLifetimepublic java.util.Calendar getCurrentTime()
getCurrentTime in interface ResourceLifetimepublic ResourceSecurityDescriptor getSecurityDescriptor()
getSecurityDescriptor in interface SecureResource
public void remove()
throws ResourceException
remove in interface RemoveCallbackResourceException
private void initialize()
throws DelegationException
DelegationException
private void setToken(org.apache.ws.security.message.token.BinarySecurity token)
throws DelegationException
DelegationException
private void addListener(DelegationListener listener)
throws DelegationException
DelegationExceptionprivate void setTerminationTimeProperty()
private java.security.cert.X509Certificate[] getCertificateChain(org.apache.ws.security.message.token.BinarySecurity token)
throws DelegationException
DelegationExceptionprivate void setExpirationTime()
private void notifyListeners()
throws DelegationException
DelegationException
private void setResourceDescriptor(java.lang.String resourceDescPath)
throws DelegationException
DelegationException
private void authorize(javax.security.auth.Subject subject)
throws DelegationException
DelegationException
private void authorize()
throws DelegationException
DelegationException
private void authorize(java.lang.String callerDN)
throws DelegationException
DelegationException
public void load(ResourceKey key)
throws ResourceException,
NoSuchResourceException,
InvalidResourceKeyException
load in interface PersistenceCallbackResourceException
NoSuchResourceException
InvalidResourceKeyException
public void store()
throws ResourceException
store in interface PersistenceCallbackResourceExceptionprotected FilePersistenceHelper getPersistenceHelper()
private java.io.File getKeyAsFile(java.lang.Object key)
throws InvalidResourceKeyException
InvalidResourceKeyExceptionprivate void notifyCredentialDelete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||