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

java.lang.Object
  extended byorg.globus.wsrf.impl.security.descriptor.SecurityConfig
      extended byorg.globus.wsrf.impl.security.descriptor.ResourceSecurityConfig

public class ResourceSecurityConfig
extends SecurityConfig

Helper class for initialization of resource security descriptor. All values returned from this class are determined by the security descriptor object. The initialized property in ResourceSecurityDescriptor is used to determine if credentials/gridmap need to be loaded. If property is set to true, no initialization is done.


Field Summary
private static org.apache.commons.logging.Log logger
           
 
Fields inherited from class org.globus.wsrf.impl.security.descriptor.SecurityConfig
CONT_SEC_DESCRIPTOR, desc, descriptorFile, jndiPathName, SECURITY_DESCRIPTOR, SECURITY_INIT_NAME, SECURITY_PROP
 
Constructor Summary
ResourceSecurityConfig(ResourceSecurityDescriptor desc)
           
ResourceSecurityConfig(java.lang.String resourceDescFilename)
           
 
Method Summary
 ServiceAuthorizationChain getAuthzChain()
          Retrieves the ServiceAuthorizationChain.
 org.globus.security.gridmap.GridMap getGridMap()
          Retrieves the GridMap.
 ResourceSecurityDescriptor getSecurityDescriptor()
          Returns the ResourceSecurityDescriptor object.
 javax.security.auth.Subject getSubject()
          Retrieves the Subject.
 void init()
          Initializes the descriptor, if initialized is set to false.
protected  void initCredentials()
           
protected  void initSecurityDescriptor(org.w3c.dom.Document doc)
           
private  boolean isInitialized()
           
protected  void loadAuthorization()
           
 void refresh()
          Reloads the credentials, if need be.
 
Methods inherited from class org.globus.wsrf.impl.security.descriptor.SecurityConfig
initialize, initSecurityDescriptor, isInitialized, isRefreshRequired, loadCredentials, loadGridMap, loadSecurityDescriptor, loadSecurityDescriptor, putObject, retrieveAuthzChain, retrieveGridMap, retrieveSecurityDescriptor, retrieveSubject, setInitialized, storeAuthzChain, storeGridMap, storeSecurityDescriptor, storeSecurityDescriptor, storeSubject, toGSSCredential
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.commons.logging.Log logger
Constructor Detail

ResourceSecurityConfig

public ResourceSecurityConfig(java.lang.String resourceDescFilename)

ResourceSecurityConfig

public ResourceSecurityConfig(ResourceSecurityDescriptor desc)
Method Detail

init

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

Throws:
ConfigException

initSecurityDescriptor

protected void initSecurityDescriptor(org.w3c.dom.Document doc)
                               throws ConfigException
Specified by:
initSecurityDescriptor in class SecurityConfig
Throws:
ConfigException

initCredentials

protected void initCredentials()
                        throws ConfigException
Specified by:
initCredentials in class SecurityConfig
Throws:
ConfigException

loadAuthorization

protected void loadAuthorization()
                          throws ConfigException
Specified by:
loadAuthorization in class SecurityConfig
Throws:
ConfigException

refresh

public void refresh()
             throws ConfigException
Reloads the credentials, if need be.

Throws:
ConfigException

getSecurityDescriptor

public ResourceSecurityDescriptor getSecurityDescriptor()
Returns the ResourceSecurityDescriptor object.


getSubject

public javax.security.auth.Subject getSubject()
                                       throws ConfigException
Retrieves the Subject.
Note: If initialized property is set to true, credentials are not loaded from configured file.

Throws:
ConfigException

getGridMap

public org.globus.security.gridmap.GridMap getGridMap()
                                               throws ConfigException
Retrieves the GridMap.
Note: If initialized property is set to true, gridmap is not loaded from configured file.

Throws:
ConfigException

getAuthzChain

public ServiceAuthorizationChain getAuthzChain()
                                        throws ConfigException
Retrieves the ServiceAuthorizationChain.
Note: If initialized property is set to true, chain is not loaded from configured file.

Throws:
ConfigException

isInitialized

private boolean isInitialized()