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

Constructor Index

 o DummyTemplate()
Create an empty template.
 o DummyTemplate(DummyTemplate)
Create a template from an existing template.
 o DummyTemplate(String)
Create a template only containing RA's distinguished name and with 0 as serial number
 o DummyTemplate(String, String, String, String, String, String, CryptoKeyInfo, String, String, String, String, long)
Create a DummyTemplate.
 o DummyTemplate(String, String, String, String, String, String, String, CryptoKeyInfo, String, String, String, String, long, String, String, String)
Create a DummyTemplate

Method Index

 o copy()
Copy a SecudeTemplate into a Template.
 o getCityName()
Retrieve name of city user lives in
 o getCommonName()
Retrieve users common name.
 o getCountry()
Retrieve name of country user lives in.
 o getEmailAddr()
Retrieve users email address.
 o getEntryVector()
Get a Vector of Entry objects from the template.
 o getFirstName()
Retrieve user's first name from the (filled out) template.
 o getID()
retrieve users id-number (Passport-no, CPR-nr,etc).
 o getModuleName()
Retrieve name of module
 o getOrganisationName()
Retrieve the organisation name.
 o getOrganisationUnit()
Retrieve the organisation unit.
 o getPassword()
Retrieve the user's password.
 o getPhoneNo()
Retrieve users phone no.
 o getPostalCode()
Retrieve users postal code.
 o getPublicKey()
Retrieve Public Key user wants to have registered
 o getRADN()
Retrieve Registration authorities distinguished name.
 o getSerialNo()
Retrieve the serial Nr of this DummyTemplate.
 o getStreetName()
Retrieve street name.
 o getType()
 o setCityName(String)
Set name of city user lives in.
 o setCommonName(String)
Set users common name as registrated at RA
 o setCountry(String)
Set name of country user lives in.
 o setEmailAddr(String)
Set users email address.
 o setFirstName(String)
Set user's first name.
 o setID(String)
Set users id-number (Passport-no, CPR-nr,etc).
 o setOrganisationName(String)
Sets the organisation name.
 o setOrganisationUnit(String)
Sets the organisation unit.
 o setPassword(String)
Set the serial number for this DummyTemplate.
 o setPhoneNo(String)
Set users phone no.
 o setPostalCode(String)
Set users postal code.
 o setPublicKey(CryptoKeyInfo)
Set public key user wants to register.
 o setRADN(String)
Set Registration authorities distinguished name.
 o setSerialNo(long)
Set the serial number for this DummyTemplate.
 o setStreetName(String)
Set street name and house number.
 o setType(String)
 o update(Hashtable)
Update the template according to a hash table.

Constructors

 o 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
 o 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.
 o DummyTemplate
 public DummyTemplate(DummyTemplate templ)
Create a template from an existing template.

Parameters:
templ: - DummyTemplate to copy.
 o DummyTemplate
 public DummyTemplate()
Create an empty template.

 o 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.

Methods

 o getModuleName
 public String getModuleName()
Retrieve name of module

Returns:
name of module
 o getFirstName
 public String getFirstName()
Retrieve user's first name from the (filled out) template.

Returns:
the first name in the template.
 o getCommonName
 public String getCommonName()
Retrieve users common name.

Returns:
common name in the template (null if not defined)
 o getPublicKey
 public CryptoKeyInfo getPublicKey()
Retrieve Public Key user wants to have registered

Returns:
public key of user
 o getStreetName
 public String getStreetName()
Retrieve street name.

Returns:
the street entered in the template (possibly null)
 o getCityName
 public String getCityName()
Retrieve name of city user lives in

Returns:
city where user lives.
 o getPostalCode
 public String getPostalCode()
Retrieve users postal code.

Returns:
users postal code
 o getCountry
 public String getCountry()
Retrieve name of country user lives in.

Returns:
country where user lives
 o 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
 o getPhoneNo
 public String getPhoneNo()
Retrieve users phone no.

Returns:
phone number
 o 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
 o getEmailAddr
 public String getEmailAddr()
Retrieve users email address.

Returns:
email address of user
 o getRADN
 public String getRADN()
Retrieve Registration authorities distinguished name.

Returns:
DN of RA
 o getSerialNo
 public long getSerialNo()
Retrieve the serial Nr of this DummyTemplate.

Returns:
serial number (defined by RA)
 o getOrganisationName
 public String getOrganisationName()
Retrieve the organisation name.

Returns:
organisation of user
 o getOrganisationUnit
 public String getOrganisationUnit()
Retrieve the organisation unit.

Returns:
organisation unit, which user belongs to.
 o getType
 public String getType()
 o setFirstName
 public void setFirstName(String name)
Set user's first name.

Parameters:
name - is the user's first name
 o setCommonName
 public void setCommonName(String name)
Set users common name as registrated at RA

Parameters:
name - is the user's common name
 o setPublicKey
 public void setPublicKey(CryptoKeyInfo pkey)
Set public key user wants to register.

Parameters:
pkey - is the public key the user will register
 o setStreetName
 public void setStreetName(String street)
Set street name and house number.

Parameters:
the - street name (and possible number)
 o setCityName
 public void setCityName(String cityName)
Set name of city user lives in.

Parameters:
city - name
 o setPostalCode
 public void setPostalCode(String pk)
Set users postal code.

Parameters:
pk - is postal code
 o setCountry
 public void setCountry(String countryName)
Set name of country user lives in.

Parameters:
countryName - is the name of country
 o setPassword
 public void setPassword(String password)
Set the serial number for this DummyTemplate.

Parameters:
serialNr: - new serial Nr to set.
 o setPhoneNo
 public void setPhoneNo(String phoneNr)
Set users phone no.

Parameters:
PhoneNr - is phone number
 o setID
 public void setID(String idCardNr)
Set users id-number (Passport-no, CPR-nr,etc).

Parameters:
idCardNr - is personal id-number
 o setEmailAddr
 public void setEmailAddr(String emailAddr)
Set users email address.

Parameters:
emailAddr - email address
 o setRADN
 public void setRADN(String raName)
Set Registration authorities distinguished name.

Parameters:
Dn - of RA
 o setSerialNo
 public void setSerialNo(long serialNr)
Set the serial number for this DummyTemplate.

Parameters:
serialNr: - new serial Nr to set.
 o setOrganisationName
 public void setOrganisationName(String name)
Sets the organisation name.

Parameters:
organisation - name
 o setOrganisationUnit
 public void setOrganisationUnit(String name)
Sets the organisation unit.

Parameters:
organisation - unit
 o setType
 public void setType(String type)
 o getEntryVector
 public Vector getEntryVector()
Get a Vector of Entry objects from the template.

Returns:
Vector of Entry objects
See Also:
Entry
 o 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
 o copy
 public Template copy()
Copy a SecudeTemplate into a Template.

Returns:
Template

All Packages  Class Hierarchy  This Package  Previous  Next  Index