edu.isi.pegasus.common.credential.impl
Class Proxy

java.lang.Object
  extended by edu.isi.pegasus.common.credential.impl.Abstract
      extended by edu.isi.pegasus.common.credential.impl.Proxy
All Implemented Interfaces:
CredentialHandler

public class Proxy
extends Abstract
implements CredentialHandler

A convenice class that allows us to determine the path to the user proxy.

Version:
$Revision: 4817 $
Author:
Karan Vahi

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.isi.pegasus.common.credential.CredentialHandler
CredentialHandler.TYPE
 
Field Summary
private static String DESCRIPTION
          The description.
static String X509_USER_PROXY_KEY
          The name of the environment variable that specifies the path to the proxy.
 
Fields inherited from class edu.isi.pegasus.common.credential.impl.Abstract
mLogger, mProps, mSiteStore
 
Fields inherited from interface edu.isi.pegasus.common.credential.CredentialHandler
VERSION
 
Constructor Summary
Proxy()
          The default constructor.
 
Method Summary
 String getBaseName()
          returns the basename of the path to the local credential
 String getDescription()
          Returns the description for the implementing handler
 String getEnvironmentVariable()
          Returns the name of the environment variable that needs to be set for the job associated with the credential.
 String getPath(String site)
          Returns the path to user proxy.
 
Methods inherited from class edu.isi.pegasus.common.credential.impl.Abstract
getPath, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.isi.pegasus.common.credential.CredentialHandler
getPath, initialize
 

Field Detail

X509_USER_PROXY_KEY

public static final String X509_USER_PROXY_KEY
The name of the environment variable that specifies the path to the proxy.

See Also:
Constant Field Values

DESCRIPTION

private static final String DESCRIPTION
The description.

See Also:
Constant Field Values
Constructor Detail

Proxy

public Proxy()
The default constructor.

Method Detail

getPath

public String getPath(String site)
Returns the path to user proxy. The order of preference is as follows - If a proxy is specified in the site catalog entry that is used - Else the one pointed to by the environment variable X509_USER_PROXY - Else the default path to the proxy in /tmp is created as determined by CoGProperties.getDefault().getProxyFile()

Specified by:
getPath in interface CredentialHandler
Parameters:
site - the site catalog entry object.
Returns:
the path to user proxy.

getBaseName

public String getBaseName()
returns the basename of the path to the local credential

Specified by:
getBaseName in interface CredentialHandler
Returns:

getEnvironmentVariable

public String getEnvironmentVariable()
Returns the name of the environment variable that needs to be set for the job associated with the credential.

Specified by:
getEnvironmentVariable in interface CredentialHandler
Returns:
the name of the environment variable.

getDescription

public String getDescription()
Returns the description for the implementing handler

Specified by:
getDescription in interface CredentialHandler
Returns:
description


Copyright © 2011 The University of Southern California. All Rights Reserved.