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

java.lang.Object
  extended byorg.globus.wsrf.impl.security.descriptor.util.ElementParser
      extended byorg.globus.wsrf.impl.security.descriptor.SecurityDescriptor
          extended byorg.globus.wsrf.impl.security.descriptor.ServiceSecurityDescriptor
All Implemented Interfaces:
AuthMethodParserCallback, AuthzParamParserCallback, CredentialParamsParserCallback, ElementHandler, GlobalParamsParserCallback, RunAsParserCallback
Direct Known Subclasses:
ResourceSecurityDescriptor

public class ServiceSecurityDescriptor
extends SecurityDescriptor
implements RunAsParserCallback, AuthMethodParserCallback

Represents a service's security descriptor.


Field Summary
 
Fields inherited from class org.globus.wsrf.impl.security.descriptor.SecurityDescriptor
i18n, NS, RESOURCE
 
Fields inherited from class org.globus.wsrf.impl.security.descriptor.util.ElementParser
elementHandlers
 
Constructor Summary
ServiceSecurityDescriptor()
           
 
Method Summary
 List getAuthMethods(QName method)
           
 List getDefaultAuthMethods()
           
 int getDefaultRunAsType()
           
 String getRequiredAuthMethodsErrorMessage(List methods, QName opName)
           
 int getRunAsType(QName method)
           
 void setAuthMethods(List authMethods)
          Sets the authentication mechanism required for invocation of methods.
 void setAuthMethods(List authMethods, boolean overwrite)
          Sets the authentication mechanism required for invocation of methods.
 void setMethodAuthMethods(QName method, List authMethods)
          Sets the authentication mechanism required for invocation of said method.
 void setMethodAuthMethods(QName method, List authMethods, boolean overwrite)
          Sets the authentication mechanism required for invocation of said method.
 void setMethodRunAsType(QName method, int identity)
          Sets the credentials that need to be used in invoking method
 void setMethodRunAsType(QName method, int identity, boolean overwrite)
          Sets the credentials that need to be used in invoking method
 void setRunAsType(int runAsType)
          Sets the credentials that need to be used in invocation of methods that do not have any run-as specified using setMethodRunAsType.
 void setRunAsType(int runAsType, boolean overwrite)
          Sets the credentials that need to be used in invocation of methods that do not have any run-as specified using setMethodRunAsType.
 
Methods inherited from class org.globus.wsrf.impl.security.descriptor.SecurityDescriptor
getAuthz, getCertFilename, getContextLifetime, getCustomAuthzClass, getCustomAuthzClassName, getGridMap, getGridMapFile, getKeyFilename, getLastModified, getProxyFilename, getRejectLimitedProxyState, getReplayAttackFilter, getReplayAttackWindow, getSubject, setAuthz, setCertificateFiles, setContextLifetime, setCustomAuthzClass, setCustomAuthzClassName, setGridMap, setGridMapFile, setLastModified, setProxyFilename, setRejectLimitedProxy, setReplayAttackFilter, setReplayAttackWindow, setSubject
 
Methods inherited from class org.globus.wsrf.impl.security.descriptor.util.ElementParser
checkElement, getFirstChildElement, getQName, parse, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceSecurityDescriptor

public ServiceSecurityDescriptor()
Method Detail

setRunAsType

public void setRunAsType(int runAsType)
                  throws SecurityDescriptorException
Sets the credentials that need to be used in invocation of methods that do not have any run-as specified using setMethodRunAsType.

Specified by:
setRunAsType in interface RunAsParserCallback
Parameters:
runAsType - can be one of RunAsConstants
Throws:
SecurityDescriptorException

setRunAsType

public void setRunAsType(int runAsType,
                         boolean overwrite)
                  throws SecurityDescriptorException
Sets the credentials that need to be used in invocation of methods that do not have any run-as specified using setMethodRunAsType.

Parameters:
runAsType - can be one of RunAsConstants
overwrite - if true, overwrite existing configuration
Throws:
SecurityDescriptorException

setMethodRunAsType

public void setMethodRunAsType(QName method,
                               int identity)
                        throws SecurityDescriptorException
Sets the credentials that need to be used in invoking method

Parameters:
method - method name
identity - can be one of RunAsConstants
Throws:
SecurityDescriptorException

setMethodRunAsType

public void setMethodRunAsType(QName method,
                               int identity,
                               boolean overwrite)
                        throws SecurityDescriptorException
Sets the credentials that need to be used in invoking method

Parameters:
method - method name
identity - can be one of RunAsConstants
overwrite - if true, overwrite existing configuration
Throws:
SecurityDescriptorException

setAuthMethods

public void setAuthMethods(List authMethods)
                    throws SecurityDescriptorException
Sets the authentication mechanism required for invocation of methods.

Specified by:
setAuthMethods in interface AuthMethodParserCallback
Parameters:
authMethods - list of authentication mechanism that implement AuthMethod
Throws:
SecurityDescriptorException

setAuthMethods

public void setAuthMethods(List authMethods,
                           boolean overwrite)
                    throws SecurityDescriptorException
Sets the authentication mechanism required for invocation of methods.

Parameters:
authMethods - list of authentication mechanism that implement AuthMethod
overwrite - if true, overwrite existing configuration
Throws:
SecurityDescriptorException

setMethodAuthMethods

public void setMethodAuthMethods(QName method,
                                 List authMethods)
                          throws SecurityDescriptorException
Sets the authentication mechanism required for invocation of said method.

Parameters:
method - method name
authMethods - list of authentication mechanism that implement AuthMethod
Throws:
SecurityDescriptorException

setMethodAuthMethods

public void setMethodAuthMethods(QName method,
                                 List authMethods,
                                 boolean overwrite)
                          throws SecurityDescriptorException
Sets the authentication mechanism required for invocation of said method.

Parameters:
method - method name
authMethods - list of authentication mechanism that implement AuthMethod
overwrite - if true, overwrite existing configuration
Throws:
SecurityDescriptorException

getDefaultRunAsType

public int getDefaultRunAsType()

getRunAsType

public int getRunAsType(QName method)

getDefaultAuthMethods

public List getDefaultAuthMethods()

getAuthMethods

public List getAuthMethods(QName method)

getRequiredAuthMethodsErrorMessage

public String getRequiredAuthMethodsErrorMessage(List methods,
                                                 QName opName)


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