|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.security.descriptor.SecurityConfig
org.globus.wsrf.impl.security.descriptor.ContainerSecurityConfig
Helper class for initialization of container security descriptor. All values returned from this class are determined by the security descriptor file configured for the container. If a file was not configured, null is returned for all values, other than subject. If no file was configured or credential was not configured, then default credentials, if present, are used.
| Field Summary | |
(package private) org.ietf.jgss.GSSCredential |
defaultCredential
|
(package private) boolean |
defaultCredUsed
|
private static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
private java.util.Map |
properties
|
protected static ContainerSecurityConfig |
securityConfig
|
| 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 | |
(package private) |
ContainerSecurityConfig(java.lang.String descFile)
|
| Method Summary | |
ServiceAuthorizationChain |
getAuthzChain()
Retrieves the ServiceAuthorizationChain for the container |
static ContainerSecurityConfig |
getConfig()
Returns container config object, assuming container security config filename is set in the global deployment descriptor as paramater CONT_SEC_DESCRIPTOR |
static ContainerSecurityConfig |
getConfig(java.lang.String secDescFilename)
|
private javax.security.auth.Subject |
getDefaultSubject()
|
org.globus.security.gridmap.GridMap |
getGridMap()
Retrieves the GridMap for the container |
private static java.lang.String |
getSecurityDescFile()
|
ContainerSecurityDescriptor |
getSecurityDescriptor()
Retrieves the ContainerSecurityDescriptor for this service |
java.lang.String |
getSecurityDescriptorFile()
Returns the container security descriptor filename |
javax.security.auth.Subject |
getSubject()
Retrieves the Subject for the container |
protected void |
initCredentials()
|
protected void |
initialize()
|
protected void |
initSecurityDescriptor(org.w3c.dom.Document doc)
|
protected boolean |
isInitialized()
|
protected void |
loadAuthorization()
|
void |
refresh()
Reloads the credentials, if need be. |
void |
setAuthzChain(ServiceAuthorizationChain authzChain)
Stores the ServiceAuthorizationChain for
container, overwriting whatever exists. |
void |
setGridMap(org.globus.security.gridmap.GridMap gridMap)
Stores the GridMap for container, overwriting whatever
exists. |
protected void |
setInitialized(boolean init)
|
void |
setSecurityDescriptor(ContainerSecurityDescriptor desc)
Stores the ContainerSecurityDescriptor for this
service, overwriting whatever exists. |
void |
setSubject(javax.security.auth.Subject subject)
Stores the Subject for container, overwriting whatever
exists. |
protected void |
storeSecurityDescriptor()
|
| Methods inherited from class org.globus.wsrf.impl.security.descriptor.SecurityConfig |
initSecurityDescriptor, isInitialized, isRefreshRequired, loadCredentials, loadGridMap, loadSecurityDescriptor, loadSecurityDescriptor, putObject, retrieveAuthzChain, retrieveGridMap, retrieveSecurityDescriptor, retrieveSubject, storeAuthzChain, storeGridMap, storeSecurityDescriptor, storeSubject, toGSSCredential |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
protected static ContainerSecurityConfig securityConfig
org.ietf.jgss.GSSCredential defaultCredential
boolean defaultCredUsed
private java.util.Map properties
| Constructor Detail |
ContainerSecurityConfig(java.lang.String descFile)
| Method Detail |
public static ContainerSecurityConfig getConfig()
throws ConfigException
CONT_SEC_DESCRIPTOR
ConfigException
public static ContainerSecurityConfig getConfig(java.lang.String secDescFilename)
throws ConfigException
ConfigException
protected void storeSecurityDescriptor()
throws ConfigException
storeSecurityDescriptor in class SecurityConfigConfigException
protected void initialize()
throws ConfigException
initialize in class SecurityConfigConfigException
protected boolean isInitialized()
throws ConfigException
ConfigException
protected void setInitialized(boolean init)
throws ConfigException
setInitialized in class SecurityConfigConfigException
protected void initSecurityDescriptor(org.w3c.dom.Document doc)
throws ConfigException
initSecurityDescriptor in class SecurityConfigConfigException
protected void loadAuthorization()
throws ConfigException
loadAuthorization in class SecurityConfigConfigException
protected void initCredentials()
throws ConfigException
initCredentials in class SecurityConfigConfigException
private javax.security.auth.Subject getDefaultSubject()
throws ConfigException
ConfigException
private static java.lang.String getSecurityDescFile()
throws ConfigException
ConfigException
public void refresh()
throws ConfigException
ConfigException
public javax.security.auth.Subject getSubject()
throws ConfigException
Subject for the container
ConfigException
public org.globus.security.gridmap.GridMap getGridMap()
throws ConfigException
GridMap for the container
ConfigException
public ServiceAuthorizationChain getAuthzChain()
throws ConfigException
ServiceAuthorizationChain for the container
ConfigException
public ContainerSecurityDescriptor getSecurityDescriptor()
throws ConfigException
ContainerSecurityDescriptor for this service
ConfigException
public void setSubject(javax.security.auth.Subject subject)
throws ConfigException
Subject for container, overwriting whatever
exists. refresh
is called, it overwrites the subject with whatever subject is
generated from the credentials configured in the security
descriptor or default credential
ConfigException
public void setGridMap(org.globus.security.gridmap.GridMap gridMap)
throws ConfigException
GridMap for container, overwriting whatever
exists.
ConfigException
public void setAuthzChain(ServiceAuthorizationChain authzChain)
throws ConfigException
ServiceAuthorizationChain for
container, overwriting whatever exists.
ConfigException
public void setSecurityDescriptor(ContainerSecurityDescriptor desc)
throws ConfigException
ContainerSecurityDescriptor for this
service, overwriting whatever exists.
ConfigExceptionpublic java.lang.String getSecurityDescriptorFile()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||