Package com.sun.grid.ca
Class InitCAParameters
- java.lang.Object
-
- com.sun.grid.ca.InitCAParameters
-
- All Implemented Interfaces:
java.io.Serializable
public class InitCAParameters extends java.lang.Object implements java.io.SerializableThis class hold the parameters for Certificate Authority- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInitCAParameters.ParamDefDefines a parameter for the init ca command.
-
Field Summary
Fields Modifier and Type Field Description static InitCAParameters.ParamDefADMIN_EMAILDefinition of the admin email address parameterstatic InitCAParameters.ParamDefCOUNTRYDefinition of the country parameterstatic InitCAParameters.ParamDefLOCATIONDefinition of the location parameterstatic InitCAParameters.ParamDefORGDefinition of the organisation parameterstatic InitCAParameters.ParamDefORG_UNITDefinition of the organisation unit parameterstatic InitCAParameters.ParamDefSTATEDefinition of the state parameter
-
Constructor Summary
Constructors Constructor Description InitCAParameters()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAdminEmailAddress()Get the email address of the ca adminstratorjava.lang.StringgetCountry()Get the country of the ca.java.lang.StringgetLocation()Get the location of the ca.java.lang.StringgetOrganization()Get the organization of the ca.java.lang.StringgetOrganizationUnit()Get the organization unit of the ca.java.lang.StringgetState()Get the state of the ca.static InitCAParametersqueryNewInstance(javax.security.auth.callback.CallbackHandler callbackHandler)Query the values for a init ca command.voidsetAdminEmailAddress(java.lang.String adminEmailAddress)Set the email address of the ca adminstratorvoidsetCountry(java.lang.String country)Set the country of the ca (e.g.voidsetLocation(java.lang.String location)Set the location of the ca (e.g.voidsetOrganization(java.lang.String organization)Set the organization of the ca.voidsetOrganizationUnit(java.lang.String organizationUnit)Set the organization unit of the ca.voidsetState(java.lang.String state)Set the state of the ca (e.g.voidvalidate()Validate theInitCAParameters
-
-
-
Field Detail
-
COUNTRY
public static final InitCAParameters.ParamDef COUNTRY
Definition of the country parameter
-
STATE
public static final InitCAParameters.ParamDef STATE
Definition of the state parameter
-
LOCATION
public static final InitCAParameters.ParamDef LOCATION
Definition of the location parameter
-
ORG
public static final InitCAParameters.ParamDef ORG
Definition of the organisation parameter
-
ORG_UNIT
public static final InitCAParameters.ParamDef ORG_UNIT
Definition of the organisation unit parameter
-
ADMIN_EMAIL
public static final InitCAParameters.ParamDef ADMIN_EMAIL
Definition of the admin email address parameter
-
-
Method Detail
-
queryNewInstance
public static InitCAParameters queryNewInstance(javax.security.auth.callback.CallbackHandler callbackHandler) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
Query the values for a init ca command.- Parameters:
callbackHandler- the callback handler which is used to query the values- Returns:
- the
InitCAParametersobject with the queried values - Throws:
java.io.IOException- if the callback handler throws a IOExceptionjavax.security.auth.callback.UnsupportedCallbackException- if the the callback handler does not supportNameCallbackorTextOutputCallback
-
getCountry
public java.lang.String getCountry()
Get the country of the ca.- Returns:
- the country of the ca
-
setCountry
public void setCountry(java.lang.String country) throws GridCAExceptionSet the country of the ca (e.g. Germany)- Parameters:
country- country of the ca (exact two characters)- Throws:
GridCAException- ifcountryis not valid
-
getState
public java.lang.String getState()
Get the state of the ca.- Returns:
- the state of the ca
-
setState
public void setState(java.lang.String state) throws GridCAExceptionSet the state of the ca (e.g. Bayern)- Parameters:
state- state of the ca (at least one char)- Throws:
GridCAException- ifstateis not valid
-
getLocation
public java.lang.String getLocation()
Get the location of the ca.- Returns:
- the location of the ca
-
setLocation
public void setLocation(java.lang.String location) throws GridCAExceptionSet the location of the ca (e.g. city)- Parameters:
location- location of the ca (at least one char)- Throws:
GridCAException- iflocationis not valid
-
getOrganization
public java.lang.String getOrganization()
Get the organization of the ca.- Returns:
- the organization of the ca
-
setOrganization
public void setOrganization(java.lang.String organization) throws GridCAExceptionSet the organization of the ca.- Parameters:
organization- organization of the ca (at least one char)- Throws:
GridCAException- iforganizationis not valid
-
getOrganizationUnit
public java.lang.String getOrganizationUnit()
Get the organization unit of the ca.- Returns:
- the organization unit of the ca
-
setOrganizationUnit
public void setOrganizationUnit(java.lang.String organizationUnit) throws GridCAExceptionSet the organization unit of the ca.- Parameters:
organizationUnit- organization unit of the ca (at least one char)- Throws:
GridCAException- iforganizationUnitis not valid
-
getAdminEmailAddress
public java.lang.String getAdminEmailAddress()
Get the email address of the ca adminstrator- Returns:
- the email address of the ca adminstrator
-
setAdminEmailAddress
public void setAdminEmailAddress(java.lang.String adminEmailAddress) throws GridCAExceptionSet the email address of the ca adminstrator- Parameters:
adminEmailAddress- email address of the ca adminstrator (at least one char)- Throws:
GridCAException- ifadminEmailAddressis not valid
-
validate
public void validate() throws GridCAExceptionValidate theInitCAParameters- Throws:
GridCAException- if the parameters are not valid
-
-