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 class
Defines a parameter for the init ca command. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InitCAParameters.ParamDef
Definition of the admin email address parameterstatic final InitCAParameters.ParamDef
Definition of the country parameterstatic final InitCAParameters.ParamDef
Definition of the location parameterstatic final InitCAParameters.ParamDef
Definition of the organisation parameterstatic final InitCAParameters.ParamDef
Definition of the organisation unit parameterstatic final InitCAParameters.ParamDef
Definition 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 InitCAParameters
queryNewInstance
(CallbackHandler callbackHandler) Query the values for a init ca command.void
setAdminEmailAddress
(String adminEmailAddress) Set the email address of the ca adminstratorvoid
setCountry
(String country) Set the country of the ca (e.g.void
setLocation
(String location) Set the location of the ca (e.g.void
setOrganization
(String organization) Set the organization of the ca.void
setOrganizationUnit
(String organizationUnit) Set the organization unit of the ca.void
Set the state of the ca (e.g.void
validate()
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
InitCAParameters
object with the queried values - Throws:
IOException
- if the callback handler throws a IOExceptionUnsupportedCallbackException
- if the the callback handler does not supportNameCallback
orTextOutputCallback
-
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
- ifcountry
is 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
- ifstate
is 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
- iflocation
is 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
- iforganization
is 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
- iforganizationUnit
is 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
- ifadminEmailAddress
is not valid
-
validate
Validate theInitCAParameters
- Throws:
GridCAException
- if the parameters are not valid
-