fi.hut.tcm.repository
Class CertificateRepository

java.lang.Object
  |
  +--fi.hut.tcm.repository.CertificateRepository
Direct Known Subclasses:
SPKICertificateRepository

public abstract class CertificateRepository
extends java.lang.Object

CertificateRepository Abstract class for storing certificates.


Field Summary
private  java.lang.String type
           
 
Constructor Summary
protected CertificateRepository(java.lang.String type)
           
 
Method Summary
abstract  void add(java.security.cert.Certificate cert)
          Adds the cert to the repository.
abstract  java.util.Vector getCertsByIssuer(java.lang.Object issuer)
          Returns a vector of all the certificates that have been issued by the issuer.
abstract  java.util.Vector getCertsBySubject(java.lang.Object subject)
          Returns a vector of all the certificates that have been issued to the subject.
abstract  void load()
          Loads the repository.
abstract  void remove(java.security.cert.Certificate cert)
          Removes the cert from the repository, if it has been stored there.
abstract  void save()
          Saves the repository.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

type

private java.lang.String type
Constructor Detail

CertificateRepository

protected CertificateRepository(java.lang.String type)
Method Detail

load

public abstract void load()
                   throws java.lang.Exception
Loads the repository.

add

public abstract void add(java.security.cert.Certificate cert)
                  throws java.lang.Exception
Adds the cert to the repository.

remove

public abstract void remove(java.security.cert.Certificate cert)
                     throws java.lang.Exception
Removes the cert from the repository, if it has been stored there.

getCertsByIssuer

public abstract java.util.Vector getCertsByIssuer(java.lang.Object issuer)
                                           throws java.lang.Exception
Returns a vector of all the certificates that have been issued by the issuer.

getCertsBySubject

public abstract java.util.Vector getCertsBySubject(java.lang.Object subject)
                                            throws java.lang.Exception
Returns a vector of all the certificates that have been issued to the subject.

save

public abstract void save()
                   throws java.lang.Exception
Saves the repository.