gov.bnl.gums.userGroup
Class VomsServer

java.lang.Object
  extended by gov.bnl.gums.userGroup.VomsServer

public class VomsServer
extends Object

Represents a VOMS server. Contains the other parameters for access this server. This is meant to be a shared reference for multiple user groups. One specifies the base url here and provides the remainder url for each user group.

Author:
Jay Packard

Constructor Summary
VomsServer()
          Creates a new VomsServer object.
VomsServer(Configuration configuration)
          Creates a new VomsServer object with a configuration.
VomsServer(Configuration configuration, String name)
          Creates a new VomsServer object with a configuration and a name.
 
Method Summary
 VomsServer clone(Configuration configuration)
           
 String getBaseUrl()
          Returns the address of the VOMS server to contact.
 Configuration getConfiguration()
           
 UserGroupDB getDB(String userGroup)
           
 String getDescription()
           
 String getName()
           
 String getPersistenceFactory()
           
 String getSslCAFiles()
          Returns the location of the Certificate Authority certificates used to connect to the VOMS server.
 String getSslCertfile()
          Returns the location of the certificated used to connect to the VOMS server.
 String getSslKey()
          Returns the location of the key to be used during the connection.
 String getSslKeyPasswd()
          Returns the private key password used to connect to the VOMS server.
 void setBaseUrl(String baseUrl)
          Changes the base address of the VOMS server to contact.
 void setConfiguration(Configuration configuration)
           
 void setDescription(String description)
           
 void setName(String name)
           
 void setPersistenceFactory(String persistenceFactory)
           
 void setSslCAFiles(String sslCAFiles)
          Changes the location of the Certificate Authority certificates used to connect to the VOMS server.
 void setSslCertfile(String sslCertfile)
          Changes the location of the certificated used to connect to the VOMS server.
 void setSslKey(String sslKey)
          Changes the location of the private key used to connect to the VOMS server.
 void setSslKeyPasswd(String sslKeyPasswd)
          Changes the private key password used to connect to the VOMS server.
 String toString()
           
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VomsServer

public VomsServer()
Creates a new VomsServer object. This empty constructor is needed by the XML Digestor.


VomsServer

public VomsServer(Configuration configuration)
Creates a new VomsServer object with a configuration.

Parameters:
configuration -

VomsServer

public VomsServer(Configuration configuration,
                  String name)
Creates a new VomsServer object with a configuration and a name.

Parameters:
configuration -
name -
Method Detail

clone

public VomsServer clone(Configuration configuration)

getBaseUrl

public String getBaseUrl()
Returns the address of the VOMS server to contact.

Returns:
The address of the VOMS server (i.e. https://voms.myste.org:8443/edg-voms-admin/myvo/services/VOMSAdmin)

getConfiguration

public Configuration getConfiguration()

getDescription

public String getDescription()

getDB

public UserGroupDB getDB(String userGroup)

getName

public String getName()

getPersistenceFactory

public String getPersistenceFactory()

getSslCAFiles

public String getSslCAFiles()
Returns the location of the Certificate Authority certificates used to connect to the VOMS server.

Returns:
The location of the CA certificates (i.e. /etc/grid-security/certificates/*.0)

getSslCertfile

public String getSslCertfile()
Returns the location of the certificated used to connect to the VOMS server.

Returns:
The location of the certificate (i.e. /etc/grid-security/hostcert.pem)

getSslKey

public String getSslKey()
Returns the location of the key to be used during the connection.

Returns:
The location of the key (i.e. /etc/grid-security/hostkey.pem)

getSslKeyPasswd

public String getSslKeyPasswd()
Returns the private key password used to connect to the VOMS server.

Returns:
The password for the private key

setBaseUrl

public void setBaseUrl(String baseUrl)
Changes the base address of the VOMS server to contact. The address of the server is really the address of the Web service components. If you go to that address, the AXIS servlet has to reply.

Parameters:
url - The address of the VOMS server (i.e. https://voms.myste.org:8443/edg-voms-admin)

setConfiguration

public void setConfiguration(Configuration configuration)

setDescription

public void setDescription(String description)

setName

public void setName(String name)

setPersistenceFactory

public void setPersistenceFactory(String persistenceFactory)

setSslCAFiles

public void setSslCAFiles(String sslCAFiles)
Changes the location of the Certificate Authority certificates used to connect to the VOMS server.

Parameters:
sslCAFiles - The location of the CA certificates (i.e. /etc/grid-security/certificates/*.0)

setSslCertfile

public void setSslCertfile(String sslCertfile)
Changes the location of the certificated used to connect to the VOMS server.

Parameters:
sslCertfile - The location of the certificate (i.e. /etc/grid-security/hostcert.pem)

setSslKey

public void setSslKey(String sslKey)
Changes the location of the private key used to connect to the VOMS server.

Parameters:
sslKey - The location of the key (i.e. /etc/grid-security/hostkey.pem)

setSslKeyPasswd

public void setSslKeyPasswd(String sslKeyPasswd)
Changes the private key password used to connect to the VOMS server.

Parameters:
sslKeyPasswd - The password for the private key

toString

public String toString()
Overrides:
toString in class Object

toXML

public String toXML()


Copyright © 2004-2009. All Rights Reserved.