jlite
Class GridSessionConfig

java.lang.Object
  extended by jlite.GridSessionConfig

public class GridSessionConfig
extends java.lang.Object

Custom configuration of the grid session.
Use it to override the default configuration locations and options (refer to the user manual).
When instantiated it applies the default configuration, so you can also use getter methods to check the default values.

Author:
Oleg Sukhoroslov

Constructor Summary
GridSessionConfig()
          Applies the default configuration locations and options (refer to the user manual).
 
Method Summary
 void addVOMSServer(org.glite.voms.contact.VOMSServerInfo voms)
          Adds VOMS server configuration.
 void addWMProxy(java.lang.String vo, java.lang.String wmProxyURL)
          Adds the WMProxy service endpoint.
 java.lang.String getCertDir()
          Returns the location of trusted certificates directory.
 java.lang.String getDelegationId()
          Returns the delegation identifier for already delegated proxy.
 org.globus.gsi.GlobusCredential getProxy()
          Returns the VOMS user proxy certificate.
 java.lang.String getProxyPath()
          Returns the location of the VOMS user proxy certificate.
 java.lang.String getUserCertPath()
          Returns the location of the user certificate file.
 org.globus.gsi.GlobusCredential getUserCredentials()
          Returns user credentials.
 java.lang.String getUserKeyPass()
          Returns the passphrase for the user private key.
 java.lang.String getUserKeyPath()
          Returns the location of the user private key file.
 java.lang.String getVOMSCertDir()
          Returns the location of the VOMS certificates directory.
 java.lang.String getVOMSDir()
          Returns the location of VOMS configuration files.
 org.glite.voms.contact.VOMSServerMap getVOMSServers()
          Returns all known VOMS servers.
 java.util.Map<java.lang.String,java.lang.String> getWMProxies()
          Returns all known WMProxy service endpoints.
 java.lang.String getWMSDir()
          Returns the location of WMProxy client configuration files (only if specified via setWMSDir()).
 void setCertDir(java.lang.String certDir)
          Sets the location of trusted certificates directory.
 void setDelegationId(java.lang.String delegationId)
          Sets the delegation identifier for already delegated proxy.
 void setProxy(org.globus.gsi.GlobusCredential proxy)
          Sets the VOMS user proxy certificate.
 void setProxyPath(java.lang.String proxyPath)
          Sets the location of the VOMS user proxy certificate.
 void setUserCertPath(java.lang.String userCertPath)
          Sets the location of the user certificate file.
 void setUserCredentials(org.globus.gsi.GlobusCredential cred)
          Sets user credentials.
 void setUserKeyPass(java.lang.String userKeyPass)
          Sets the passphrase for the user private key.
 void setUserKeyPath(java.lang.String userKeyPath)
          Sets the location of the user private key file.
 void setVOMSCertDir(java.lang.String vomsCertDir)
          Sets the location of the VOMS certificates directory.
 void setVOMSDir(java.lang.String vomsDir)
          Sets the location of VOMS configuration files.
 void setWMSDir(java.lang.String wmsDir)
          Sets the location of WMProxy client configuration files (the parent directory with subdirectories inside).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridSessionConfig

public GridSessionConfig()
Applies the default configuration locations and options (refer to the user manual).

Method Detail

getCertDir

public java.lang.String getCertDir()
Returns the location of trusted certificates directory.

Returns:
trusted certificates directory

setCertDir

public void setCertDir(java.lang.String certDir)
Sets the location of trusted certificates directory.

Parameters:
certDir - trusted certificates directory

getVOMSDir

public java.lang.String getVOMSDir()
Returns the location of VOMS configuration files.

Returns:
location of VOMS configuration files

setVOMSDir

public void setVOMSDir(java.lang.String vomsDir)
Sets the location of VOMS configuration files.

Parameters:
vomsDir - location of VOMS configuration files

getVOMSCertDir

