gov.bnl.gums.userGroup
Class VomsServer

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

public class VomsServer
extends java.lang.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, java.lang.String name)
          Creates a new VomsServer object with a configuration and a name.
 
Method Summary
 VomsServer clone(Configuration configuration)
           
 java.lang.String getBaseUrl()
          Returns the address of the VOMS server to contact.
 Configuration getConfiguration()
           
 UserGroupDB getDB(java.lang.String userGroup)
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getPersistenceFactory()
           
 java.lang.String getSslCAFiles()
          Returns the location of the Certificate Authority certificates used to connect to the VOMS server.
 java.lang.String getSslCertfile()
          Returns the location of the certificated used to connect to the VOMS server.
 java.lang.String getSslKey()
          Returns the location of the key to be used during the connection.
 java.lang.String getSslKeyPasswd()
          Returns the private key password used to connect to the VOMS server.
 void setBaseUrl(java.lang.String baseUrl)
          Changes the base address of the VOMS server to contact.
 void setConfiguration(Configuration configuration)
           
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setPersistenceFactory(java.lang.String persistenceFactory)
           
 void setSslCAFiles(java.lang.String sslCAFiles)
          Changes the location of the Certificate Authority certificates used to connect to the VOMS server.
 void setSslCertfile(java.lang.String sslCertfile)
          Changes the location of the certificated used to connect to the VOMS server.
 void setSslKey(java.lang.String sslKey)
          Changes the location of the private key used to connect to the VOMS server.
 void setSslKeyPasswd(java.lang.String sslKeyPasswd)
          Changes the private key password used to connect to the VOMS server.
 java.lang.String toString()
           
 java.lang.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,
                  java.lang.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 java.lang.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 java.lang.String getDescription()

getDB

public UserGroupDB getDB(java.lang.String userGroup)

getName

public java.lang.String getName()

getPersistenceFactory

public java.lang.String getPersistenceFactory()

getSslCAFiles

public java.lang.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 java.lang.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 java.lang.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 java.lang.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(java.lang.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(java.lang.String description)

setName

public void setName(java.lang.String name)

setPersistenceFactory

public void setPersistenceFactory(java.lang.String persistenceFactory)

setSslCAFiles

public void setSslCAFiles(java.lang.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(java.lang.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(java.lang.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(java.lang.String sslKeyPasswd)
Changes the private key password used to connect to the VOMS server.

Parameters:
sslKeyPasswd - The password for the private key

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toXML

public java.lang.String toXML()


Copyright © 2004-2008. All Rights Reserved.