Class semper.certificate.Template
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.certificate.Template

java.lang.Object
   |
   +----semper.certificate.Template

public class Template
extends Object
implements Streamable

Constructor Index

 o Template()
Create an empty template
 o Template(String)
Create a template only containing RA's distinguished name.
 o Template(String, String, String, String, String, String, CryptoKeyInfo, String, String, String, String, long)
Create a Template
 o Template(Template)
Create a template from an existing template.

Method Index

 o getCityName()
retrieve name of city user lives in
 o getCountry()
retrieve nam of country user lives in
 o getDN()
retrieve users distinguished name as registrated at RA
 o getEmailAddr()
retrieve users email addres
 o getID()
retrieve users id-number (Passport-no, CPR-nr,etc)
 o getPhoneNo()
retrieve users phone no
 o getPK()
retrieve users postal code
 o getPublicKey()
retrieve Public Key user wants to be registrated with
 o getRADN()
retrieve Registration authorities distinguished name
 o getSerialNr()
retrieve the serial Nr for this Template.
 o getStreetName()
retrieve Street name and house number
 o getUserName()
retrieve users name
 o myStreamSize()
Finds the expected number of bytes needed to externalize the object to s.
 o readObject(StreamInputInterface)
Reads the object from an io stream (TargetStream).
 o setCityName(String)
set name of city user lives in
 o setCountry(String)
set nam of country user lives in
 o setDN(String)
set users distinguished name as registrated at RA
 o setEmailAddr(String)
set users email addres
 o setID(String)
set users id-number (Passport-no, CPR-nr,etc)
 o setPhoneNo(String)
set users phone no
 o setPK(String)
set users postal code
 o setPublicKey(CryptoKeyInfo)
set Public Key user wants to be registrated with
 o setRADN(String)
set Registration authorities distinguished name
 o setSerialNr(long)
Set the serial Nr for this Template.
 o setStreetName(String)
set Street name and house number
 o setUserName(String)
set users name
 o writeObject(StreamOutputInterface)
Writes the object to an io stream (TargetStream).

Constructors

 o Template
  public Template(String userName,
                  String DN,
                  String streetName,
                  String cityName,
                  String postalCode,
                  String countryName,
                  CryptoKeyInfo publicKey,
                  String phoneNr,
                  String idCardNr,
                  String emailAddr,
                  String raName,
                  long serialNr)
Create a Template
Parameters:
userName - = users Name (first name and last name)
DN - = users Distinguished 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 Template
  public Template(Template templ)
Create a template from an existing template.
Parameters:
templ: - Template to copy.
 o Template
  public Template()
Create an empty template
 o Template
  public Template(String raDN)
Create a template only containing RA's distinguished name.
Parameters:
raDN: - RA's distinguished name.

Methods

 o getUserName
  public String getUserName()
retrieve users name
 o getDN
  public String getDN()
retrieve users distinguished name as registrated at RA
 o getPublicKey
  public CryptoKeyInfo getPublicKey()
retrieve Public Key user wants to be registrated with
 o getStreetName
  public String getStreetName()
retrieve Street name and house number
 o getCityName
  public String getCityName()
retrieve name of city user lives in
 o getPK
  public String getPK()
retrieve users postal code
 o getCountry
  public String getCountry()
retrieve nam of country user lives in
 o getPhoneNo
  public String getPhoneNo()
retrieve users phone no
 o getID
  public String getID()
retrieve users id-number (Passport-no, CPR-nr,etc)
 o getEmailAddr
  public String getEmailAddr()
retrieve users email addres
 o getRADN
  public String getRADN()
retrieve Registration authorities distinguished name
 o getSerialNr
  public long getSerialNr()
retrieve the serial Nr for this Template.
 o setUserName
  public void setUserName(String name)
set users name
 o setDN
  public void setDN(String name)
set users distinguished name as registrated at RA
 o setPublicKey
  public void setPublicKey(CryptoKeyInfo pkey)
set Public Key user wants to be registrated with
 o setStreetName
  public void setStreetName(String street)
set Street name and house number
 o setCityName
  public void setCityName(String cityName)
set name of city user lives in
 o setPK
  public void setPK(String pk)
set users postal code
 o setCountry
  public void setCountry(String countryName)
set nam of country user lives in
 o setPhoneNo
  public void setPhoneNo(String phoneNr)
set users phone no
 o setID
  public void setID(String idCardNr)
set users id-number (Passport-no, CPR-nr,etc)
 o setEmailAddr
  public void setEmailAddr(String emailAddr)
set users email addres
 o setRADN
  public void setRADN(String raName)
set Registration authorities distinguished name
 o setSerialNr
  public void setSerialNr(long serialNr)
Set the serial Nr for this Template.
Parameters:
serialNr: - new serial Nr to set.
 o writeObject
  public void writeObject(StreamOutputInterface s) throws StreamIOException
Writes the object to an io stream (TargetStream).
Parameters:
s - is the stream the object is written to
Returns:
void
Throws: StreamIOException
if object couldn't be written to s.
See Also:
readObject
 o readObject
  public void readObject(StreamInputInterface s) throws StreamIOException
Reads the object from an io stream (TargetStream).
Parameters:
s - is the stream the object is read from
Returns:
void
Throws: StreamIOException
if object couldn't be read from s.
See Also:
writeObject
 o myStreamSize
  public int myStreamSize() throws StreamIOException
Finds the expected number of bytes needed to externalize the object to s.
Parameters:
s - is the stream the key information is written to
Returns:
number of bytes required
Throws: StreamIOException
if size couldn't get calculated.
See Also:
writeObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index