|
|||||||||||
| 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.ServiceSecurityConfig
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.
| Field Summary | |
private static org.globus.util.I18n |
i18n
|
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 | |
(package private) |
ServiceSecurityConfig(java.lang.String jndiPath,
ServiceSecurityDescriptor desc)
|
(package private) |
ServiceSecurityConfig(java.lang.String servicePath,
java.lang.String descFilename)
|
| Method Summary | |
static ServiceAuthorizationChain |
getAuthzChain(java.lang.String servicePath)
Returns authz chain configured in security descriptor of the service |
static org.globus.security.gridmap.GridMap |
getGridMap(java.lang.String jndiPath)
Retrieves the GridMap for this service |
static ServiceSecurityDescriptor |
getSecurityDescriptor()
Retrieves the ServiceSecurityDescriptor for the current
service |
static ServiceSecurityDescriptor |
getSecurityDescriptor(java.lang.String jndiPath)
Retrieves the ServiceSecurityDescriptor for this service |
static javax.security.auth.Subject |
getSubject(java.lang.String servicePath)
Returns subject configured in security descriptor of the service |
protected void |
initCredentials()
|
protected void |
initialize()
|
static void |
initialize(org.apache.axis.MessageContext msgCtx)
|
static void |
initialize(java.lang.String servicePath)
|
static void |
initialize(java.lang.String servicePath,
java.lang.String serviceDescFile)
|
protected void |
initSecurityDescriptor(org.w3c.dom.Document doc)
|
protected void |
loadAuthorization()
|
static void |
refresh(java.lang.String jndiPath)
Reloads the credentials, if need be. |
static void |
setAuthzChain(ServiceAuthorizationChain authzChain,
java.lang.String jndiPath)
Stores the ServiceAuthorizationChain for this
service, overwriting whatever exists. |
static void |
setGridMap(org.globus.security.gridmap.GridMap gridmap,
java.lang.String jndiPath)
Stores the GridMap for this service, overwriting whatever
exists. |
static void |
setSecurityDescriptor(ServiceSecurityDescriptor desc,
java.lang.String jndiPath)
Stores the ServiceSecurityDescriptor for this
service, overwriting whatever exists. |
static void |
setSubject(javax.security.auth.Subject subject,
java.lang.String jndiPath)
Stores the Subject for this service, overwriting whatever
exists. |
| Methods inherited from class org.globus.wsrf.impl.security.descriptor.SecurityConfig |
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 |
private static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
| Constructor Detail |
ServiceSecurityConfig(java.lang.String jndiPath,
ServiceSecurityDescriptor desc)
ServiceSecurityConfig(java.lang.String servicePath,
java.lang.String descFilename)
throws SecurityException
| Method Detail |
public static void initialize(org.apache.axis.MessageContext msgCtx)
throws ConfigException,
SecurityException
ConfigException
SecurityException
public static void initialize(java.lang.String servicePath)
throws ConfigException,
SecurityException
ConfigException
SecurityException
public static void initialize(java.lang.String servicePath,
java.lang.String serviceDescFile)
throws ConfigException,
SecurityException
ConfigException
SecurityException
protected void initialize()
throws ConfigException
initialize in class SecurityConfigConfigException
protected void initSecurityDescriptor(org.w3c.dom.Document doc)
throws ConfigException
initSecurityDescriptor in class SecurityConfigConfigException
protected void initCredentials()
throws ConfigException
initCredentials in class SecurityConfigConfigException
protected void loadAuthorization()
throws ConfigException
loadAuthorization in class SecurityConfigConfigException
public static javax.security.auth.Subject getSubject(java.lang.String servicePath)
throws ConfigException,
SecurityException
ConfigException
SecurityException
public static ServiceAuthorizationChain getAuthzChain(java.lang.String servicePath)
throws ConfigException
ConfigException
public static void refresh(java.lang.String jndiPath)
throws ConfigException,
SecurityException
ConfigException
SecurityException
public static void setSubject(javax.security.auth.Subject subject,
java.lang.String jndiPath)
throws ConfigException
Subject for this service, overwriting whatever
exists. 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.
ConfigException
public static void setGridMap(org.globus.security.gridmap.GridMap gridmap,
java.lang.String jndiPath)
throws ConfigException
GridMap for this service, overwriting whatever
exists.
ConfigException
public static void setAuthzChain(ServiceAuthorizationChain authzChain,
java.lang.String jndiPath)
throws ConfigException
ServiceAuthorizationChain for this
service, overwriting whatever exists.
ConfigException
public static void setSecurityDescriptor(ServiceSecurityDescriptor desc,
java.lang.String jndiPath)
throws ConfigException
ServiceSecurityDescriptor for this
service, overwriting whatever exists.
ConfigException
public static org.globus.security.gridmap.GridMap getGridMap(java.lang.String jndiPath)
throws ConfigException
GridMap for this service
ConfigException
public static ServiceSecurityDescriptor getSecurityDescriptor(java.lang.String jndiPath)
throws ConfigException
ServiceSecurityDescriptor for this service
ConfigException
public static ServiceSecurityDescriptor getSecurityDescriptor()
throws ConfigException
ServiceSecurityDescriptor for the current
service
ConfigException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||