com.sun.grid.ca
public class GridCAConfiguration extends java.lang.Object implements java.io.Serializable
GridCA
.
An object of this class holds all necessary information for a GridCA configuration
The validate
method determines wheter the configuration is validConstructor and Description |
---|
GridCAConfiguration()
Creates a new instance of GridCAConfiguration
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAdminUser()
Get the admin user of the ca.
|
java.lang.String |
getCaHost()
Get the host with the filesystem where the private parts of the
ca are exists.
|
java.io.File |
getCaLocalTop()
Get the calocaltop directory (local directory which holds the private parts of the ca).
|
java.io.File |
getCaTop()
Get the catop directory (shared directory which holds public parts of the ca).
|
java.io.File |
getConfigDir()
Get the configuration directory of the ca.
|
int |
getDaysValid()
Get the days the certificates are valid
|
java.io.File |
getSgeCaScript()
Get the sge_ca script.
|
java.io.File |
getTmpDir()
Get the tmp directory of the ca.
|
void |
setAdminUser(java.lang.String adminUser)
Set the admin user of the ca
|
void |
setCaHost(java.lang.String caHost)
Set the ca host
|
void |
setCaLocalTop(java.io.File caLocalTop)
Set the calocaltop directory
|
void |
setCaTop(java.io.File caTop)
Set the catop directory
|
void |
setConfigDir(java.io.File configDir)
Set the configuration directory of the ca.
|
void |
setDaysValid(int daysValid)
Set the days the certificates are valid
|
void |
setSgeCaScript(java.io.File sgeCaScript)
Set the sge_ca script.
|
void |
setTmpDir(java.io.File tmpDir)
Set the tmp directory of the ca.
|
void |
validate()
Validate the configuration of the
GridCA . |
public GridCAConfiguration()
public void validate() throws GridCAException
GridCA
.GridCAException
- if the GridCA
is not proper configuredpublic java.io.File getSgeCaScript()
public void setSgeCaScript(java.io.File sgeCaScript)
sgeCaScript
- the sge_ca scriptpublic java.io.File getCaTop()
public void setCaTop(java.io.File caTop)
caTop
- the catop directorypublic java.io.File getCaLocalTop()
public void setCaLocalTop(java.io.File caLocalTop)
caLocalTop
- the calocaltop directorypublic java.io.File getConfigDir()
public void setConfigDir(java.io.File configDir)
configDir
- the configuration directorypublic java.io.File getTmpDir()
public void setTmpDir(java.io.File tmpDir)
tmpDir
- the tmp directorypublic int getDaysValid()
public void setDaysValid(int daysValid)
daysValid
- the days the certificates are validpublic java.lang.String getAdminUser()
public void setAdminUser(java.lang.String adminUser)
adminUser
- the admin userpublic java.lang.String getCaHost()
getCaLocalTop()
public void setCaHost(java.lang.String caHost)
caHost
- the ca hsotgetCaHost()