public java.lang.String getVOMSCertDir()
Returns the location of the VOMS certificates directory.

Returns:
location of the VOMS certificates directory

setVOMSCertDir

public void setVOMSCertDir(java.lang.String vomsCertDir)
Sets the location of the VOMS certificates directory.

Parameters:
vomsCertDir - location of the VOMS certificates directory

getVOMSServers

public org.glite.voms.contact.VOMSServerMap getVOMSServers()
Returns all known VOMS servers.

Returns:
map

addVOMSServer

public void addVOMSServer(org.glite.voms.contact.VOMSServerInfo voms)
Adds VOMS server configuration.

Parameters:
voms - VOMS server configuration

getUserCertPath

public java.lang.String getUserCertPath()
Returns the location of the user certificate file.

Returns:
location of the user certificate file

setUserCertPath

public void setUserCertPath(java.lang.String userCertPath)
Sets the location of the user certificate file.

Parameters:
userCertPath - location of the user certificate file

getUserKeyPath

public java.lang.String getUserKeyPath()
Returns the location of the user private key file.

Returns:
location of the user private key file

setUserKeyPath

public void setUserKeyPath(java.lang.String userKeyPath)
Sets the location of the user private key file.

Parameters:
userKeyPath - location of the user private key file

getUserKeyPass

public java.lang.String getUserKeyPass()
Returns the passphrase for the user private key.

Returns:
passphrase for the user private key

setUserKeyPass

public void setUserKeyPass(java.lang.String userKeyPass)
Sets the passphrase for the user private key.

Parameters:
userKeyPass - passphrase for the user private key

getProxyPath

public java.lang.String getProxyPath()
Returns the location of the VOMS user proxy certificate.

Returns:
location of the VOMS user proxy certificate

setProxyPath

public void setProxyPath(java.lang.String proxyPath)
Sets the location of the VOMS user proxy certificate.

Parameters:
proxyPath - location of the VOMS user proxy certificate

getWMSDir

public java.lang.String getWMSDir()
Returns the location of WMProxy client configuration files (only if specified via setWMSDir()).

Returns:
location of WMProxy client configuration files

setWMSDir

public void setWMSDir(java.lang.String wmsDir)
Sets the location of WMProxy client configuration files (the parent directory with subdirectories inside).

Parameters:
wmsDir - location of WMProxy client configuration files

getWMProxies

public java.util.Map<java.lang.String,java.lang.String> getWMProxies()
Returns all known WMProxy service endpoints.

Returns:
map

addWMProxy

public void addWMProxy(java.lang.String vo,
                       java.lang.String wmProxyURL)
Adds the WMProxy service endpoint.

Parameters:
vo - VO name
wmProxyURL - WMProxy service URI

getDelegationId

public java.lang.String getDelegationId()
Returns the delegation identifier for already delegated proxy.

Returns:
delegation identifier

setDelegationId

public void setDelegationId(java.lang.String delegationId)
Sets the delegation identifier for already delegated proxy.

Parameters:
delegationId - delegation identifier

getUserCredentials

public org.globus.gsi.GlobusCredential getUserCredentials()
Returns user credentials.

Returns:
user credentials

setUserCredentials

public void setUserCredentials(org.globus.gsi.GlobusCredential cred)
Sets user credentials. This method provides an alternative to setUserCertPath/setUserKeyPath methods for cases when credentials are already available as a GlobusCredential instance.

Parameters:
cred - user credentials

getProxy

public org.globus.gsi.GlobusCredential getProxy()
Returns the VOMS user proxy certificate.

Returns:
VOMS user proxy certificate

setProxy

public void setProxy(org.globus.gsi.GlobusCredential proxy)
Sets the VOMS user proxy certificate. This method provides an alternative to setProxyPath method for cases when proxy is already available as a GlobusCredential instance. The proxy must have VOMS extensions.

Parameters:
proxy - VOMS user proxy certificate