org.globus.exec.service.test.throughput.util
Class SecurityDescriptorUtil

java.lang.Object
  extended by org.globus.exec.service.test.throughput.util.SecurityDescriptorUtil

public class SecurityDescriptorUtil
extends java.lang.Object

This class handles security related tasks.


Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
SecurityDescriptorUtil()
           
 
Method Summary
 ClientSecurityDescriptor createClientSecurityDescriptor(java.lang.String pathToDescriptorFile)
           
 ClientSecurityDescriptor createClientSecurityDescriptor(java.lang.String securityType, Authorization authz, java.lang.Integer messageProtection, org.ietf.jgss.GSSCredential proxy)
          Create a client security descriptor with the given parameters.
 ClientSecurityDescriptor createClientSecurityDescriptor(java.lang.String securityType, Authorization authz, java.lang.Integer messageProtection, java.lang.String pathToProxy)
          Create a client security descriptor with the given parameters.
 ResourceSecurityDescriptor createResourceSecurityDescriptor(java.lang.String pathToResourceSecDesc)
          Create a resource security descriptor with the given parameters.
 ResourceSecurityDescriptor createResourceSecurityDescriptor(java.lang.String securityType, java.lang.String authorization)
          Create a resource security descriptor with the given parameters.
private  void enrichClientSecurityDescriptor(ClientSecurityDescriptor secDesc, java.lang.String securityType, Authorization authz, java.lang.Integer messageProtection)
          Enrich client security descriptor with the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Constructor Detail

SecurityDescriptorUtil

public SecurityDescriptorUtil()
Method Detail

createClientSecurityDescriptor

public ClientSecurityDescriptor createClientSecurityDescriptor(java.lang.String pathToDescriptorFile)
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

createClientSecurityDescriptor

public ClientSecurityDescriptor createClientSecurityDescriptor(java.lang.String securityType,
                                                               Authorization authz,
                                                               java.lang.Integer messageProtection,
                                                               org.ietf.jgss.GSSCredential proxy)
                                                        throws java.lang.Exception
Create a client security descriptor with the given parameters.

Throws:
java.lang.Exception

createClientSecurityDescriptor

public ClientSecurityDescriptor createClientSecurityDescriptor(java.lang.String securityType,
                                                               Authorization authz,
                                                               java.lang.Integer messageProtection,
                                                               java.lang.String pathToProxy)
                                                        throws java.lang.Exception
Create a client security descriptor with the given parameters.

Throws:
java.lang.Exception

createResourceSecurityDescriptor

public ResourceSecurityDescriptor createResourceSecurityDescriptor(java.lang.String securityType,
                                                                   java.lang.String authorization)
                                                            throws ConfigException
Create a resource security descriptor with the given parameters. This is used for the notification consumer.

Throws:
ConfigException

createResourceSecurityDescriptor

public ResourceSecurityDescriptor createResourceSecurityDescriptor(java.lang.String pathToResourceSecDesc)
                                                            throws ConfigException
Create a resource security descriptor with the given parameters. This is used for the notification consumer.

Throws:
ConfigException

enrichClientSecurityDescriptor

private void enrichClientSecurityDescriptor(ClientSecurityDescriptor secDesc,
                                            java.lang.String securityType,
                                            Authorization authz,
                                            java.lang.Integer messageProtection)
                                     throws java.lang.Exception
Enrich client security descriptor with the given parameters.

Throws:
java.lang.Exception