public class InitCAParameters
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
InitCAParameters.ParamDef
Defines a parameter for the init ca command.
|
| Modifier and Type | Field and Description |
|---|---|
static InitCAParameters.ParamDef |
ADMIN_EMAIL
Definition of the admin email address parameter
|
static InitCAParameters.ParamDef |
COUNTRY
Definition of the country parameter
|
static InitCAParameters.ParamDef |
LOCATION
Definition of the location parameter
|
static InitCAParameters.ParamDef |
ORG
Definition of the organisation parameter
|
static InitCAParameters.ParamDef |
ORG_UNIT
Definition of the organisation unit parameter
|
static InitCAParameters.ParamDef |
STATE
Definition of the state parameter
|
| Constructor and Description |
|---|
InitCAParameters() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdminEmailAddress()
Get the email address of the ca adminstrator
|
java.lang.String |
getCountry()
Get the country of the ca.
|
java.lang.String |
getLocation()
Get the location of the ca.
|
java.lang.String |
getOrganization()
Get the organization of the ca.
|
java.lang.String |
getOrganizationUnit()
Get the organization unit of the ca.
|
java.lang.String |
getState()
Get the state of the ca.
|
static InitCAParameters |
queryNewInstance(javax.security.auth.callback.CallbackHandler callbackHandler)
Query the values for a init ca command.
|
void |
setAdminEmailAddress(java.lang.String adminEmailAddress)
Set the email address of the ca adminstrator
|
void |
setCountry(java.lang.String country)
Set the country of the ca (e.g.
|
void |
setLocation(java.lang.String location)
Set the location of the ca (e.g.
|
void |
setOrganization(java.lang.String organization)
Set the organization of the ca.
|
void |
setOrganizationUnit(java.lang.String organizationUnit)
Set the organization unit of the ca.
|
void |
setState(java.lang.String state)
Set the state of the ca (e.g.
|
void |
validate()
Validate the
InitCAParameters |
public static final InitCAParameters.ParamDef COUNTRY
public static final InitCAParameters.ParamDef STATE
public static final InitCAParameters.ParamDef LOCATION
public static final InitCAParameters.ParamDef ORG
public static final InitCAParameters.ParamDef ORG_UNIT
public static final InitCAParameters.ParamDef ADMIN_EMAIL
public static InitCAParameters queryNewInstance(javax.security.auth.callback.CallbackHandler callbackHandler) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
callbackHandler - the callback handler which is used to query the valuesInitCAParameters object with the queried valuesjava.io.IOException - if the callback handler throws a IOExceptionjavax.security.auth.callback.UnsupportedCallbackException - if the the callback handler does not
support NameCallback or TextOutputCallbackpublic java.lang.String getCountry()
public void setCountry(java.lang.String country)
throws GridCAException
country - country of the ca (exact two characters)GridCAException - if country is not validpublic java.lang.String getState()
public void setState(java.lang.String state)
throws GridCAException
state - state of the ca (at least one char)GridCAException - if state is not validpublic java.lang.String getLocation()
public void setLocation(java.lang.String location)
throws GridCAException
location - location of the ca (at least one char)GridCAException - if location is not validpublic java.lang.String getOrganization()
public void setOrganization(java.lang.String organization)
throws GridCAException
organization - organization of the ca (at least one char)GridCAException - if organization is not validpublic java.lang.String getOrganizationUnit()
public void setOrganizationUnit(java.lang.String organizationUnit)
throws GridCAException
organizationUnit - organization unit of the ca (at least one char)GridCAException - if organizationUnit is not validpublic java.lang.String getAdminEmailAddress()
public void setAdminEmailAddress(java.lang.String adminEmailAddress)
throws GridCAException
adminEmailAddress - email address of the ca adminstrator (at least one char)GridCAException - if adminEmailAddress is not validpublic void validate()
throws GridCAException
InitCAParametersGridCAException - if the parameters are not valid