All Packages Class Hierarchy This Package Previous Next Index
Class semper.certificate.dummy.DummyTemplate
java.lang.Object
|
+----semper.certificate.dummy.DummyTemplate
- public class DummyTemplate
- extends Object
- implements Template, Serializable
This class implements a template used by DymmyRCModule. Later, this will be based on
an interface for such templates. This template can contain the following information
firstName, commonName, street, city, postalCode, countryName, publicKey, phoneNr,
idCardNr, emailAddr, raName, SerialNo (assigned by the RA), name of organisation
and organisation unit.
- See Also:
- Template, DummyRCModule
-
DummyTemplate()
- Create an empty template.
-
DummyTemplate(DummyTemplate)
- Create a template from an existing template.
-
DummyTemplate(String)
- Create a template only containing RA's distinguished name and with 0 as
serial number
-
DummyTemplate(String, String, String, String, String, String, CryptoKeyInfo, String, String, String, String, long)
- Create a DummyTemplate.
-
DummyTemplate(String, String, String, String, String, String, String, CryptoKeyInfo, String, String, String, String, long, String, String, String)
- Create a DummyTemplate
-
copy()
- Copy a SecudeTemplate into a Template.
-
getCityName()
- Retrieve name of city user lives in
-
getCommonName()
- Retrieve users common name.
-
getCountry()
- Retrieve name of country user lives in.
-
getEmailAddr()
- Retrieve users email address.
-
getEntryVector()
- Get a Vector of Entry objects from the template.
-
getFirstName()
- Retrieve user's first name from the (filled out) template.
-
getID()
- retrieve users id-number (Passport-no, CPR-nr,etc).
-
getModuleName()
- Retrieve name of module
-
getOrganisationName()
- Retrieve the organisation name.
-
getOrganisationUnit()
- Retrieve the organisation unit.
-
getPassword()
- Retrieve the user's password.
-
getPhoneNo()
- Retrieve users phone no.
-
getPostalCode()
- Retrieve users postal code.
-
getPublicKey()
- Retrieve Public Key user wants to have registered
-
getRADN()
- Retrieve Registration authorities distinguished name.
-
getSerialNo()
- Retrieve the serial Nr of this DummyTemplate.
-
getStreetName()
- Retrieve street name.
-
getType()
-
-
setCityName(String)
- Set name of city user lives in.
-
setCommonName(String)
- Set users common name as registrated at RA
-
setCountry(String)
- Set name of country user lives in.
-
setEmailAddr(String)
- Set users email address.
-
setFirstName(String)
- Set user's first name.
-
setID(String)
- Set users id-number (Passport-no, CPR-nr,etc).
-
setOrganisationName(String)
- Sets the organisation name.
-
setOrganisationUnit(String)
- Sets the organisation unit.
-
setPassword(String)
- Set the serial number for this DummyTemplate.
-
setPhoneNo(String)
- Set users phone no.
-
setPostalCode(String)
- Set users postal code.
-
setPublicKey(CryptoKeyInfo)
- Set public key user wants to register.
-
setRADN(String)
- Set Registration authorities distinguished name.
-
setSerialNo(long)
- Set the serial number for this DummyTemplate.
-
setStreetName(String)
- Set street name and house number.
-
setType(String)
-
-
update(Hashtable)
- Update the template according to a hash table.
DummyTemplate
public DummyTemplate(String firstName,
String commonName,
String streetName,
String cityName,
String postalCode,
String countryName,
String password,
CryptoKeyInfo publicKey,
String phoneNr,
String idCardNr,
String emailAddr,
String raName,
long serialNr,
String organisationName,
String organisationUnit,
String type)
- Create a DummyTemplate
- Parameters:
- firstName - = users Name (first name and last name)
- commonName - = users common name
(might be email-address in first trial);
- streetName - = Name of the Street, user lives in.
- cityName - = Name of city, user lives in.
- postalCode - = postal Code of the users residence.
- countryName - = Name of the Counbtry, user lives in.
- password - presented by the user in order to provide some authenticity
- CryptoKeyInfo - publicKey = users Public Key, with which he wants
to get registrated.
- phoneNr - = users Phone No.
- idCardNr - = Nr of id-Card (PassPort-No, CPRnr, or what else might
be an appropriate identification No in the users country).
- emailAddr - = email Address.
- raName - = Name of the registration Authority sending
this formular.
- organisationName - is the name of the organisation
- organisationUnit - is the organisation unit that the user is in
DummyTemplate
public DummyTemplate(String firstName,
String commonName,
String streetName,
String cityName,
String postalCode,
String countryName,
CryptoKeyInfo publicKey,
String phoneNr,
String idCardNr,
String emailAddr,
String raName,
long serialNr)
- Create a DummyTemplate. This is an old version of the above constructor without
organisation name and unit. It is included for backward compatibility,
but will be deleted at some time.
- Parameters:
- firstName - = users Name (first name and last name)
- commonName - = users common name
(might be email-address in first trial);
- streetName - = Name of the Street, user lives in.
- cityName - = Name of city, user lives in.
- postalCode - = postal Code of the users residence.
- countryName - = Name of the Counbtry, user lives in.
- CryptoKeyInfo - publicKey = users Public Key, with which he wants
to get registrated.
- phoneNr - = users Phone No.
- idCardNr - = Nr of id-Card (PassPort-No, CPRnr, or what else might
be an appropriate identification No in the users country).
- emailAddr - = email Address.
- raName - = Name of the registration Authority sending
this formular.
DummyTemplate
public DummyTemplate(DummyTemplate templ)
- Create a template from an existing template.
- Parameters:
- templ: - DummyTemplate to copy.
DummyTemplate
public DummyTemplate()
- Create an empty template.
DummyTemplate
public DummyTemplate(String raDN)
- Create a template only containing RA's distinguished name and with 0 as
serial number
- Parameters:
- raDN: - RA's distinguished name.
getModuleName
public String getModuleName()
- Retrieve name of module
- Returns:
- name of module
getFirstName
public String getFirstName()
- Retrieve user's first name from the (filled out) template.
- Returns:
- the first name in the template.
getCommonName
public String getCommonName()
- Retrieve users common name.
- Returns:
- common name in the template (null if not defined)
getPublicKey
public CryptoKeyInfo getPublicKey()
- Retrieve Public Key user wants to have registered
- Returns:
- public key of user
getStreetName
public String getStreetName()
- Retrieve street name.
- Returns:
- the street entered in the template (possibly null)
getCityName
public String getCityName()
- Retrieve name of city user lives in
- Returns:
- city where user lives.
getPostalCode
public String getPostalCode()
- Retrieve users postal code.
- Returns:
- users postal code
getCountry
public String getCountry()
- Retrieve name of country user lives in.
- Returns:
- country where user lives
getPassword
public String getPassword()
- Retrieve the user's password.
The user presents this pasword during the SEMPER registration as a
proof identity..
- Returns:
- country where user lives
getPhoneNo
public String getPhoneNo()
- Retrieve users phone no.
- Returns:
- phone number
getID
public String getID()
- retrieve users id-number (Passport-no, CPR-nr,etc). This depends on
how user id identified to the RA.
- Returns:
- id-number
getEmailAddr
public String getEmailAddr()
- Retrieve users email address.
- Returns:
- email address of user
getRADN
public String getRADN()
- Retrieve Registration authorities distinguished name.
- Returns:
- DN of RA
getSerialNo
public long getSerialNo()
- Retrieve the serial Nr of this DummyTemplate.
- Returns:
- serial number (defined by RA)
getOrganisationName
public String getOrganisationName()
- Retrieve the organisation name.
- Returns:
- organisation of user
getOrganisationUnit
public String getOrganisationUnit()
- Retrieve the organisation unit.
- Returns:
- organisation unit, which user belongs to.
getType
public String getType()
setFirstName
public void setFirstName(String name)
- Set user's first name.
- Parameters:
- name - is the user's first name
setCommonName
public void setCommonName(String name)
- Set users common name as registrated at RA
- Parameters:
- name - is the user's common name
setPublicKey
public void setPublicKey(CryptoKeyInfo pkey)
- Set public key user wants to register.
- Parameters:
- pkey - is the public key the user will register
setStreetName
public void setStreetName(String street)
- Set street name and house number.
- Parameters:
- the - street name (and possible number)
setCityName
public void setCityName(String cityName)
- Set name of city user lives in.
- Parameters:
- city - name
setPostalCode
public void setPostalCode(String pk)
- Set users postal code.
- Parameters:
- pk - is postal code
setCountry
public void setCountry(String countryName)
- Set name of country user lives in.
- Parameters:
- countryName - is the name of country
setPassword
public void setPassword(String password)
- Set the serial number for this DummyTemplate.
- Parameters:
- serialNr: - new serial Nr to set.
setPhoneNo
public void setPhoneNo(String phoneNr)
- Set users phone no.
- Parameters:
- PhoneNr - is phone number
setID
public void setID(String idCardNr)
- Set users id-number (Passport-no, CPR-nr,etc).
- Parameters:
- idCardNr - is personal id-number
setEmailAddr
public void setEmailAddr(String emailAddr)
- Set users email address.
- Parameters:
- emailAddr - email address
setRADN
public void setRADN(String raName)
- Set Registration authorities distinguished name.
- Parameters:
- Dn - of RA
setSerialNo
public void setSerialNo(long serialNr)
- Set the serial number for this DummyTemplate.
- Parameters:
- serialNr: - new serial Nr to set.
setOrganisationName
public void setOrganisationName(String name)
- Sets the organisation name.
- Parameters:
- organisation - name
setOrganisationUnit
public void setOrganisationUnit(String name)
- Sets the organisation unit.
- Parameters:
- organisation - unit
setType
public void setType(String type)
getEntryVector
public Vector getEntryVector()
- Get a Vector of Entry objects from the template.
- Returns:
- Vector of Entry objects
- See Also:
- Entry
update
public void update(Hashtable ht)
- Update the template according to a hash table.
- Parameters:
- ht - is a Hashtable with values for updating the template that
should be updated
- See Also:
- getEntryVector
copy
public Template copy()
- Copy a SecudeTemplate into a Template.
- Returns:
- Template
All Packages Class Hierarchy This Package Previous Next Index