|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.acm.SavingUtility issrg.acm.DefaultSavingUtility issrg.acm.extensions.WebDAVSavingUtility
public class WebDAVSavingUtility
This is the WebDAV saving utility.
This utility saves the given Attribute Certificate to a WebDAV Repository, of which the Host and Port can be dynamically changed in the dialog. The DN to save to is obtained from the AC to save; the DN to load from is obtained from the DIT selection.
SSL client authentication to the WebDAV server is required (HTTPS).
The utility was tested on Apache 2.2.3 mod_dav only.
Field Summary | |
---|---|
static java.lang.String |
policyPrefix
|
Fields inherited from class issrg.acm.DefaultSavingUtility |
---|
dialog, dialogMode, LOAD_MODE, modal_result, REVOKE_MODE, SAVE_MODE |
Constructor Summary | |
---|---|
WebDAVSavingUtility(java.lang.String acName)
Load with an AC Name prespecified for the case of the PE, otherwise will prompt the user for one. |
|
WebDAVSavingUtility(java.lang.String acName,
boolean forceWebdav,
java.util.Map env)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent)
Handles the event of a user clicking the Connect button. |
void |
approveSelection()
This method should check, if the currently selected location is OK with the user (e.g. |
void |
delete()
Deletes the currently selected AC in the ACViewer. |
java.awt.Component |
getContentPane(java.util.Map env,
int dialogMode)
Reads in the environment settings: cfg variables, and sets the DN, Host, Port, and P12 Filename & Password values. |
AttributeCertificate |
load()
Loads the currently selected AC in the ACViewer. |
AttributeCertificate |
revoke()
This method returns an Attribute Certificate loaded for revocation by the utility, as specified by its controls. |
void |
save(byte[] ac)
Saves the AC to the WebDAV repository. |
void |
valueChanged_WebDAV_DIT(WebDAV_DIT_Event evt)
Handles the event of a user changing the selection of a node in the DIT, representing a DN. |
Methods inherited from class issrg.acm.DefaultSavingUtility |
---|
attachControlButtons, cancelDialog, load, revoke, save |
Methods inherited from class issrg.acm.SavingUtility |
---|
registerMe |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String policyPrefix
Constructor Detail |
---|
public WebDAVSavingUtility(java.lang.String acName)
public WebDAVSavingUtility(java.lang.String acName, boolean forceWebdav, java.util.Map env)
Method Detail |
---|
public void approveSelection()
DefaultSavingUtility
Override to ask questions or display error messages.
approveSelection
in class DefaultSavingUtility
public AttributeCertificate load() throws ACCreationException
load
in class DefaultSavingUtility
ACCreationException
public AttributeCertificate revoke() throws ACCreationException
DefaultSavingUtility
revoke
in class DefaultSavingUtility
ACCreationException
public void save(byte[] ac) throws ACCreationException
save
in class DefaultSavingUtility
ACCreationException
public void delete() throws ACCreationException
delete
in class SavingUtility
ACCreationException
- if anything went wrong and the AC could not
be removed.public java.awt.Component getContentPane(java.util.Map env, int dialogMode)
Establishes an SSL connection to Host:Port, authenticating itself with the P12 key & certificate file.
Callsissrg.utils.Util.bewail()
if connection throws an
error, with the error message returned.
getContentPane
in class DefaultSavingUtility
env
- - the environment that allows the component to initialise its
fields and controlsdialogMode
- - set to one of LOAD_MODE, SAVE_MODE or REVOKE_MODE,
depending on the required content pane for the dialog
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
Calls the refreshDIT()
method.
actionPerformed
in interface java.awt.event.ActionListener
public void valueChanged_WebDAV_DIT(WebDAV_DIT_Event evt)
Loads any ACs found under that DN into the ACViewer, with it's unique name.
valueChanged_WebDAV_DIT
in interface WebDAV_DIT_Listener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |