|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.acm.SavingUtility
public abstract class SavingUtility
This is a base class for loading/saving ACs to a file. Many implementation may want to load/save them to a disk, or to an LDAP directory, or use a combination of these features.
Constructor Summary | |
---|---|
SavingUtility()
|
Method Summary | |
---|---|
abstract void |
delete()
This method is invoked only after revoke(). |
abstract AttributeCertificate |
load(java.awt.Frame frame,
java.util.Map Environment)
This method is called to load an attribute certificate from somewhere, as the implementation defines. |
void |
registerMe(Registry where)
You do not need to override this method. |
abstract AttributeCertificate |
revoke(java.awt.Frame frame,
java.util.Map Environment)
This method is called to revoke an attribute certificate. |
abstract void |
save(java.awt.Frame frame,
byte[] ac,
java.util.Map Environment)
This method is called to save an attribute certificate somewhere. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SavingUtility()
Method Detail |
---|
public final void registerMe(Registry where)
registerMe
in interface Utility
public abstract void save(java.awt.Frame frame, byte[] ac, java.util.Map Environment) throws ACCreationException
frame
- the java.awt.Frame, to which this utility can display a
modal windowac
- a correctly encoded Attribute Certificate to save; the utility
may want to check whether it is an AC (or get particular values from
it, like Holder DN) by calling a BER decoder. For security reasons
you should not assume you could save anything.Environment
- a java.util.Map with environmental variables there; the
implementation is expected to get useful configuration information from
there.
ACCreationException
public abstract AttributeCertificate load(java.awt.Frame frame, java.util.Map Environment) throws ACCreationException
Do not expect the application will ask to load the same AC again after an exception has been thrown.
frame
- the java.awt.Frame, to which this utility can display a
modal windowEnvironment
- a java.util.Map with environmental variables there; the
intention is to let the method know any configuration parameters it
may want to know
ACCreationException
public abstract AttributeCertificate revoke(java.awt.Frame frame, java.util.Map Environment) throws ACCreationException
frame
- the java.awt.Frame, to which this utility can display a
modal windowEnvironment
- a java.util.Map with environmental variables there; the
intention is to let the method know any configuration parameters it
may want to know
ACCreationException
public abstract void delete() throws ACCreationException
ACCreationException
- if anything went wrong and the AC could not
be removed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |