All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface semper.certificate.Template

public interface Template
extends Serializable
Template is defines an interface for templates that are to be used for registration within the SEMPER certificate manager. Such a template is in essense just a registration form, which contains fields, which the user must fill out during registration. An example implementation is provided in DummyTemplate

See Also:
DummyTemplate

Method Index

 o getEntryVector()
Get a Vector of Entry objects from the template.
 o getModuleName()
Retrieve name of module
 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 Template.
 o getType()
 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 Template.
 o setType(String)
 o update(Hashtable)
Update the template according to a hash table.

Methods

 o getModuleName
 public abstract String getModuleName()
Retrieve name of module

Returns:
name of module
 o getPublicKey
 public abstract CryptoKeyInfo getPublicKey()
Retrieve Public Key user wants to have registered. Thus it must be possible to retrieve this public key based on the Template itself or information in the Temlate.

Returns:
public key of user
 o getRADN
 public abstract String getRADN()
Retrieve Registration authorities distinguished name. Based on information in the template it must be possible to recover the name of the registration authority.

Returns:
distinguished name of RA
 o getSerialNo
 public abstract long getSerialNo()
Retrieve the serial Nr of this Template. A template must have a serial number, which together with the name of the RA describes the template uniquely.

Returns:
serial number (usually defined by RA)
 o getType
 public abstract String getType()
 o setType
 public abstract void setType(String type)
 o setPublicKey
 public abstract void setPublicKey(CryptoKeyInfo pkey)
Set public key user wants to register. If the public key is not explicitly included in the template sent to the RA, this method can just be empty.

Parameters:
pkey - is the public key the user will register
 o setRADN
 public abstract void setRADN(String raName)
Set Registration authorities distinguished name.

Parameters:
distinguished - name of RA
 o setSerialNo
 public abstract void setSerialNo(long serialNr)
Set the serial number for this Template.

Parameters:
serialNr: - new serial Nr to set.
 o getEntryVector
 public abstract Vector getEntryVector()
Get a Vector of Entry objects from the template. This Vector corresponds to items that the user will be requested to fill out. Each entry in the vector consists of a text string describing the entry (shoen to the user) and to booleans indicating if input is required and if user input is hidden (e.g., if a password is entered).

Returns:
Vector of Entry objects
See Also:
Entry
 o update
 public abstract void update(Hashtable ht)
Update the template according to a hash table. Given a hash table this method updates the template by the entries in the hash table. Each ítem is keyed by a String given in 'getEntryVector()'. If the keys in the given Hashtable does not have the same form as in 'getEntryVector()', the corresponding values are simply ignored.

Parameters:
ht - is a Hashtable with values for updating the template should be updated
See Also:
getEntryVector

All Packages  Class Hierarchy  This Package  Previous  Next  Index