All Packages Class Hierarchy This Package Previous Next Index
Class semper.certificate.dummy.DummyCAModule
java.lang.Object
|
+----semper.certificate.CAModule
|
+----semper.certificate.dummy.DummyCAModule
- public class DummyCAModule
- extends CAModule
-
DummyCAModule()
-
-
allEntriesInArchive()
-
-
computeDN(Template)
- Computes a DN for the user based on the information in the Template.
-
generateAndStoreCAkeys()
- Generate the CA's public,secret-keypair.
-
getName()
-
-
getNewSerialNumber()
- Returns a new (unused) serial number to be used in registrations and certificates.
-
init(String)
-
Initialises the CA Module.
-
Interrupt(int)
-
-
isInitialised()
- Tells whether this class is initialised.
-
issueCertificate(Registration, CryptoKeyInfo, Scope, CertificateType, Date, Date, Status)
- Issue new certificate for client.
-
makeRegistration(Template)
- Register information about a user based on the information in a Template.
-
retrieveCApkey()
- Retrieve this CA's public key from storage.
DummyCAModule
public DummyCAModule()
isInitialised
public static boolean isInitialised()
- Tells whether this class is initialised.
The DummyCAModule is initialised when DummyCAModule.init() has been
sucessfully executed.
- Returns:
- s true if DummyCAModule.init() has been executed, false otherwise.
init
public void init(String ca_dist_name) throws CertificateException
- Initialises the CA Module.
The initialisation determines the last serial number in archive,
it generates key pair for CA and stores them afterwards.
- Parameters:
- ca_dist_name - distinguished name of the current CA
- Throws: CertificateException
- if the module could not be loaded
or initialised
- Overrides:
- init in class CAModule
retrieveCApkey
public CryptoKeyInfo retrieveCApkey() throws CertificateException
- Retrieve this CA's public key from storage. This is necessary
in CAserver whenever the public key should be used.
- Returns:
- s the CA's public key.
- Throws: CertificateException
- if the keys couldn't be retrieved.
- Overrides:
- retrieveCApkey in class CAModule
makeRegistration
public Registration makeRegistration(Template filledTemplate) throws CertificateException
- Register information about a user based on the information in a Template.
Before the registration takes place an authentication check process
determines, whether the current user is already pre-registered or not.
In case the authentication check process succeed, registration follows.
- Parameters:
- filledTemplate - is a filled out template received from user
- Returns:
- a Registration corresponding to the informaiton registered
about the user
- Throws: CertificateException
- if the registration could not be made
based on the given template
- Overrides:
- makeRegistration in class CAModule
issueCertificate
public Certificate issueCertificate(Registration regi,
CryptoKeyInfo pKey,
Scope scope,
CertificateType type,
Date startValid,
Date endValid,
Status status) throws CertificateException
- Issue new certificate for client. This service simply uses the module to issue
a new certificate according to the parameters given as input.
Thus this service should
only be called if the CA has decided to issue the certificate.
- Parameters:
- regi - is the registration that is the basis of the certificate
- pKey: - the public Key to be certified with the new Certificate.
- scope: - the scope for this Certificate (Signature, Encryption).
- type: - Type of the Certificate (Key, Attribute, Hybrid).
- startValid: - start of the timeperiod in which this certificate
is valid.
- endValid: - end of the timeperiod in which this certificate
is valid.
- status - the status of the new certificate
- Returns:
- the issued certificate is returned
- Throws: CertificateException
- if there weren't any serialnos
for Certificates available any more, or another failure
occurred during the generation of the certificate.
- Overrides:
- issueCertificate in class CAModule
getNewSerialNumber
public long getNewSerialNumber() throws CertificateException
- Returns a new (unused) serial number to be used in registrations and certificates.
The method is synchronized in order to protect against two simultaneous calls.
- Returns:
- A new serial number
- Throws: CertificateException
- if no new serial number could be generated
- Overrides:
- getNewSerialNumber in class CAModule
generateAndStoreCAkeys
public void generateAndStoreCAkeys() throws CertificateException
- Generate the CA's public,secret-keypair.
The resulting keys are stored in Archive and can be hence, be retrieved
later by the module. this service uses then key generation of the crypto
and store (add) method of archive block.
Additionally the fingerprint of CA's public key is generated and stored
in th efile CA_FP.txt
- Throws: CertificateException
- if there were no serialno
or if the keys could no be generated.
- See Also:
- generatePubKeyPair
computeDN
public String computeDN(Template templ) throws CertificateException
- Computes a DN for the user based on the information in the Template.
This method simply defines the DN as the concatenation of CADN, common name
as defined in the the template. The email address is inserted if defined.
- Parameters:
- templ - is a filled out template
- Returns:
- a string containing a DN for the user
- Throws: CertificateException
- if the DN could not be computed
- Overrides:
- computeDN in class CAModule
getName
public String getName()
- Overrides:
- getName in class CAModule
Interrupt
public static void Interrupt(int ms)
allEntriesInArchive
public static void allEntriesInArchive()
All Packages Class Hierarchy This Package Previous Next Index