Package com.sun.grid.ca
Class InitCAParameters
java.lang.Object
com.sun.grid.ca.InitCAParameters
- All Implemented Interfaces:
Serializable
This class hold the parameters for Certificate Authority
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefines a parameter for the init ca command. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InitCAParameters.ParamDefDefinition of the admin email address parameterstatic final InitCAParameters.ParamDefDefinition of the country parameterstatic final InitCAParameters.ParamDefDefinition of the location parameterstatic final InitCAParameters.ParamDefDefinition of the organisation parameterstatic final InitCAParameters.ParamDefDefinition of the organisation unit parameterstatic final InitCAParameters.ParamDefDefinition of the state parameter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the email address of the ca adminstratorGet the country of the ca.Get the location of the ca.Get the organization of the ca.Get the organization unit of the ca.getState()Get the state of the ca.static InitCAParametersqueryNewInstance(CallbackHandler callbackHandler) Query the values for a init ca command.voidsetAdminEmailAddress(String adminEmailAddress) Set the email address of the ca adminstratorvoidsetCountry(String country) Set the country of the ca (e.g.voidsetLocation(String location) Set the location of the ca (e.g.voidsetOrganization(String organization) Set the organization of the ca.voidsetOrganizationUnit(String organizationUnit) Set the organization unit of the ca.voidSet the state of the ca (e.g.voidvalidate()Validate theInitCAParameters
-
Field Details
-
COUNTRY
Definition of the country parameter -
STATE
Definition of the state parameter -
LOCATION
Definition of the location parameter -
ORG
Definition of the organisation parameter -
ORG_UNIT
Definition of the organisation unit parameter -
ADMIN_EMAIL
Definition of the admin email address parameter
-
-
Constructor Details
-
InitCAParameters
public InitCAParameters()
-
-
Method Details
-
queryNewInstance
public static InitCAParameters queryNewInstance(CallbackHandler callbackHandler) throws IOException, 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:
IOException- if the callback handler throws a IOExceptionUnsupportedCallbackException- if the the callback handler does not supportNameCallbackorTextOutputCallback
-
getCountry
Get the country of the ca.- Returns:
- the country of the ca
-
setCountry
Set the country of the ca (e.g. Germany)- Parameters:
country- country of the ca (exact two characters)- Throws:
GridCAException- ifcountryis not valid
-
getState
Get the state of the ca.- Returns:
- the state of the ca
-
setState
Set the state of the ca (e.g. Bayern)- Parameters:
state- state of the ca (at least one char)- Throws:
GridCAException- ifstateis not valid
-
getLocation
Get the location of the ca.- Returns:
- the location of the ca
-
setLocation
Set the location of the ca (e.g. city)- Parameters:
location- location of the ca (at least one char)- Throws:
GridCAException- iflocationis not valid
-
getOrganization
Get the organization of the ca.- Returns:
- the organization of the ca
-
setOrganization
Set the organization of the ca.- Parameters:
organization- organization of the ca (at least one char)- Throws:
GridCAException- iforganizationis not valid
-
getOrganizationUnit
Get the organization unit of the ca.- Returns:
- the organization unit of the ca
-
setOrganizationUnit
Set the organization unit of the ca.- Parameters:
organizationUnit- organization unit of the ca (at least one char)- Throws:
GridCAException- iforganizationUnitis not valid
-
getAdminEmailAddress
Get the email address of the ca adminstrator- Returns:
- the email address of the ca adminstrator
-
setAdminEmailAddress
Set 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
Validate theInitCAParameters- Throws:
GridCAException- if the parameters are not valid
-