Search in sources :

Example 36 with AddonSpecification

use of org.openecard.addon.manifest.AddonSpecification in project open-ecard by ecsec.

the class TCTokenHandler method getSupportedDIDs.

private List<String> getSupportedDIDs() {
    TreeSet<String> result = new TreeSet<>();
    // check all sal protocols in the
    AddonRegistry registry = manager.getRegistry();
    Set<AddonSpecification> addons = registry.listAddons();
    for (AddonSpecification addon : addons) {
        for (ProtocolPluginSpecification proto : addon.getSalActions()) {
            result.add(proto.getUri());
        }
    }
    return new ArrayList<>(result);
}
Also used : TreeSet(java.util.TreeSet) AddonRegistry(org.openecard.addon.AddonRegistry) ArrayList(java.util.ArrayList) AddonSpecification(org.openecard.addon.manifest.AddonSpecification) ProtocolPluginSpecification(org.openecard.addon.manifest.ProtocolPluginSpecification)

Example 37 with AddonSpecification

use of org.openecard.addon.manifest.AddonSpecification in project open-ecard by ecsec.

the class StatusHandler method getProtocolInfo.

@Nonnull
private List<String> getProtocolInfo(AddonManager manager) {
    TreeSet<String> result = new TreeSet<>();
    // check all sal protocols in the
    AddonRegistry registry = manager.getRegistry();
    Set<AddonSpecification> addons = registry.listAddons();
    for (AddonSpecification addon : addons) {
        for (ProtocolPluginSpecification proto : addon.getSalActions()) {
            result.add(proto.getUri());
        }
    }
    return new ArrayList<>(result);
}
Also used : TreeSet(java.util.TreeSet) AddonRegistry(org.openecard.addon.AddonRegistry) ArrayList(java.util.ArrayList) AddonSpecification(org.openecard.addon.manifest.AddonSpecification) ProtocolPluginSpecification(org.openecard.addon.manifest.ProtocolPluginSpecification) Nonnull(javax.annotation.Nonnull)

Aggregations

AddonSpecification (org.openecard.addon.manifest.AddonSpecification)37 Test (org.testng.annotations.Test)21 AppPluginActionProxy (org.openecard.addon.bind.AppPluginActionProxy)5 IOException (java.io.IOException)4 HashSet (java.util.HashSet)4 AppExtensionAction (org.openecard.addon.bind.AppExtensionAction)4 AppExtensionActionProxy (org.openecard.addon.bind.AppExtensionActionProxy)3 AppPluginAction (org.openecard.addon.bind.AppPluginAction)3 GridBagConstraints (java.awt.GridBagConstraints)2 Insets (java.awt.Insets)2 ArrayList (java.util.ArrayList)2 TreeSet (java.util.TreeSet)2 JLabel (javax.swing.JLabel)2 JList (javax.swing.JList)2 AddonRegistry (org.openecard.addon.AddonRegistry)2 IFDProtocolProxy (org.openecard.addon.ifd.IFDProtocolProxy)2 ProtocolPluginSpecification (org.openecard.addon.manifest.ProtocolPluginSpecification)2 SALProtocolProxy (org.openecard.addon.sal.SALProtocolProxy)2 InitializeFramework (de.bund.bsi.ecard.api._1.InitializeFramework)1 ApplicationCapabilitiesType (iso.std.iso_iec._24727.tech.schema.ApplicationCapabilitiesType)1