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

java.lang.Object
  extended by org.globus.wsrf.impl.security.descriptor.SecurityDescriptor
      extended by org.globus.wsrf.impl.security.descriptor.ServiceSecurityDescriptor
          extended by org.globus.wsrf.impl.security.descriptor.ResourceSecurityDescriptor
All Implemented Interfaces:
java.io.Serializable

public class ResourceSecurityDescriptor
extends ServiceSecurityDescriptor

Represents a resource secrity descriptor.

See Also:
Serialized Form

Field Summary
(package private)  boolean initialized
           
 
Fields inherited from class org.globus.wsrf.impl.security.descriptor.ServiceSecurityDescriptor
desc
 
Fields inherited from class org.globus.wsrf.impl.security.descriptor.SecurityDescriptor
authzEngine, bootstrapOverwrite, CERT_ENV_VARIABLE, i18n, KEY_ENV_VARIABLE, lastModified, PROXY_ENV_VARIABLE, RESOURCE, subject
 
Constructor Summary
ResourceSecurityDescriptor()
           
ResourceSecurityDescriptor(ServiceSecurityConfig desc_)
           
ResourceSecurityDescriptor(java.lang.String resourceDescFilename)
           
 
Method Summary
 void initialize()
          Initializes the descriptor, if initialized is set to false.
 boolean isInitialized()
          Returns of descriptor has been initialized
 void refresh()
           
 void setInitialized(boolean state)
          Sets property to indicate of descriptor has been initialized.
 void setPDP(java.lang.String pdpName)
           
 
Methods inherited from class org.globus.wsrf.impl.security.descriptor.ServiceSecurityDescriptor
addBootstrapPIP, addPDP, addPIP, getAuthMethods, getAuthMethods, getCertKeyFileName, getContextLifetime, getDefaultAuthMethods, getDefaultGridMap, getDefaultRunAs, getMethodAuthMethod, getMethodRunAs, getProxyFileName, getRejectLimitedProxy, getReplayAttackFilter, getReplayAttackWindow, getRequiredAuthMethodsErrorMessage, getRunAsType, getRunAsType, getSecurityDescriptor, initAuthenticationConfig, initAuthorizationConfig, initialize, isRefreshRequired, loadCredential, loadCredentials, setAuthMethods, setAuthMethods, setBootstrapPIP, setDefaultAuthMethods, setDefaultGridMap, setDefaultRunAs, setMethodAuthMethod, setMethodRunAs, setPDP, setPIP, setRunAsType, setRunAsType
 
Methods inherited from class org.globus.wsrf.impl.security.descriptor.SecurityDescriptor
getAuthzEngine, getLastModified, getSubject, isBootstrapOverwrite, setAuthzEngine, setBootstrapOverwrite, setLastModified, setSubject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

boolean initialized
Constructor Detail

ResourceSecurityDescriptor

public ResourceSecurityDescriptor()

ResourceSecurityDescriptor

public ResourceSecurityDescriptor(java.lang.String resourceDescFilename)
                           throws ConfigException
Throws:
ConfigException

ResourceSecurityDescriptor

public ResourceSecurityDescriptor(ServiceSecurityConfig desc_)
                           throws ConfigException
Throws:
ConfigException
Method Detail

initialize

public void initialize()
                throws ConfigException
Initializes the descriptor, if initialized is set to false.

Throws:
ConfigException

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.


isInitialized

public boolean isInitialized()
Returns of descriptor has been initialized


setPDP

public void setPDP(java.lang.String pdpName)
            throws ConfigException
Throws:
ConfigException

refresh

public void refresh()
             throws ConfigException
Overrides:
refresh in class SecurityDescriptor
Throws:
ConfigException