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
-
Template()
- Create an empty template
-
Template(String)
- Create a template only containing RA's distinguished name.
-
Template(String, String, String, String, String, String, CryptoKeyInfo, String, String, String, String, long)
- Create a Template
-
Template(Template)
- Create a template from an existing template.
-
getCityName()
- retrieve name of city user lives in
-
getCountry()
- retrieve nam of country user lives in
-
getDN()
- retrieve users distinguished name as registrated at RA
-
getEmailAddr()
- retrieve users email addres
-
getID()
- retrieve users id-number (Passport-no, CPR-nr,etc)
-
getPhoneNo()
- retrieve users phone no
-
getPK()
- retrieve users postal code
-
getPublicKey()
- retrieve Public Key user wants to be registrated with
-
getRADN()
- retrieve Registration authorities distinguished name
-
getSerialNr()
- retrieve the serial Nr for this Template.
-
getStreetName()
- retrieve Street name and house number
-
getUserName()
- retrieve users name
-
myStreamSize()
- Finds the expected number of bytes needed to externalize the object to s.
-
readObject(StreamInputInterface)
- Reads the object from an io stream (TargetStream).
-
setCityName(String)
- set name of city user lives in
-
setCountry(String)
- set nam of country user lives in
-
setDN(String)
- set users distinguished name as registrated at RA
-
setEmailAddr(String)
- set users email addres
-
setID(String)
- set users id-number (Passport-no, CPR-nr,etc)
-
setPhoneNo(String)
- set users phone no
-
setPK(String)
- set users postal code
-
setPublicKey(CryptoKeyInfo)
- set Public Key user wants to be registrated with
-
setRADN(String)
- set Registration authorities distinguished name
-
setSerialNr(long)
- Set the serial Nr for this Template.
-
setStreetName(String)
- set Street name and house number
-
setUserName(String)
- set users name
-
writeObject(StreamOutputInterface)
- Writes the object to an io stream (TargetStream).
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.
Template
public Template(Template templ)
- Create a template from an existing template.
- Parameters:
- templ: - Template to copy.
Template
public Template()
- Create an empty template
Template
public Template(String raDN)
- Create a template only containing RA's distinguished name.
- Parameters:
- raDN: - RA's distinguished name.
getUserName
public String getUserName()
- retrieve users name
getDN
public String getDN()
- retrieve users distinguished name as registrated at RA
getPublicKey
public CryptoKeyInfo getPublicKey()
- retrieve Public Key user wants to be registrated with
getStreetName
public String getStreetName()
- retrieve Street name and house number
getCityName
public String getCityName()
- retrieve name of city user lives in
getPK
public String getPK()
- retrieve users postal code
getCountry
public String getCountry()
- retrieve nam of country user lives in
getPhoneNo
public String getPhoneNo()
- retrieve users phone no
getID
public String getID()
- retrieve users id-number (Passport-no, CPR-nr,etc)
getEmailAddr
public String getEmailAddr()
- retrieve users email addres
getRADN
public String getRADN()
- retrieve Registration authorities distinguished name
getSerialNr
public long getSerialNr()
- retrieve the serial Nr for this Template.
setUserName
public void setUserName(String name)
- set users name
setDN
public void setDN(String name)
- set users distinguished name as registrated at RA
setPublicKey
public void setPublicKey(CryptoKeyInfo pkey)
- set Public Key user wants to be registrated with
setStreetName
public void setStreetName(String street)
- set Street name and house number
setCityName
public void setCityName(String cityName)
- set name of city user lives in
setPK
public void setPK(String pk)
- set users postal code
setCountry
public void setCountry(String countryName)
- set nam of country user lives in
setPhoneNo
public void setPhoneNo(String phoneNr)
- set users phone no
setID
public void setID(String idCardNr)
- set users id-number (Passport-no, CPR-nr,etc)
setEmailAddr
public void setEmailAddr(String emailAddr)
- set users email addres
setRADN
public void setRADN(String raName)
- set Registration authorities distinguished name
setSerialNr
public void setSerialNr(long serialNr)
- Set the serial Nr for this Template.
- Parameters:
- serialNr: - new serial Nr to set.
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
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
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