|
|||||||||
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.LDAPSavingUtility
public class LDAPSavingUtility
This is the LDAP saving utility.
This utility saves the given Attribute Certificate to an LDAP Directory, of which the URL a user can enter in a dialog. The DN to save to is obtained from the AC to save; the DN to load from the user should type in.
Simple authentication to the LDAP server is supported.
The utility was tested on LDAP v3 only.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_CERTIFICATE_ATTRIBUTE_NAME
The variable, containing the name of the attribute the LDAPSavingUtility will retrieve and store. |
static java.lang.String |
LDAP_SAVING_UTILITY_AC_TYPE
The variable, containing the name of the configuration variable, representing the default name of the attribute the LDAPSavingUtility will retrieve and store. |
static java.lang.String |
LDAP_SAVING_UTILITY_LOGIN
The variable, containing the name of the configuration variable, representing the default login for accessing LDAP server. |
Fields inherited from class issrg.acm.DefaultSavingUtility |
---|
dialog, dialogMode, LOAD_MODE, modal_result, REVOKE_MODE, SAVE_MODE |
Constructor Summary | |
---|---|
LDAPSavingUtility()
|
Method Summary | |
---|---|
void |
approveSelection()
This method should check, if the currently selected location is OK with the user (e.g. |
void |
communicationError(java.lang.Throwable th)
A communication error occured while attempting to expand the tree. |
void |
delete()
Deletes the selected Attribute Certificate from the entry. |
void |
doubleclick(LDAP_DIT sender)
Something has been double-clicked in the tree. |
java.awt.Component |
getContentPane(java.util.Map env,
int dialogMode)
This method returns the Component that displays all the controls for the load/saving dialog. |
AttributeCertificate |
load()
This method returns an Attribute Certificate loaded by the utility, as specified by its controls. |
javax.naming.directory.Attribute |
loadACs(java.lang.String dn)
Load all ACs (Attribute Certificate) from the specified entry. |
void |
resetLDAPTree()
Resets the tree view of the LDAP. |
AttributeCertificate |
revoke()
This method returns an Attribute Certificate loaded for revocation by the utility, as specified by its controls. |
void |
save(byte[] ac)
This method saves the Attribute Certificate to the location, specified by the utility's controls. |
void |
select(LDAP_DIT sender)
Something gets selected in the tree. |
void |
unselect(LDAP_DIT sender)
User clicks outside the tree bounds. |
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 LDAP_SAVING_UTILITY_LOGIN
public static final java.lang.String LDAP_SAVING_UTILITY_AC_TYPE
public static final java.lang.String ATTRIBUTE_CERTIFICATE_ATTRIBUTE_NAME
Constructor Detail |
---|
public LDAPSavingUtility()
Method Detail |
---|
public java.awt.Component getContentPane(java.util.Map env, int dialogMode)
DefaultSavingUtility
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 save(byte[] ac) throws ACCreationException
DefaultSavingUtility
save
in class DefaultSavingUtility
ACCreationException
public void resetLDAPTree() throws ACCreationException
ACCreationException
public javax.naming.directory.Attribute loadACs(java.lang.String dn) throws ACCreationException
dn
- the specifed DN to retrive ACs.
ACCreationException
public void approveSelection()
DefaultSavingUtility
Override to ask questions or display error messages.
approveSelection
in class DefaultSavingUtility
public AttributeCertificate load() throws ACCreationException
DefaultSavingUtility
load
in class DefaultSavingUtility
ACCreationException
public AttributeCertificate revoke() throws ACCreationException
DefaultSavingUtility
revoke
in class DefaultSavingUtility
ACCreationException
public void delete() throws ACCreationException
If the entry contains attributes other than well-formed X.509 ACs under 2.5.4.58 attributeCertificateAttribute, the behaviour is undefined (may spoil the contents of the entry).
delete
in class SavingUtility
ACCreationException
- if anything went wrong and the AC could not
be removed.public void select(LDAP_DIT sender)
DITSelectionListener
select
in interface DITSelectionListener
public void doubleclick(LDAP_DIT sender)
DITSelectionListener
doubleclick
in interface DITSelectionListener
public void unselect(LDAP_DIT sender)
DITSelectionListener
unselect
in interface DITSelectionListener
public void communicationError(java.lang.Throwable th)
DITSelectionListener
communicationError
in interface DITSelectionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |