Package com.sun.grid.ca
Class GridCAConfiguration
java.lang.Object
com.sun.grid.ca.GridCAConfiguration
- All Implemented Interfaces:
Serializable
Configuration of a
GridCA
.
An object of this class holds all necessary information for a GridCA configuration
The validate
method determines wheter the configuration is valid- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the admin user of the ca.Get the host with the filesystem where the private parts of the ca are exists.Get the calocaltop directory (local directory which holds the private parts of the ca).getCaTop()
Get the catop directory (shared directory which holds public parts of the ca).Get the configuration directory of the ca.int
Get the days the certificates are validGet the sge_ca script.Get the tmp directory of the ca.void
setAdminUser
(String adminUser) Set the admin user of the cavoid
Set the ca hostvoid
setCaLocalTop
(File caLocalTop) Set the calocaltop directoryvoid
Set the catop directoryvoid
setConfigDir
(File configDir) Set the configuration directory of the ca.void
setDaysValid
(int daysValid) Set the days the certificates are validvoid
setSgeCaScript
(File sgeCaScript) Set the sge_ca script.void
Set the tmp directory of the ca.void
validate()
Validate the configuration of theGridCA
.
-
Constructor Details
-
GridCAConfiguration
public GridCAConfiguration()Creates a new instance of GridCAConfiguration
-
-
Method Details
-
validate
Validate the configuration of theGridCA
.- Throws:
GridCAException
- if theGridCA
is not proper configured
-
getSgeCaScript
Get the sge_ca script. This script will be executed to perform the ca actions- Returns:
- the sge_ca script
-
setSgeCaScript
Set the sge_ca script.- Parameters:
sgeCaScript
- the sge_ca script
-
getCaTop
Get the catop directory (shared directory which holds public parts of the ca).- Returns:
- the catop directory
-
setCaTop
Set the catop directory- Parameters:
caTop
- the catop directory
-
getCaLocalTop
Get the calocaltop directory (local directory which holds the private parts of the ca).- Returns:
- the callocaltop directory
-
setCaLocalTop
Set the calocaltop directory- Parameters:
caLocalTop
- the calocaltop directory
-
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
Set the configuration directory of the ca.- Parameters:
configDir
- the configuration directory
-
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
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
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
Set the admin user of the ca- Parameters:
adminUser
- the admin user
-
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:
-
setCaHost
Set the ca host- Parameters:
caHost
- the ca hsot- See Also:
-