Package com.sun.grid.ca
Class GridCAConfiguration
- java.lang.Object
-
- com.sun.grid.ca.GridCAConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
public class GridCAConfiguration extends java.lang.Object implements java.io.SerializableConfiguration of aGridCA. An object of this class holds all necessary information for a GridCA configuration Thevalidatemethod determines wheter the configuration is valid- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridCAConfiguration()Creates a new instance of GridCAConfiguration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAdminUser()Get the admin user of the ca.java.lang.StringgetCaHost()Get the host with the filesystem where the private parts of the ca are exists.java.io.FilegetCaLocalTop()Get the calocaltop directory (local directory which holds the private parts of the ca).java.io.FilegetCaTop()Get the catop directory (shared directory which holds public parts of the ca).java.io.FilegetConfigDir()Get the configuration directory of the ca.intgetDaysValid()Get the days the certificates are validjava.io.FilegetSgeCaScript()Get the sge_ca script.java.io.FilegetTmpDir()Get the tmp directory of the ca.voidsetAdminUser(java.lang.String adminUser)Set the admin user of the cavoidsetCaHost(java.lang.String caHost)Set the ca hostvoidsetCaLocalTop(java.io.File caLocalTop)Set the calocaltop directoryvoidsetCaTop(java.io.File caTop)Set the catop directoryvoidsetConfigDir(java.io.File configDir)Set the configuration directory of the ca.voidsetDaysValid(int daysValid)Set the days the certificates are validvoidsetSgeCaScript(java.io.File sgeCaScript)Set the sge_ca script.voidsetTmpDir(java.io.File tmpDir)Set the tmp directory of the ca.voidvalidate()Validate the configuration of theGridCA.
-
-
-
Method Detail
-
validate
public void validate() throws GridCAExceptionValidate the configuration of theGridCA.- Throws:
GridCAException- if theGridCAis not proper configured
-
getSgeCaScript
public java.io.File getSgeCaScript()
Get the sge_ca script. This script will be executed to perform the ca actions- Returns:
- the sge_ca script
-
setSgeCaScript
public void setSgeCaScript(java.io.File sgeCaScript)
Set the sge_ca script.- Parameters:
sgeCaScript- the sge_ca script
-
getCaTop
public java.io.File getCaTop()
Get the catop directory (shared directory which holds public parts of the ca).- Returns:
- the catop directory
-
setCaTop
public void setCaTop(java.io.File caTop)
Set the catop directory- Parameters:
caTop- the catop directory
-
getCaLocalTop
public java.io.File getCaLocalTop()
Get the calocaltop directory (local directory which holds the private parts of the ca).- Returns:
- the callocaltop directory
-
setCaLocalTop
public void setCaLocalTop(java.io.File caLocalTop)
Set the calocaltop directory- Parameters:
caLocalTop- the calocaltop directory
-
getConfigDir
public java.io.File getConfigDir()
Get the configuration directory of the ca. The configuration directory holds the configuration files of the ca. In a standard Gridengine installation the configuration directory is $SGE_ROOT/util/sgeCA- Returns:
- the configuration directory
-
setConfigDir
public void setConfigDir(java.io.File configDir)
Set the configuration directory of the ca.- Parameters:
configDir- the configuration directory
-
getTmpDir
public java.io.File getTmpDir()
Get the tmp directory of the ca. For security reasons the tmp directory should be on a local file system only root and the adminuser of the CA should have access on this directory.- Returns:
- the tmp directory of the ca
-
setTmpDir
public void setTmpDir(java.io.File tmpDir)
Set the tmp directory of the ca.- Parameters:
tmpDir- the tmp directory
-
getDaysValid
public int getDaysValid()
Get the days the certificates are valid- Returns:
- the days of validity
-
setDaysValid
public void setDaysValid(int daysValid)
Set the days the certificates are valid- Parameters:
daysValid- the days the certificates are valid
-
getAdminUser
public java.lang.String getAdminUser()
Get the admin user of the ca. Most of the files are owned by the admin user. This user needs write write access on the catop directory.- Returns:
- the admin user
-
setAdminUser
public void setAdminUser(java.lang.String adminUser)
Set the admin user of the ca- Parameters:
adminUser- the admin user
-
getCaHost
public java.lang.String getCaHost()
Get the host with the filesystem where the private parts of the ca are exists. Most action can only be executed in the ca host- Returns:
- the the ca host
- See Also:
getCaLocalTop()
-
setCaHost
public void setCaHost(java.lang.String caHost)
Set the ca host- Parameters:
caHost- the ca hsot- See Also:
getCaHost()
-
-