org.globus.wsrf.impl.security.descriptor
Class ResourceSecurityDescriptor

java.lang.Object
  extended byorg.globus.wsrf.impl.security.descriptor.util.ElementParser
      extended byorg.globus.wsrf.impl.security.descriptor.SecurityDescriptor
          extended byorg.globus.wsrf.impl.security.descriptor.ServiceSecurityDescriptor
              extended byorg.globus.wsrf.impl.security.descriptor.ResourceSecurityDescriptor
All Implemented Interfaces:
AuthMethodParserCallback, AuthzParamParserCallback, CredentialParamsParserCallback, ElementHandler, GlobalParamsParserCallback, RunAsParserCallback, java.io.Serializable

public class ResourceSecurityDescriptor
extends ServiceSecurityDescriptor

Represents a resouce's security descriptor.

See Also:
Serialized Form

Field Summary
(package private)  ServiceAuthorizationChain authzChain
           
(package private)  boolean initialized
           
 
Fields inherited from class org.globus.wsrf.impl.security.descriptor.ServiceSecurityDescriptor
 
Fields inherited from class org.globus.wsrf.impl.security.descriptor.SecurityDescriptor
i18n, NS, RESOURCE
 
Fields inherited from class org.globus.wsrf.impl.security.descriptor.util.ElementParser
elementHandlers
 
Constructor Summary
ResourceSecurityDescriptor()
           
 
Method Summary
 ServiceAuthorizationChain getAuthzChain()
          Returns the configured service authorization chain
 boolean getInitialized()
          Returns of descriptor has been initialized
 void setAuthzChain(ServiceAuthorizationChain chain)
          Sets the authorization chain in descriptor
 void setAuthzChain(java.lang.String chain, PDPConfig config, java.lang.String name, java.lang.String id)
          Construct a ServiceAuthorizationChain object and sets the instance in the descriptor.
 void setInitialized(boolean state)
          Sets property to indicate of descriptor has been initialized.
 
Methods inherited from class org.globus.wsrf.impl.security.descriptor.ServiceSecurityDescriptor
getAuthMethods, getDefaultAuthMethods, getDefaultRunAsType, getRequiredAuthMethodsErrorMessage, getRunAsType, setAuthMethods, setAuthMethods, setMethodAuthMethods, setMethodAuthMethods, setMethodRunAsType, setMethodRunAsType, setRunAsType, setRunAsType
 
Methods inherited from class org.globus.wsrf.impl.security.descriptor.SecurityDescriptor
getAuthz, getCertFilename, getContextLifetime, getGridMap, getGridMapFile, getKeyFilename, getLastModified, getProxyFilename, getRejectLimitedProxyState, getReplayAttackFilter, getReplayAttackWindow, getSubject, isRefreshRequired, setAuthz, setCertificateFiles, setContextLifetime, setGridMap, setGridMapFile, setLastModified, setProxyFilename, setRejectLimitedProxy, setReplayAttackFilter, setReplayAttackWindow, setSubject
 
Methods inherited from class org.globus.wsrf.impl.security.descriptor.util.ElementParser
checkElement, getFirstChildElement, getQName, parse, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

boolean initialized

authzChain

ServiceAuthorizationChain authzChain
Constructor Detail

ResourceSecurityDescriptor

public ResourceSecurityDescriptor()
Method Detail

setInitialized

public void setInitialized(boolean state)
Sets property to indicate of descriptor has been initialized. If true, then credentials and gridmap are assumed to be loaded. To force initialization by framework (i.e loading of credentials/gridmap from file), set it to false.


getInitialized

public boolean getInitialized()
Returns of descriptor has been initialized


setAuthzChain

public void setAuthzChain(java.lang.String chain,
                          PDPConfig config,
                          java.lang.String name,
                          java.lang.String id)
                   throws InitializeException
Construct a ServiceAuthorizationChain object and sets the instance in the descriptor.

Throws:
InitializeException

setAuthzChain

public void setAuthzChain(ServiceAuthorizationChain chain)
Sets the authorization chain in descriptor

Overrides:
setAuthzChain in class SecurityDescriptor
Parameters:
chain - Instance of ServiceAuthorizationChain

getAuthzChain

public ServiceAuthorizationChain getAuthzChain()
Returns the configured service authorization chain

Overrides:
getAuthzChain in class SecurityDescriptor
Returns:
Instance of ServiceAuthorizationChain