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

Interface semper.certificate.Template

public interface Template
extends Object
extends Streamable
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 getPublicKey()
Retrieve Public Key user wants to have registered.
 o getRADN()
Retrieve Registration authorities distinguished name.
 o getSerialNr()
Retrieve the serial Nr of this Template.
 o setPublicKey(CryptoKeyInfo)
Set public key user wants to register.
 o setRADN(String)
Set Registration authorities distinguished name.
 o setSerialNr(long)
Set the serial number for this Template.
 o update(Hashtable)
Update the template according to a hash table.

Methods

 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 getSerialNr
  public abstract long getSerialNr()
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 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 setSerialNr
  public abstract void setSerialNr(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