|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fi.hut.tcm.repository.CertificateRepository | +--fi.hut.tcm.repository.SPKICertificateRepository | +--fi.hut.tcm.repository.LocalSPKIRepository
LocalSPKIRepository The LocalSPKIRepository uses a file to store the certificates.
Field Summary | |
private CertTable |
byIssuer
Indexes the certificates by issuer. |
private CertTable |
bySubject
Indexes the certificates by subject. |
private java.lang.String |
fileName
The name of the file where the certificates are stored on the disk. |
private boolean |
modified
Indicates if the contents of this repository have been modified. |
Fields inherited from class fi.hut.tcm.repository.SPKICertificateRepository |
repository |
Fields inherited from class fi.hut.tcm.repository.CertificateRepository |
type |
Constructor Summary | |
LocalSPKIRepository()
Creates a new LocalSPKIRepository. |
Method Summary | |
void |
add(java.security.cert.Certificate cert)
Adds the cert to the repository. |
void |
finalize()
Saves the repository. |
java.util.Vector |
getCertsByIssuer(Issuer issuer)
Returns all certificates that have been issued by the issuer. |
java.util.Vector |
getCertsBySubject(Subject subject)
Returns all certificates that have been issued to the subject. |
void |
init()
Initializes the repository. |
void |
load()
Loads the CertTables from a file. |
void |
remove(java.security.cert.Certificate cert)
Removes the cert from the repository. |
void |
save()
Stores the CertTables to a file. |
Methods inherited from class fi.hut.tcm.repository.SPKICertificateRepository |
getCertsByIssuer,
getCertsBySubject,
getInstance |
Methods inherited from class java.lang.Object |
|
Field Detail |
private boolean modified
private CertTable byIssuer
private CertTable bySubject
private java.lang.String fileName
Constructor Detail |
public LocalSPKIRepository()
Method Detail |
public void init()
public void add(java.security.cert.Certificate cert) throws SPKIException
public void remove(java.security.cert.Certificate cert) throws java.lang.Exception
public java.util.Vector getCertsByIssuer(Issuer issuer)
public java.util.Vector getCertsBySubject(Subject subject)
public void finalize()
public void load() throws java.io.OptionalDataException, java.lang.ClassNotFoundException, java.io.StreamCorruptedException, java.io.FileNotFoundException, java.io.IOException
public void save() throws java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |