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

java.lang.Object
  |
  +--org.globus.wsrf.impl.security.descriptor.SecurityConfig
        |
        +--org.globus.wsrf.impl.security.descriptor.ServiceSecurityConfig

public class ServiceSecurityConfig
extends SecurityConfig

Helper class for initialization of service security descriptor. All values returned from this class are determined by the security descriptor file configured for the said service. If a file was not configured, null is returned.


Fields inherited from class org.globus.wsrf.impl.security.descriptor.SecurityConfig
CONT_SEC_DESCRIPTOR, SECURITY_DESCRIPTOR, SECURITY_INIT_NAME, SECURITY_PROP
 
Method Summary
static ServiceAuthorization getCustomAuthz(String jndiPath)
          Retrieves the configured custom authorization class.
static GridMap getGridMap(String jndiPath)
          Retrieves the GridMap for this service
static ServiceSecurityDescriptor getSecurityDescriptor(String jndiPath)
          Retrieves the ServiceSecurityDescriptor for this service
static Subject getSubject(String jndiPath)
          Retrieves the Subject for this service
static Subject getSubject(String servicePath, String descFile)
          Returns subject configured in security descriptor of the service
protected  void initCredentials()
           
static void initialize(String servicePath, String descFile)
           
protected  void initSecurityDescriptor(Document doc)
           
static void refresh(String jndiPath, String descFilename)
          Reloads the credentials, if need be.
static void setGridMap(GridMap gridmap, String jndiPath)
          Stores the GridMap for this service, overwriting whatever exists.
static void setSecurityDescriptor(ServiceSecurityDescriptor desc, String jndiPath)
          Stores the ServiceSecurityDescriptor for this service, overwriting whatever exists.
static void setSubject(Subject subject, String jndiPath)
          Stores the Subject for this service, overwriting whatever exists.
 
Methods inherited from class org.globus.wsrf.impl.security.descriptor.SecurityConfig
initialize, initSecurityDescriptor, isInitialized, isRefreshRequired, isRefreshRequired, loadAuthorization, loadCredentials, loadGridMap, loadSecurityDescriptor, retrieveCustomAuthz, retrieveGridMap, retrieveSecurityDescriptor, retrieveSubject, storeGridMap, storeSecurityDescriptor, storeSecurityDescriptor, storeSubject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

public static void initialize(String servicePath,
                              String descFile)
                       throws ConfigException

initSecurityDescriptor

protected void initSecurityDescriptor(Document doc)
                               throws ConfigException
Overrides:
initSecurityDescriptor in class SecurityConfig

initCredentials

protected void initCredentials()
                        throws ConfigException
Overrides:
initCredentials in class SecurityConfig

getSubject

public static Subject getSubject(String servicePath,
                                 String descFile)
                          throws ConfigException
Returns subject configured in security descriptor of the service

refresh

public static void refresh(String jndiPath,
                           String descFilename)
                    throws ConfigException
Reloads the credentials, if need be.

setSubject

public static void setSubject(Subject subject,
                              String jndiPath)
                       throws ConfigException
Stores the Subject for this service, overwriting whatever exists.
Note: If this method is used, then when a refresh is called, it overwrites the subject with whatever subject is generated from the credentials configured in the security descriptor. If no security desacriptor file was specified, these credentials are never refreshed.

setGridMap

public static void setGridMap(GridMap gridmap,
                              String jndiPath)
                       throws ConfigException
Stores the GridMap for this service, overwriting whatever exists.

setSecurityDescriptor

public static void setSecurityDescriptor(ServiceSecurityDescriptor desc,
                                         String jndiPath)
                                  throws ConfigException
Stores the ServiceSecurityDescriptor for this service, overwriting whatever exists.

getSubject

public static Subject getSubject(String jndiPath)
                          throws ConfigException
Retrieves the Subject for this service

getGridMap

public static GridMap getGridMap(String jndiPath)
                          throws ConfigException
Retrieves the GridMap for this service

getSecurityDescriptor

public static ServiceSecurityDescriptor getSecurityDescriptor(String jndiPath)
                                                       throws ConfigException
Retrieves the ServiceSecurityDescriptor for this service

getCustomAuthz

public static ServiceAuthorization getCustomAuthz(String jndiPath)
                                           throws ConfigException
Retrieves the configured custom authorization class.


Copyright © 1999-2003 University of Chicago and The University of Southern California. All rights reserved.