use of org.openecard.addon.AddonRegistry 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);
}
use of org.openecard.addon.AddonRegistry 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);
}
Aggregations