Search in sources :

Example 1 with IKeyStoreListener

use of org.jcryptool.crypto.keystore.ui.views.interfaces.IKeyStoreListener in project core by jcryptool.

the class CertificateContainerNode method remove.

public void remove(IKeyStoreAlias alias) {
    AbstractKeyNode child = new CertificateNode(alias);
    nodes.remove(child);
    removeChild(child);
    Iterator<IKeyStoreListener> it = ContactManager.getInstance().getKeyStoreListeners();
    while (it.hasNext()) {
        it.next().fireKeyStoreModified(this);
    }
}
Also used : AbstractKeyNode(org.jcryptool.crypto.keystore.ui.views.nodes.keys.AbstractKeyNode) CertificateNode(org.jcryptool.crypto.keystore.ui.views.nodes.keys.CertificateNode) IKeyStoreListener(org.jcryptool.crypto.keystore.ui.views.interfaces.IKeyStoreListener)

Example 2 with IKeyStoreListener

use of org.jcryptool.crypto.keystore.ui.views.interfaces.IKeyStoreListener in project core by jcryptool.

the class CertificateContainerNode method add.

public void add(IKeyStoreAlias alias) {
    AbstractKeyNode child = new CertificateNode(alias);
    nodes.add(child);
    addChild(child);
    Iterator<IKeyStoreListener> it = ContactManager.getInstance().getKeyStoreListeners();
    while (it.hasNext()) {
        it.next().fireKeyStoreModified(this);
    }
}
Also used : AbstractKeyNode(org.jcryptool.crypto.keystore.ui.views.nodes.keys.AbstractKeyNode) CertificateNode(org.jcryptool.crypto.keystore.ui.views.nodes.keys.CertificateNode) IKeyStoreListener(org.jcryptool.crypto.keystore.ui.views.interfaces.IKeyStoreListener)

Example 3 with IKeyStoreListener

use of org.jcryptool.crypto.keystore.ui.views.interfaces.IKeyStoreListener in project core by jcryptool.

the class SecretKeyContainerNode method add.

public void add(IKeyStoreAlias alias) {
    AbstractKeyNode child = new SecretKeyNode(alias);
    nodes.add(child);
    addChild(child);
    Iterator<IKeyStoreListener> it = ContactManager.getInstance().getKeyStoreListeners();
    while (it.hasNext()) {
        it.next().fireKeyStoreModified(this);
    }
}
Also used : AbstractKeyNode(org.jcryptool.crypto.keystore.ui.views.nodes.keys.AbstractKeyNode) SecretKeyNode(org.jcryptool.crypto.keystore.ui.views.nodes.keys.SecretKeyNode) IKeyStoreListener(org.jcryptool.crypto.keystore.ui.views.interfaces.IKeyStoreListener)

Example 4 with IKeyStoreListener

use of org.jcryptool.crypto.keystore.ui.views.interfaces.IKeyStoreListener in project core by jcryptool.

the class SecretKeyContainerNode method remove.

public void remove(IKeyStoreAlias alias) {
    AbstractKeyNode child = new SecretKeyNode(alias);
    // $NON-NLS-1$
    LogUtil.logInfo("nodes.length a priori: " + nodes.size());
    nodes.remove(child);
    // $NON-NLS-1$
    LogUtil.logInfo("nodes.length a posterior: " + nodes.size());
    removeChild(child);
    Iterator<IKeyStoreListener> it = ContactManager.getInstance().getKeyStoreListeners();
    while (it.hasNext()) {
        it.next().fireKeyStoreModified(this);
    }
}
Also used : AbstractKeyNode(org.jcryptool.crypto.keystore.ui.views.nodes.keys.AbstractKeyNode) SecretKeyNode(org.jcryptool.crypto.keystore.ui.views.nodes.keys.SecretKeyNode) IKeyStoreListener(org.jcryptool.crypto.keystore.ui.views.interfaces.IKeyStoreListener)

Example 5 with IKeyStoreListener

use of org.jcryptool.crypto.keystore.ui.views.interfaces.IKeyStoreListener in project core by jcryptool.

the class KeyPairContainerNode method remove.

public void remove(IKeyStoreAlias alias) {
    KeyPairNode child = nodes.get(alias.getHashValue());
    nodes.remove(alias.getHashValue());
    removeChild(child);
    Iterator<IKeyStoreListener> it = ContactManager.getInstance().getKeyStoreListeners();
    while (it.hasNext()) {
        it.next().fireKeyStoreModified(this);
    }
}
Also used : KeyPairNode(org.jcryptool.crypto.keystore.ui.views.nodes.keys.KeyPairNode) IKeyStoreListener(org.jcryptool.crypto.keystore.ui.views.interfaces.IKeyStoreListener)

Aggregations

IKeyStoreListener (org.jcryptool.crypto.keystore.ui.views.interfaces.IKeyStoreListener)6 AbstractKeyNode (org.jcryptool.crypto.keystore.ui.views.nodes.keys.AbstractKeyNode)4 CertificateNode (org.jcryptool.crypto.keystore.ui.views.nodes.keys.CertificateNode)2 KeyPairNode (org.jcryptool.crypto.keystore.ui.views.nodes.keys.KeyPairNode)2 SecretKeyNode (org.jcryptool.crypto.keystore.ui.views.nodes.keys.SecretKeyNode)2