org.globus.wsrf.impl.security.descriptor
Class ResourceSecurityConfig
java.lang.Object
org.globus.wsrf.impl.security.descriptor.SecurityConfig
org.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
|
| 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 |
logger
private static org.apache.commons.logging.Log logger
ResourceSecurityConfig
public ResourceSecurityConfig(java.lang.String resourceDescFilename)
ResourceSecurityConfig
public ResourceSecurityConfig(ResourceSecurityDescriptor desc)
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()